summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-11-20 13:55:28 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:37 +0100
commitdbde089d9b07e7f3cb74f70a0d92004ad8602092 (patch)
tree5703dd329585569c793f582e13155be6a9ac55fc /play.js
parent498a33e60fd88f01c541bb0dd07c7572de4b0194 (diff)
downloadnevsky-dbde089d9b07e7f3cb74f70a0d92004ad8602092.tar.gz
Discard This Levy and This Campaign events at end of levy and campaign.
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/play.js b/play.js
index 6a04d40..78def37 100644
--- a/play.js
+++ b/play.js
@@ -298,6 +298,7 @@ const ui = {
events: document.getElementById("events"),
p1_capabilities: document.getElementById("p1_capabilities"),
p2_capabilities: document.getElementById("p2_capabilities"),
+ hand: document.getElementById("hand"),
command: document.getElementById("command"),
turn: document.getElementById("turn"),
vp1: document.getElementById("vp1"),
@@ -761,6 +762,12 @@ function update_arts_of_war() {
ui.p2_capabilities.appendChild(ui.arts_of_war[c])
})
+ ui.hand.replaceChildren()
+ if (view.hand) {
+ for (let c of view.hand)
+ ui.hand.appendChild(ui.arts_of_war[c])
+ }
+
for (let ix = 0; ix < data.lords.length; ++ix) {
let side = ix < 6 ? "teutonic" : "russian"
ui.lord_capabilities[ix].replaceChildren()