From 8c5290a6d278ca9d56a35939b840bbcfba9ba436 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 5 May 2024 16:47:17 +0200 Subject: robin's rebellion only show enemy/neutral locales --- rules.ts | 14 +++++++++++--- 1 file 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) { -- cgit v1.2.3