diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-11-20 13:55:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:37 +0100 |
commit | dbde089d9b07e7f3cb74f70a0d92004ad8602092 (patch) | |
tree | 5703dd329585569c793f582e13155be6a9ac55fc /play.js | |
parent | 498a33e60fd88f01c541bb0dd07c7572de4b0194 (diff) | |
download | nevsky-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.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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() |