diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-14 17:20:26 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-14 17:20:26 +0000 |
commit | b9b474b9b29b3704ab6306c94ac93fd089b21941 (patch) | |
tree | 15b92d63b6b03a530c2dcd8a8e71abba62a5691b /play.js | |
parent | 89fa00c090c2370cad110591ae5d4a422ceea4b7 (diff) | |
download | 1989-dawn-of-freedom-b9b474b9b29b3704ab6306c94ac93fd089b21941.tar.gz |
Add Securitate panel
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -374,6 +374,7 @@ const ui = { power_hand: document.getElementById("power_hand"), power_discard: document.getElementById("power_discard"), opp_hand: document.getElementById("opp_hand"), + securitate: document.getElementById("securitate") discard: document.getElementById("discard"), removed: document.getElementById("removed"), persistent: document.getElementById("persistent"), @@ -682,9 +683,11 @@ function on_update() { if (view.opp_hand) for (let c of view.opp_hand) ui.opp_hand.appendChild(ui.cards[c]) + + ui.securitate.replaceChildren() if (view.opp_power_hand) for (let c of view.opp_power_hand) - ui.opp_hand.appendChild(ui.power_cards[c]) + ui.securitate.appendChild(ui.power_cards[c]) ui.ceausescu_hand.replaceChildren() if (view.ceausescu_cards) |