summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-11 12:48:14 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-11 12:48:14 +0100
commit38e6f1157655d74ef879fbe2f80d9716f910093b (patch)
tree95f74743a8e88345c05e4c3ae7190ddf8fae2990 /rules.js
parent2e77e4a9cf7317db567abe1203feb4d00b52ddb8 (diff)
downloadmaria-38e6f1157655d74ef879fbe2f80d9716f910093b.tar.gz
re-enter
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 4733b6b..30bee2f 100644
--- a/rules.js
+++ b/rules.js
@@ -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: