summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-05 12:20:06 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-05 12:20:06 +0100
commitd7b1f56c2dedd7b74e0167d7a113ac1063f1f5a4 (patch)
tree19c7bd64921ca8b2194746601840edf1e3d40353 /play.js
parentab889d495cc617cd99f073448427132b127f4288 (diff)
download1989-dawn-of-freedom-d7b1f56c2dedd7b74e0167d7a113ac1063f1f5a4.tar.gz
Added deck length to aside
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/play.js b/play.js
index 55efbb4..5c32a73 100644
--- a/play.js
+++ b/play.js
@@ -268,6 +268,7 @@ let ui = {
power_cards: [null],
dem_hand_count: document.getElementById("role_stat_dem"),
com_hand_count: document.getElementById("role_stat_com"),
+ deck_length: document.getElementById("deck_length"),
played_card: 0,
table_panel: document.getElementById("table_panel"),
hand_panel: document.getElementById("hand_panel"),
@@ -382,6 +383,7 @@ function on_update() {
} else{
ui.dem_hand_count.innerText = `${view.democrat_hand} cards in hand`
ui.com_hand_count.innerText = `${view.communist_hand} cards in hand`
+ ui.deck_length.innerText = `${view.strategy_deck} cards`
}
// UPDATE HAND