summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-24 15:25:26 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 18:39:37 +0200
commit0b55f794a180c8afc87a71775e858fcc01fc3bf2 (patch)
treef9b2cbc78d55038a1d2b8255e6a7e2cc267ab68b /play.js
parentf2d64ee016428edf3216b4ffd055151071d6c49a (diff)
downloadtime-of-crisis-0b55f794a180c8afc87a71775e858fcc01fc3bf2.tar.gz
Select Militia. Build Improvement in 2 steps.
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/play.js b/play.js
index 7f6b579..f2add88 100644
--- a/play.js
+++ b/play.js
@@ -1057,6 +1057,8 @@ function on_update() {
show(ui.militia[region])
else
hide(ui.militia[region])
+
+ ui.militia[region].classList.toggle("selected", view.selected_militia === region)
}
for (let i = 0; i < LEGION_COUNT; ++i) {
@@ -1324,14 +1326,15 @@ function on_update() {
action_button("reroll", "Reroll")
action_button("roll", "Roll")
+ action_button("recall_governor", "Recall Governor")
action_button("disperse_mob", "Disperse Mob")
action_button("train_legions", "Train Legions")
action_button("add_legion_to_army", "Add Legion to Army")
action_button("hold_games", "Hold Games")
-
action_button("place_militia", "Place Militia")
+ action_button("build_improvement", "Build Improvement")
action_button("amphitheater", "Amphitheater")
action_button("basilica", "Basilica")
@@ -1355,6 +1358,12 @@ function sub_region_name(match, p1) {
return REGION_NAME[x]
}
+function sub_event_name(match, p1) {
+ let x = p1 | 0
+ // TODO: tooltip?
+ return CARD_INFO[CARD_INDEX[x]].event
+}
+
function sub_dice_image(match) {
return DICE[match]
}