summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-14 17:20:26 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-14 17:20:26 +0000
commitb9b474b9b29b3704ab6306c94ac93fd089b21941 (patch)
tree15b92d63b6b03a530c2dcd8a8e71abba62a5691b /play.js
parent89fa00c090c2370cad110591ae5d4a422ceea4b7 (diff)
download1989-dawn-of-freedom-b9b474b9b29b3704ab6306c94ac93fd089b21941.tar.gz
Add Securitate panel
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index 8ea17a2..53540d5 100644
--- a/play.js
+++ b/play.js
@@ -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)