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. --- tools/gendata.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gendata.js b/tools/gendata.js index 92cadd2..4fbf017 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -783,7 +783,7 @@ let exile_3 = locmap["Ireland"] let port_1 = ["Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich"].map(name => locmap[name]).sort(cmpnum) let port_2 = ["Dover", "Hastings", "Calais", "Arundel", "Southampton", "Dorchester", "Exeter", "Plymouth", "Truro"].map(name => locmap[name]).sort(cmpnum) let port_3 = ["Bristol","Pembroke","Harlech"].map(name => locmap[name]).sort(cmpnum) - +let all_ports = [ ...port_1, ...port_2, ...port_3 ].sort(cmpnum) let seaports = [ "English Channel", "Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich", "North Sea", "Burgundy", "Dover", "Hastings", "Calais", "France", "Arundel", "Southampton","Dorchester","Exeter","Plymouth","Truro","Bristol","Pembroke","Harlech", "Ireland", "Irish Sea" @@ -1717,6 +1717,7 @@ print("sea_3:" + JSON.stringify(sea_3) + ",") print("port_1:" + JSON.stringify(port_1) + ",") print("port_2:" + JSON.stringify(port_2) + ",") print("port_3:" + JSON.stringify(port_3) + ",") +print("all_ports:" + JSON.stringify(all_ports) + ",") print("way_exile_1:" + JSON.stringify(way_exile_1) + ",") print("way_exile_2:" + JSON.stringify(way_exile_2) + ",") print("way_exile_3:" + JSON.stringify(way_exile_3) + ",") -- cgit v1.2.3