diff options
-rw-r--r-- | data.js | 6 | ||||
-rw-r--r-- | tools/gendata.js | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -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) |