diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-11 12:48:14 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-11 12:48:14 +0100 |
commit | 38e6f1157655d74ef879fbe2f80d9716f910093b (patch) | |
tree | 95f74743a8e88345c05e4c3ae7190ddf8fae2990 | |
parent | 2e77e4a9cf7317db567abe1203feb4d00b52ddb8 (diff) | |
download | maria-38e6f1157655d74ef879fbe2f80d9716f910093b.tar.gz |
re-enter
-rw-r--r-- | rules.js | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -645,6 +645,28 @@ function is_hostile_to_austria() { // TODO: simplify all these lists and stuff +function all_controlled_powers(pow) { + switch (coop_major_power(pow)) { + case P_FRANCE: + return all_powers_france_bavaria + case P_PRUSSIA: + if (is_saxony_prussian()) + return all_powers_prussia_saxony + return all_powers_prussia + case P_PRAGMATIC: + return all_powers_pragmatic + case P_AUSTRIA: + if (is_two_player() && !is_intro()) { + if (is_saxony_austrian()) + return all_powers_pragmatic_austria_saxony + return all_powers_pragmatic_austria + } + if (is_saxony_austrian()) + return all_powers_austria_saxony + return all_powers_austria + } +} + function all_controlled_pieces(pow) { switch (coop_major_power(pow)) { case P_FRANCE: |