diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-27 16:45:35 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-27 16:45:35 +0100 |
commit | c27e84935e3a711a8d68a8b1ce1c80c87e74bbe0 (patch) | |
tree | 9cea354ac353c56ed9e8be05441a4d68540e483f /rules.js | |
parent | c9e742fbddc7b728ad0ca1d9c63c78c88695b040 (diff) | |
download | plantagenet-c27e84935e3a711a8d68a8b1ce1c80c87e74bbe0.tar.gz |
Add "all_ports" array.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -598,7 +598,8 @@ const TURN_NAME = [ ] function find_ports(here) { - if ((lord_has_capability(game.group, AOW_YORK_GREAT_SHIPS) || lord_has_capability(game.group, AOW_LANCASTER_GREAT_SHIPS))) return data.port_1.concat(data.port_2, data.port_3) + if ((lord_has_capability(game.group, AOW_YORK_GREAT_SHIPS) || lord_has_capability(game.group, AOW_LANCASTER_GREAT_SHIPS))) + return data.all_ports if (here === data.sea_1) return data.port_1 if (here === data.sea_2) return data.port_2 if (here === data.sea_3) return data.port_3 |