summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-25 17:22:56 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-25 17:22:56 +0200
commit269d1140eec9d22dee5387681413e920409f6b71 (patch)
treedae387c84fed38db5e814f434cc011e72afc17f9
parentc0001ff5fdce63b7755475a1566f81bcf7c9969c (diff)
downloadfriedrich-269d1140eec9d22dee5387681413e920409f6b71.tar.gz
don't allow prussia to caputre in war in the west
-rw-r--r--rules.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 808d4de..1a97393 100644
--- a/rules.js
+++ b/rules.js
@@ -426,10 +426,16 @@ make_protect(P_HANOVER, data.country.Hanover)
make_protect(P_AUSTRIA, data.country.Austria)
function is_conquest_space(pow, s) {
- if (pow === P_PRUSSIA && game.scenario >= 3) {
- if (is_offensive_option_active() || game.turn < 3)
+ if (pow === P_PRUSSIA) {
+ if (game.scenario === 1)
+ return false
+ if (game.scenario === 2)
return set_has(primary_objective[pow], s)
- return false
+ if (game.scenario >= 3) {
+ if (is_offensive_option_active() || game.turn < 3)
+ return set_has(primary_objective[pow], s)
+ return false
+ }
}
if (has_eased_victory(pow))
return set_has(primary_objective[pow], s)