summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-07 20:21:57 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-11 19:16:17 +0100
commite030395f388c3991ded313b4e1d0ede79fab28f5 (patch)
tree2dbec0f9ef5b5d1d3144419d13b07e61939e124a /rules.js
parent151fe1944f0c39d2b6176840c6d71169dc8206c1 (diff)
downloadtime-of-crisis-e030395f388c3991ded313b4e1d0ede79fab28f5.tar.gz
v3: fix bugs
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index db85a1f..cd09d1a 100644
--- a/rules.js
+++ b/rules.js
@@ -3603,7 +3603,7 @@ function can_play_foederati_v3() {
for (let i = 0; i < 6; ++i) {
let id = game.current * 6 + i
let where = get_general_location(id)
- if (is_province(where) && can_foederati_from_region(where))
+ if (is_region(where) && can_foederati_from_region(where))
return true
where = get_governor_location(id)
if (is_province(where) && has_lone_militia(where) && can_foederati_from_region(where))
@@ -4323,7 +4323,7 @@ states.demagogue_v3 = {
prompt("Demagogue: Place 1-3 mobs in any province.")
view.color = POPULACE
for (let where = 0; where < 12; ++where) {
- if (!is_own_province())
+ if (!is_own_province(where))
gen_action_region(where)
}
},