diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-31 13:34:44 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-12-31 13:34:44 +0100 |
commit | 75489ebdb579b01122855d4dfa2a767be6574d51 (patch) | |
tree | d5d12592c6dd84aca1de32b9abe0ea6a07949ade | |
parent | 70658f1d0dd021b7a98dc82559e073cb717c9246 (diff) | |
download | rommel-in-the-desert-75489ebdb579b01122855d4dfa2a767be6574d51.tar.gz |
Units assigned fortress supply MUST withdraw using fortress supply.
... so don't skip calculating the withdrawal fortress supply lines
even if the fortress is not isolated anymore.
-rw-r--r-- | rules.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2868,17 +2868,20 @@ function save_withdrawal_supply_lines() { let net = game.withdraw.supply_net = friendly_supply_network().slice() game.withdraw.supply_line = friendly_supply_line().slice() - if (!net[BARDIA] && is_fortress_friendly_controlled(BARDIA)) { + // Units assigned fortress supply MUST withdraw using fortress supply lines, + // even if they are currently in the base supply network. + + if (is_fortress_friendly_controlled(BARDIA)) { game.withdraw.bardia_net = bardia_supply_network().slice() game.withdraw.bardia_line = bardia_supply_line().slice() } - if (!net[BENGHAZI] && is_fortress_friendly_controlled(BENGHAZI)) { + if (is_fortress_friendly_controlled(BENGHAZI)) { game.withdraw.benghazi_net = benghazi_supply_network().slice() game.withdraw.benghazi_line = benghazi_supply_line().slice() } - if (!net[TOBRUK] && is_fortress_friendly_controlled(TOBRUK)) { + if (is_fortress_friendly_controlled(TOBRUK)) { game.withdraw.tobruk_net = tobruk_supply_network().slice() game.withdraw.tobruk_line = tobruk_supply_line().slice() } |