From c27e84935e3a711a8d68a8b1ce1c80c87e74bbe0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 27 Jan 2024 16:45:35 +0100 Subject: Add "all_ports" array. --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.js') 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 -- cgit v1.2.3