diff options
Diffstat (limited to 'rules.js')
-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: |