summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-20 21:12:56 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-20 21:15:25 +0200
commitfcf5abc551a6ac6e0cb55e1cdaecfe6989bd4dfd (patch)
tree79b2c1fecc339c4aa1418b9c0b6f067d2093f3d1
parenta6cf7dade898789699319cbf7f78a99d872b3529 (diff)
downloadplantagenet-fcf5abc551a6ac6e0cb55e1cdaecfe6989bd4dfd.tar.gz
Add one-way road from Scotland to Bamburgh.
-rw-r--r--data.js6
-rw-r--r--tools/gendata.js6
2 files changed, 8 insertions, 4 deletions
diff --git a/data.js b/data.js
index 055056d..89ce531 100644
--- a/data.js
+++ b/data.js
@@ -12,7 +12,7 @@ port_1:[0,1,35,37,56,57],
port_2:[14,15,17,19,20,21,22,24,51],
port_3:[5,6,26],
all_ports:[0,1,5,6,14,15,17,19,20,21,22,24,26,35,37,51,56,57],
-way_exile_1:[0,1,35,37,55,56,57,60],
+way_exile_1:[1,35,37,55,56,57,60],
way_exile_2:[14,15,17,19,20,21,22,24,51,52,58],
way_exile_3:[5,6,26,54,59],
way_exile_4:[0,1,35,37,53,56,57,60],
@@ -76,7 +76,7 @@ locales:[
{"name":"York","type":"city","region":"England","adjacent":[1,47,49,56,57],"highways":[1,49],"roads":[56,57],"paths":[47],"not_paths":[1,49,56,57],"box":{"x":691,"y":623,"w":76,"h":65}},
{"name":"Calais","type":"calais","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[],"not_paths":[],"box":{"x":1134,"y":1418,"w":67,"h":79}},
{"name":"France","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[],"not_paths":[],"box":{"x":890,"y":1430,"w":109,"h":114}},
-{"name":"Scotland","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[],"not_paths":[],"box":{"x":450,"y":278,"w":111,"h":118}},
+{"name":"Scotland","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[0],"not_paths":[],"box":{"x":450,"y":278,"w":111,"h":118}},
{"name":"Ireland","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[],"not_paths":[],"box":{"x":50,"y":949,"w":110,"h":121}},
{"name":"Burgundy","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[],"not_paths":[],"box":{"x":996,"y":688,"w":110,"h":121}},
{"name":"Scarborough","type":"town","region":"North","adjacent":[1,50],"highways":[],"roads":[1,50],"paths":[],"not_paths":[1,50],"box":{"x":791,"y":532,"w":78,"h":57}},
@@ -139,7 +139,7 @@ ways:[
[1,"highway",47,"path",49,"highway",56,"road",57,"road"],
[],
[],
-[],
+[0,"path"],
[],
[],
[1,"road",50,"road"],
diff --git a/tools/gendata.js b/tools/gendata.js
index 62be7d2..196237d 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -758,11 +758,15 @@ road("Scarborough", "York")
road("York", "Ravenspur")
road("Ravenspur", "Lincoln")
+// one-way road from Scotland to Bamburgh
+locales[locmap.Scotland].paths.push(locmap.Bamburgh)
+map_set(ways[locmap.Scotland], locmap.Bamburgh, "path")
+
let way_sea_1 = ["North Sea", "English Channel", "Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich", "Dover", "Hastings", "Calais", "Arundel", "Southampton", "Dorchester", "Exeter", "Plymouth", "Truro"].map(name => locmap[name]).sort(cmpnum)
let way_sea_2 = ["English Channel","North Sea", "Irish Sea", "Bristol","Pembroke","Harlech", "English Channel","Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich","Dover", "Hastings", "Calais", "Arundel", "Southampton", "Dorchester", "Exeter", "Plymouth", "Truro" ].map(name => locmap[name]).sort(cmpnum)
let way_sea_3 = ["English Channel", "Bristol","Pembroke","Harlech", "Dover", "Hastings", "Calais", "Arundel", "Southampton", "Dorchester", "Exeter", "Plymouth", "Truro","Irish Sea"].map(name => locmap[name]).sort(cmpnum)
-let way_exile_1 = ["Burgundy", "Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich", "North Sea"].map(name => locmap[name]).sort(cmpnum)
+let way_exile_1 = ["Burgundy", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich", "North Sea"].map(name => locmap[name]).sort(cmpnum)
let way_exile_2 = ["France", "English Channel", "Dover", "Hastings", "Calais", "Arundel", "Southampton", "Dorchester", "Exeter", "Plymouth", "Truro"].map(name => locmap[name]).sort(cmpnum)
let way_exile_3 = ["Ireland", "Irish Sea", "Bristol","Pembroke","Harlech"].map(name => locmap[name]).sort(cmpnum)
let way_exile_4 = ["Scotland", "Bamburgh", "Newcastle", "Scarborough", "Ravenspur", "Lynn", "Ipswich", "North Sea"].map(name => locmap[name]).sort(cmpnum)