diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-14 22:40:36 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 06cc8ab749f4784d431e068d691b66d8f95d8c63 (patch) | |
tree | 3390c1e865601a45ab5ffabde9dac8a54ca41c74 /tools/gendata.js | |
parent | fd82619388044a7177b95dacc19efe2e401ba75a (diff) | |
download | nevsky-06cc8ab749f4784d431e068d691b66d8f95d8c63.tar.gz |
Some +1 Command capabilities and extra seats.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 6 |
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 = [ |