From e8b02e17173feec741bd4475a299aa664346a41f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 12 Nov 2023 01:53:17 +0100 Subject: Show last used border, border limits, and main attack. Optimize border state representation (use maps instead of objects). --- data.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'data.js') diff --git a/data.js b/data.js index 920e8c6..d1d6f8b 100644 --- a/data.js +++ b/data.js @@ -90,6 +90,58 @@ let AREAS = [] let BORDERS = [] +const BORDERS_XY = { + "England / Dunbar": {"x":1285,"y":1320}, + "England / Annan": {"x":1065,"y":1630}, + "England / Teviot": {"x":1210,"y":1495}, + "Ross / Garmoran": {"x":505,"y":450}, + "Ross / Moray": {"x":665,"y":455}, + "Garmoran / Moray": {"x":550,"y":590}, + "Garmoran / Lochaber": {"x":445,"y":670}, + "Moray / Strathspey": {"x":860,"y":460}, + "Moray / Lochaber": {"x":565,"y":665}, + "Moray / Badenoch": {"x":715,"y":610}, + "Strathspey / Buchan": {"x":1110,"y":430}, + "Strathspey / Badenoch": {"x":880,"y":530}, + "Buchan / Badenoch": {"x":990,"y":565}, + "Buchan / Mar": {"x":1095,"y":605}, + "Buchan / Angus": {"x":1240,"y":645}, + "Lochaber / Badenoch": {"x":675,"y":730}, + "Lochaber / Argyll": {"x":530,"y":860}, + "Lochaber / Atholl": {"x":635,"y":855}, + "Badenoch / Mar": {"x":904,"y":672}, + "Badenoch / Atholl": {"x":730,"y":790}, + "Mar / Angus": {"x":1035,"y":750}, + "Mar / Atholl": {"x":835,"y":785}, + "Angus / Atholl": {"x":880,"y":855}, + "Angus / Fife": {"x":965,"y":900}, + "Argyll / Atholl": {"x":585,"y":950}, + "Argyll / Lennox": {"x":545,"y":1065}, + "Atholl / Lennox": {"x":615,"y":1025}, + "Atholl / Mentieth": {"x":690,"y":980}, + "Atholl / Fife": {"x":845,"y":905}, + "Lennox / Mentieth": {"x":725,"y":1185}, + "Lennox / Carrick": {"x":625,"y":1310}, + "Lennox / Lanark": {"x":725,"y":1260}, + "Mentieth / Fife": {"x":880,"y":1060}, + "Mentieth / Lanark": {"x":810,"y":1235}, + "Mentieth / Lothian": {"x":900,"y":1215}, + "Carrick / Lanark": {"x":790,"y":1450}, + "Carrick / Galloway": {"x":680,"y":1556}, + "Carrick / Annan": {"x":850,"y":1540}, + "Lanark / Lothian": {"x":905,"y":1275}, + "Lanark / Selkirk": {"x":922,"y":1377}, + "Lanark / Annan": {"x":888,"y":1470}, + "Lothian / Selkirk": {"x":1010,"y":1300}, + "Lothian / Dunbar": {"x":1100,"y":1235}, + "Selkirk / Dunbar": {"x":1115,"y":1310}, + "Selkirk / Annan": {"x":980,"y":1472}, + "Selkirk / Teviot": {"x":1080,"y":1405}, + "Dunbar / Teviot": {"x":1195,"y":1335}, + "Galloway / Annan": {"x":860,"y":1625}, + "Annan / Teviot": {"x":1070,"y":1525}, +} + ;(function () { function border(A,B,T) { A = area_index[A] -- cgit v1.2.3