summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 11:58:48 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-01 11:58:48 +0000
commit62455b0bc56621a57ac9cab2818b033f6e415dcf (patch)
tree7f0877e8bf147d76ae6193810012c2c07e505b26 /play.js
parent1810f44f3d0e4684e1ac4b65b05190353f6f3310 (diff)
download1989-dawn-of-freedom-62455b0bc56621a57ac9cab2818b033f6e415dcf.tar.gz
Fix for New Year's Eve party
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/play.js b/play.js
index fd2852c..c4e139f 100644
--- a/play.js
+++ b/play.js
@@ -679,7 +679,8 @@ function on_update() {
ui.persistent.replaceChildren()
for (let c of view.persistent_events)
- ui.persistent.appendChild(ui.cards[c])
+ if (c < 111)
+ ui.persistent.appendChild(ui.cards[c])
ui.played_card.replaceChildren()
if (view.played_card > 0)
@@ -735,8 +736,6 @@ function on_update() {
action_button("done", "Done")
action_button("end_round", "End Round")
action_button("undo", "Undo")
-
-console.log('view.valid_cards', view.valid_cards, 'view.power_hand', view.power_hand)
}
// =========================== LOG FUNCTIONS ==============================================