From 0b55f794a180c8afc87a71775e858fcc01fc3bf2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 24 Jun 2023 15:25:26 +0200 Subject: Select Militia. Build Improvement in 2 steps. --- play.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'play.js') 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] } -- cgit v1.2.3