summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-12 12:11:17 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-15 10:35:38 +0100
commit922d5d99b90a70b99e16093b178689b170fd6ddd (patch)
tree79f0c86fe6c3b453434ca4736754a48681b56364 /play.js
parente030395f388c3991ded313b4e1d0ede79fab28f5 (diff)
downloadtime-of-crisis-922d5d99b90a70b99e16093b178689b170fd6ddd.tar.gz
Use multi-active state for drawing cards and pax deorum.
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 62fa40f..21645b1 100644
--- a/play.js
+++ b/play.js
@@ -1574,7 +1574,10 @@ function on_update() {
ui.active_event.appendChild(ui.event_cards[view.event])
ui.played_panel.className = "panel p_" + PLAYER_CLASS[view.current]
- ui.played_header.textContent = PLAYER_NAME[view.current] + " Played"
+ if (typeof view.current === "number")
+ ui.played_header.textContent = PLAYER_NAME[view.current] + " Played"
+ else
+ ui.played_header.textContent = "Played"
ui.played.className = "panel_body p_" + PLAYER_CLASS[view.current]
ui.played.replaceChildren()
if (view.played) {