From 38831a6bc8ba83bd09fa09ba3a16da5cdfcac5c0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 18 Dec 2022 16:08:33 +0100 Subject: Summer Crusaders (WIP). --- tools/gendata.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/gendata.js') diff --git a/tools/gendata.js b/tools/gendata.js index 8da9e17..15b8780 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -827,15 +827,20 @@ vassals.forEach((vassal,id) => { }) let steppe_warriors = [] -let crusaders = [] +let summer_crusaders = [] for (let i = 0; i < vassals.length; ++i) { if (vassals[i].capability === "Steppe Warriors") steppe_warriors.push(i) if (vassals[i].capability === "Crusade") - crusaders.push(i) + summer_crusaders.push(i) } +let bishoprics = [] +for (let loc = 0; loc < locales.length; ++loc) + if (locales[loc].type === "bishopric") + bishoprics.push(loc) + let script = [] script.push("mkdir -p service300") script.push("montage -mode concatenate -tile 1x " + lord_service.Teutonic.join(" ") + " service300/service_lords_teutonic.png") @@ -845,10 +850,11 @@ script.push("montage -mode concatenate -tile 3x " + vassal_service.Russian.join( print("const data = {") print("seaports:" + JSON.stringify(seaports) + ",") +print("bishoprics:" + JSON.stringify(bishoprics) + ",") print("conquerable:" + JSON.stringify(conquerable) + ",") print("strongholds:" + JSON.stringify(strongholds) + ",") print("steppe_warriors:" + JSON.stringify(steppe_warriors) + ",") -print("crusaders:" + JSON.stringify(crusaders) + ",") +print("summer_crusaders:" + JSON.stringify(summer_crusaders) + ",") dumplist("locales", locales) dumplist("ways", ways) dumplist("lords", lords) -- cgit v1.2.3