From b9b474b9b29b3704ab6306c94ac93fd089b21941 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 14 Nov 2024 17:20:26 +0000 Subject: Add Securitate panel --- play.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'play.js') 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) -- cgit v1.2.3