diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-08-14 20:33:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-01 16:11:22 +0200 |
commit | b217b7b161f18cc1a247e49c2b4d4f9c9eb4561d (patch) | |
tree | 20ceb99bf46b586fbc5ea76835e29d0ea716a304 /play.js | |
parent | fc8ba2053ee78b62a09850a2043ada8b93922ae0 (diff) | |
download | waterloo-campaign-1815-b217b7b161f18cc1a247e49c2b4d4f9c9eb4561d.tar.gz |
Easier within 3 hexes checks.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -108,6 +108,8 @@ let ui = { document.getElementById("prussian_detachment_6"), ], stack: new Array(last_hex+1).fill(0), + turn: document.getElementById("marker_turn"), + remain: document.getElementById("marker_remain"), } function toggle_pieces() { @@ -333,9 +335,15 @@ function on_update() { } } + ui.turn.style.left = (40 + TURN_X + (view.turn-1) * TURN_DX) + "px" + ui.turn.classList.toggle("flip", view.rain > 0) + + ui.remain.style.left = (109 + (view.remain % 10) * 47.5 | 0) + "px" + ui.remain.classList.toggle("flip", view.remain > 9) + action_button("roll", "Roll") action_button("next", "Next") - action_button("done", "Done") + action_button("end_step", "End step") action_button("pass", "Pass") action_button("undo", "Undo") } |