summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-28 19:37:52 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-28 19:38:08 +0200
commitc41f374eca04d1f2d645cae56590a8d362483d48 (patch)
tree3c45ca7bc235e9a0638e5c3ae8b23bfc4a553e6d /rules.ts
parent1908afbe1d0042d330568025902448a34b269c13 (diff)
downloadplantagenet-c41f374eca04d1f2d645cae56590a8d362483d48.tar.gz
muster exiles is optional
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index 82c7217..62e8cdc 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2765,8 +2765,8 @@ function can_use_exile_box(lord: Lord, loc: Locale) {
states.muster_exiles = {
inactive: "Muster Exiles",
prompt() {
- view.prompt = "Muster Exiles: Muster any exiled lords."
if (game.who === NOBODY) {
+ view.prompt = "Muster Exiles: Muster any exiled lords."
let done = true
for (let lord of all_friendly_lords()) {
if (can_muster_exile(lord)) {
@@ -2775,8 +2775,10 @@ states.muster_exiles = {
}
}
if (done)
- view.actions.done = true
+ view.prompt = "Muster Exiles: All done."
+ view.actions.done = true
} else {
+ view.prompt = `Muster Exiles: Muster ${lord_name[game.who]} at an exile box.`
for (let loc of all_exile_boxes) {
if (can_use_exile_box(game.who, loc))
gen_action_locale(loc)