diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-05 16:47:17 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-05 16:47:17 +0200 |
commit | 8c5290a6d278ca9d56a35939b840bbcfba9ba436 (patch) | |
tree | f6bab5fb50016ba1ea1f0206e79152d1b9be032d | |
parent | 26ce3d8cc3566898d2159bcaed5385f0355d608f (diff) | |
download | plantagenet-8c5290a6d278ca9d56a35939b840bbcfba9ba436.tar.gz |
robin's rebellion only show enemy/neutral locales
-rw-r--r-- | rules.ts | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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) { |