summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-05 16:47:17 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-05 16:47:17 +0200
commit8c5290a6d278ca9d56a35939b840bbcfba9ba436 (patch)
treef6bab5fb50016ba1ea1f0206e79152d1b9be032d
parent26ce3d8cc3566898d2159bcaed5385f0355d608f (diff)
downloadplantagenet-8c5290a6d278ca9d56a35939b840bbcfba9ba436.tar.gz
robin's rebellion only show enemy/neutral locales
-rw-r--r--rules.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/rules.ts b/rules.ts
index 510c586..e064be8 100644
--- a/rules.ts
+++ b/rules.ts
@@ -11863,9 +11863,17 @@ states.robins_rebellion = {
inactive: "Robin's Rebellion",
prompt() {
view.prompt = "Robin's Rebellion: Place and/or remove up to 3 favour total in the North."
- for (let loc of all_locales)
- if (game.count < 3 && is_north(loc))
- gen_action_locale(loc)
+ let done = true
+ if (game.count < 3) {
+ for (let loc of all_north_locales) {
+ if (!is_friendly_locale(loc)) {
+ gen_action_locale(loc)
+ done = false
+ }
+ }
+ }
+ if (done)
+ view.prompt = "Robin's Rebellion: All done."
view.actions.done = 1
},
locale(loc) {