summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-14 22:40:36 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit06cc8ab749f4784d431e068d691b66d8f95d8c63 (patch)
tree3390c1e865601a45ab5ffabde9dac8a54ca41c74 /tools/gendata.js
parentfd82619388044a7177b95dacc19efe2e401ba75a (diff)
downloadnevsky-06cc8ab749f4784d431e068d691b66d8f95d8c63.tar.gz
Some +1 Command capabilities and extra seats.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 11623b0..ba32d49 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -138,7 +138,7 @@ function defloc(region, stronghold, type, name) {
function defway(type, list) {
let ix = ways.length
- list = list.map(name=>locmap[name]).sort((a,b)=>a-b)
+ list = list.map(name=>locmap[name]).sort(cmpnum)
ways.push({type, locales: list})
for (let from of list) {
for (let to of list) {
@@ -294,7 +294,7 @@ trackway("Velikaya River, Velikiye Luki")
let seaports = [
"Riga", "Pernau", "Leal", "Reval", "Narwia", "Luga", "Koporye", "Neva"
-].map(name => locmap[name]).sort((a,b)=>a-b)
+].map(name => locmap[name]).sort(cmpnum)
function dumplist(name, list) {
print(name + ":[")
@@ -318,7 +318,7 @@ locales.forEach(loc => {
})
function seats(list) {
- return list.split(", ").map(name => locmap[name]).sort((a,b)=>a-b)
+ return list.split(", ").map(name => locmap[name]).sort(cmpnum)
}
let lords = [