summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-13 16:35:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:22 +0200
commit74d2e6efd24db8570cd64f74c7de109c5b094c70 (patch)
treef455ce39830c51ff51dea38c2e1d6b684259fdf3 /play.js
parentd31416c59ce6cf5d62db6fbdc6586472fbb00c4b (diff)
downloadwaterloo-campaign-1815-74d2e6efd24db8570cd64f74c7de109c5b094c70.tar.gz
Place HQ.
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/play.js b/play.js
index 0ad5f78..8c85772 100644
--- a/play.js
+++ b/play.js
@@ -221,8 +221,8 @@ function on_update() {
} else if (hex === 100 || hex === 101) {
// AVAILABLE DETACHMENTS
ui.pieces[id].classList.remove("hide")
- ui.pieces[id].classList.remove("flip")
- let x = 600 + 20 + ui.stack[hex] * 50
+ ui.pieces[id].classList.toggle("flip", (view.pieces[id] & 1) === 1)
+ let x = 600 + 20 + ui.stack[hex] * 60
let y = 1650 + 20 + 60 * (hex-100)
ui.stack[hex] += 1
ui.pieces[id].style.top = y + "px"
@@ -263,11 +263,8 @@ function on_update() {
}
}
- action_button("edit_town", "Town")
- action_button("edit_stream", "Stream")
- action_button("edit_road", "Road")
-
action_button("next", "Next")
+ action_button("done", "Done")
action_button("pass", "Pass")
action_button("undo", "Undo")
}