summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/play.js b/play.js
index 4658044..770e6d5 100644
--- a/play.js
+++ b/play.js
@@ -40,6 +40,7 @@ const ui = {
event_reminder_list: document.getElementById("event_reminder_list"),
played_card: document.getElementById("played_card"),
+ played_power_card: document.getElementById("played_power_card"),
hand: document.getElementById("hand"),
power_hand: document.getElementById("power_hand"),
opp_hand: document.getElementById("opp_hand"),
@@ -372,6 +373,10 @@ function on_update() {
if (view.played_card > 0)
ui.played_card.appendChild(ui.cards[view.played_card])
+ ui.played_power_card.replaceChildren()
+ if (view.played_power_card > 0)
+ ui.played_power_card.appendChild(ui.power_cards[view.played_power_card])
+
ui.samizdat_card.replaceChildren()
if (view.samizdat > 0)
ui.samizdat_card.appendChild(ui.cards[view.samizdat])
@@ -383,7 +388,7 @@ function on_update() {
ui.power_hand.replaceChildren()
if (view.power_hand)
for (let c of view.power_hand)
- ui.hand.appendChild(ui.power_cards[c])
+ ui.power_hand.appendChild(ui.power_cards[c])
ui.opp_hand.replaceChildren()
if (view.opp_hand)