diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-28 18:44:24 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-28 18:44:24 +0200 |
commit | 4b525018355589dd783abc9ed8c4f771c08eec4f (patch) | |
tree | e47c4741152e7241e6b43e26471ea9e62c61203e /rules.ts | |
parent | b230dd4fd4f159a4f6192be5e996789e79450de0 (diff) | |
download | plantagenet-4b525018355589dd783abc9ed8c4f771c08eec4f.tar.gz |
warden of the marches - improve prompts
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 } }, |