summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-21 13:39:57 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-21 13:40:32 +0200
commit92ce3fbff9995208f4eac88d7b1b7d69e6846ba2 (patch)
tree2d738a4988ebdd17745b46ec4730459edeb59daf
parent23644c4a9875f59d7516db5d8a1a48d244de479a (diff)
downloadplantagenet-92ce3fbff9995208f4eac88d7b1b7d69e6846ba2.tar.gz
Add one-way road from Scotland to Carlisle.
-rw-r--r--data.js4
-rw-r--r--tools/gendata.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/data.js b/data.js
index 89ce531..0b512f3 100644
--- a/data.js
+++ b/data.js
@@ -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":[0],"not_paths":[],"box":{"x":450,"y":278,"w":111,"h":118}},
+{"name":"Scotland","type":"exile","region":"England","adjacent":[],"highways":[],"roads":[],"paths":[0,4],"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"],
+[0,"path",4,"path"],
[],
[],
[1,"road",50,"road"],
diff --git a/tools/gendata.js b/tools/gendata.js
index 196237d..e2b4106 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -762,6 +762,10 @@ road("Ravenspur", "Lincoln")
locales[locmap.Scotland].paths.push(locmap.Bamburgh)
map_set(ways[locmap.Scotland], locmap.Bamburgh, "path")
+// one-way road from Scotland to Carlisle
+locales[locmap.Scotland].paths.push(locmap.Carlisle)
+map_set(ways[locmap.Scotland], locmap.Carlisle, "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)