diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-25 17:22:56 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-25 17:22:56 +0200 |
commit | 269d1140eec9d22dee5387681413e920409f6b71 (patch) | |
tree | dae387c84fed38db5e814f434cc011e72afc17f9 | |
parent | c0001ff5fdce63b7755475a1566f81bcf7c9969c (diff) | |
download | friedrich-269d1140eec9d22dee5387681413e920409f6b71.tar.gz |
don't allow prussia to caputre in war in the west
-rw-r--r-- | rules.js | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |