diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-21 00:31:45 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 97584b397465e3507b032823d0ebe5e0b4527a4a (patch) | |
tree | d1fe6fb563fb6a774bb0060ff1fdf91709605ca6 /play.js | |
parent | 342fb4b65d616a1c81ed92319298707f6b42680f (diff) | |
download | nevsky-97584b397465e3507b032823d0ebe5e0b4527a4a.tar.gz |
Show number of held cards.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -567,6 +567,9 @@ const ui = { hand_panel: document.getElementById("hand_panel"), hand: document.getElementById("hand"), + held1: document.querySelector("#role_Teutons .role_held"), + held2: document.querySelector("#role_Russians .role_held"), + capabilities1: document.getElementById("capabilities1"), capabilities2: document.getElementById("capabilities2"), command: document.getElementById("command"), @@ -1736,6 +1739,9 @@ function on_update() { else ui.elr2.classList = `marker circle enemy_lords_removed russian hide` + ui.held1.textContent = `${view.held1} Held` + ui.held2.textContent = `${view.held2} Held` + update_plan() update_cards() |