From c238084cfa696ae94240d93d1d1e728870be0586 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 19 Jul 2023 15:23:50 +0200 Subject: Tweak prompt for Flanking Maneuver. --- play.js | 6 ++++-- rules.js | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/play.js b/play.js index f2b723a..de6dfb6 100644 --- a/play.js +++ b/play.js @@ -1515,7 +1515,9 @@ function on_update() { action_button("automatic", "Automatic") action_button("spend_military", "Spend Military") action_button("spend_senate", "Spend Senate") - action_button("reroll", "Reroll") + + action_button("keep", "Keep") + action_button("reroll", "Re-roll") action_button("roll", "Roll") action_button("disperse_mob", "Disperse Mob") @@ -1534,7 +1536,7 @@ function on_update() { action_button("end_actions", "End Actions") action_button("end_turn", "End Turn") - action_button("keep", "Keep") + action_button("pass", "Pass") action_button("done", "Done") action_button("undo", "Undo") diff --git a/rules.js b/rules.js index faffc09..c1c0bba 100644 --- a/rules.js +++ b/rules.js @@ -3962,10 +3962,13 @@ states.flanking_maneuver = { get inactive() { return "Flanking Maneuver. " + format_hits() }, prompt() { prompt("Flanking Maneuver: " + format_hits() + ".") - view.actions.pass = 1 + view.actions.keep = 1 view.actions.reroll = 1 }, pass() { + this.keep() + }, + keep() { push_undo() goto_assign_hits() }, -- cgit v1.2.3