diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-22 23:52:35 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-22 23:52:35 +0200 |
commit | e5ce11b9d74c815ea0434980eee3b14ad0d37991 (patch) | |
tree | c1edad6f5684698baefd5436cf7793f1e931f8a7 | |
parent | 48ac91c140ccbd63b065c35ad99852afaddae71c (diff) | |
download | plantagenet-e5ce11b9d74c815ea0434980eee3b14ad0d37991.tar.gz |
Fix inverted logic in is_stronghold.
-rw-r--r-- | rules.ts | 4 | ||||
-rw-r--r-- | tools/gendata.js | 1 |
2 files changed, 2 insertions, 3 deletions
@@ -519,7 +519,7 @@ function is_port_3(x: Locale) { return (x >= 5 && x <= 6) || x === 26 } function is_adjacent_north_sea(x: Locale) { return x === 1 || x === 35 || x === 37 || (x >= 56 && x <= 57) } function is_adjacent_english_channel(x: Locale) { return (x >= 14 && x <= 15) || x === 17 || (x >= 19 && x <= 22) || x === 24 || x === 51 } function is_adjacent_irish_sea(x: Locale) { return (x >= 5 && x <= 6) || x === 26 } -function is_stronghold(x: Locale) { return (x >= 52 && x <= 55) || (x >= 58 && x <= 60) } +function is_stronghold(x: Locale) { return (x >= 0 && x <= 51) || (x >= 56 && x <= 57) } function is_fortress(x: Locale) { return x === 0 || x === 6 || x === 9 || x === 37 || x === 57 } function is_north(x: Locale) { return (x >= 0 && x <= 4) || x === 56 } function is_city(x: Locale) { return x === 1 || x === 4 || (x >= 7 && x <= 8) || (x >= 10 && x <= 13) || x === 16 || x === 18 || x === 21 || x === 23 || (x >= 25 && x <= 28) || x === 36 || (x >= 38 && x <= 39) || x === 41 || x === 43 || (x >= 46 && x <= 47) || (x >= 49 && x <= 50) } @@ -11675,7 +11675,7 @@ states.aspielles = { for (let lord of all_enemy_lords()) gen_action_lord(lord) } else { - view.prompt = "Aspielles: Inspect enemy Held cards and ${lord_name[game.who]} mat." + view.prompt = `Aspielles: Inspect enemy Held cards and ${lord_name[game.who]} mat.` reveal_lord(game.who) view.actions.done = 1 } diff --git a/tools/gendata.js b/tools/gendata.js index 4d97854..d4b4c9d 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -354,7 +354,6 @@ function defloc(region, type, name) { if (region) { if (!is[region]) is[region] = [] is[region].push(id) - } else { is.stronghold.push(id) } ways.push([]) |