summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-27 16:45:35 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-27 16:45:35 +0100
commitc27e84935e3a711a8d68a8b1ce1c80c87e74bbe0 (patch)
tree9cea354ac353c56ed9e8be05441a4d68540e483f /rules.js
parentc9e742fbddc7b728ad0ca1d9c63c78c88695b040 (diff)
downloadplantagenet-c27e84935e3a711a8d68a8b1ce1c80c87e74bbe0.tar.gz
Add "all_ports" array.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 7959bd0..bdaca89 100644
--- a/rules.js
+++ b/rules.js
@@ -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