From 1bc80c430198d095315cd0c7643d18d12538c62b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Nov 2022 22:56:08 +0100 Subject: Initial capability draw. Click on lord shields. --- tools/gendata.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools') 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) -- cgit v1.2.3