summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-17 20:09:47 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit4406a730314dd97654b4545685b305a12a76d6fb (patch)
treeb90b0013f3e5dd6662ef91825e99a3b721f2d849 /tools/gendata.js
parent773c2f65b0104dd1ae692d8a73e08e2adbebe275 (diff)
downloadnevsky-4406a730314dd97654b4545685b305a12a76d6fb.tar.gz
More capabilities.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 04365b8..8da9e17 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -826,6 +826,16 @@ vassals.forEach((vassal,id) => {
vassal.image = last_path.indexOf(path)
})
+let steppe_warriors = []
+let 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)
+}
+
let script = []
script.push("mkdir -p service300")
script.push("montage -mode concatenate -tile 1x " + lord_service.Teutonic.join(" ") + " service300/service_lords_teutonic.png")
@@ -837,6 +847,8 @@ print("const data = {")
print("seaports:" + JSON.stringify(seaports) + ",")
print("conquerable:" + JSON.stringify(conquerable) + ",")
print("strongholds:" + JSON.stringify(strongholds) + ",")
+print("steppe_warriors:" + JSON.stringify(steppe_warriors) + ",")
+print("crusaders:" + JSON.stringify(crusaders) + ",")
dumplist("locales", locales)
dumplist("ways", ways)
dumplist("lords", lords)