summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-11-19 22:56:08 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:37 +0100
commit1bc80c430198d095315cd0c7643d18d12538c62b (patch)
tree6523b86a38999f3281f21b57b12c70bf4f3519e3 /tools/gendata.js
parent3a83d94096a32e838f3331932644f4495593e6e8 (diff)
downloadnevsky-1bc80c430198d095315cd0c7643d18d12538c62b.tar.gz
Initial capability draw. Click on lord shields.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 3b5ece1..61980d1 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -607,7 +607,7 @@ function arts_of_war_capability(name, capability, this_lord, lord_names) {
lord_names = lords.filter(l => l.side === side).map(l => l.name)
AOW[name].lords = lord_names.map(n => lords.findIndex(l => l.name === n)).sort(cmpnum)
}
- else {
+ else if (Array.isArray(lord_names)) {
AOW[name].lords = lord_names.map(n => lords.findIndex(l => l.name === n)).sort(cmpnum)
}
}
@@ -652,6 +652,9 @@ arts_of_war_capability("T15", "Warrior Monks", false, [ "Andreas", "Rudolf" ])
arts_of_war_capability("T16", "Ransom", false, "ALL")
arts_of_war_capability("T17", "Stonemasons", true, "any")
arts_of_war_capability("T18", "Cogs", true, [ "Heinrich", "Knud & Abel", "Andreas" ])
+arts_of_war_capability("T0", "No Capability", false, null)
+arts_of_war_capability("T0", "No Capability", false, null)
+arts_of_war_capability("T0", "No Capability", false, null)
arts_of_war_event("R1", "Bridge", "hold")
arts_of_war_event("R2", "Marsh", "hold")
@@ -693,6 +696,9 @@ arts_of_war_capability("R15", "Archbishopric", false, "any")
arts_of_war_capability("R16", "Lodya", true, "any")
arts_of_war_capability("R17", "Veliky Knyaz", true, "any")
arts_of_war_capability("R18", "Stone Kremlin", true, "any")
+arts_of_war_capability("R0", "No Capability", false, null)
+arts_of_war_capability("R0", "No Capability", false, null)
+arts_of_war_capability("R0", "No Capability", false, null)
let vassals = []
for (let lord of lords)