summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-01 16:50:28 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-01 16:50:28 +0100
commit496d5451fc34d5eb92ff331a7d09e8573dd198d6 (patch)
treecc10c4535fc616c74eb061304ee507be4f9240ec
parent3e1845379d59733bb58631d929f88747af815911 (diff)
downloadmaria-496d5451fc34d5eb92ff331a7d09e8573dd198d6.tar.gz
Don't allow re-entering supply trains on Flanders map.
-rw-r--r--rules.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0afc5c0..50486c5 100644
--- a/rules.js
+++ b/rules.js
@@ -3271,15 +3271,21 @@ function has_re_entry_space_for_supply_train(pow) {
}
function gen_re_enter_train_at_power_fortress(pow) {
- for (let s of all_home_country_major_fortresses[pow])
+ for (let s of all_home_country_major_fortresses[pow]) {
+ if (is_intro() && is_flanders_space(s))
+ continue
if (is_friendly_controlled_fortress(s) && !has_any_piece(s))
gen_action_space(s)
+ }
}
function can_re_enter_train_at_power_fortress(pow) {
- for (let s of all_home_country_major_fortresses[pow])
+ for (let s of all_home_country_major_fortresses[pow]) {
+ if (is_intro() && is_flanders_space(s))
+ continue
if (is_friendly_controlled_fortress(s) && !has_any_piece(s))
return true
+ }
return false
}