From 06cc8ab749f4784d431e068d691b66d8f95d8c63 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 14 Dec 2022 22:40:36 +0100 Subject: Some +1 Command capabilities and extra seats. --- tools/gendata.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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 = [ -- cgit v1.2.3