summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-28 18:44:24 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-28 18:44:24 +0200
commit4b525018355589dd783abc9ed8c4f771c08eec4f (patch)
treee47c4741152e7241e6b43e26471ea9e62c61203e
parentb230dd4fd4f159a4f6192be5e996789e79450de0 (diff)
downloadplantagenet-4b525018355589dd783abc9ed8c4f771c08eec4f.tar.gz
warden of the marches - improve prompts
-rw-r--r--rules.ts13
1 files changed, 10 insertions, 3 deletions
diff --git a/rules.ts b/rules.ts
index 1bf9150..42f4244 100644
--- a/rules.ts
+++ b/rules.ts
@@ -8136,14 +8136,21 @@ states.warden_of_the_marches = {
inactive: "Warden of the Marches",
prompt() {
if (game.where === NOWHERE) {
- view.prompt = "Warden of the Marches: Move routed Lancastrians to a friendly stronghold in the North."
+ view.prompt = "Warden of the Marches: Choose a friendly stronghold in the North."
for (let loc of all_locales)
if (is_north(loc) && loc !== game.battle.where && is_friendly_locale(loc) && !has_enemy_lord(loc))
gen_action_locale(loc)
} else {
- for (let lord of game.battle.routed)
- if (is_move_allowed(lord, game.where))
+ view.prompt = `Warden of the Marches: Move routed Lancastrians to ${locale_name[game.where]}.`
+ let done = true
+ for (let lord of game.battle.routed) {
+ if (is_move_allowed(lord, game.where)) {
gen_action_lord(lord)
+ done = false
+ }
+ }
+ if (done)
+ view.prompt = "Warden of the Marches: All done."
view.actions.done = 1
}
},