From 09b4c69ef39fa81f4bce63ea41a392c1edc3d8a4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 19 Apr 2024 18:51:56 +0200 Subject: Add number of roses on cards to data and prepare decks accordingly. --- tools/gendata.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gendata.js b/tools/gendata.js index 1ae7c25..46f7547 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -1504,7 +1504,7 @@ let AOW = {} let cards = [] function arts_of_war_event(name, event, when) { - let c = { name, event, when, capability: null, lords: null } + let c = { name, event, roses: 0, when, capability: null, lords: null } cards.push(c) AOW[name] = c } @@ -1524,6 +1524,11 @@ function arts_of_war_capability(name, capability, lord_names) { } } +function arts_of_war_roses(roses, side, a, b) { + for (let n = a; n <= b; ++n) + AOW[side + n].roses = roses +} + arts_of_war_event("Y1", "Leeward Battle Line", "hold") arts_of_war_event("Y2", "Flank Attack", "hold") arts_of_war_event("Y3", "Escape Ship", "hold") @@ -1600,6 +1605,9 @@ arts_of_war_capability("Y35", "Kingdom United", ["Gloucester 1", "Gloucester 2"] arts_of_war_capability("Y36", "Vanguard", ["Norfolk"]) arts_of_war_capability("Y37", "Percy's North", ["Northumberland Y1", "Northumberland Y2"]) +arts_of_war_roses(1, "Y", 14, 22) +arts_of_war_roses(2, "Y", 23, 31) +arts_of_war_roses(3, "Y", 32, 37) arts_of_war_event("L1", "Leeward Battle Line", "hold") arts_of_war_event("L2", "Flank Attack", "hold") @@ -1677,6 +1685,10 @@ arts_of_war_capability("L35", "Thomas Stanley", ["Jasper Tudor 1", "Jasper Tudor arts_of_war_capability("L36", "Chevaliers", ["Oxford", "Jasper Tudor 1", "Jasper Tudor 2", "Henry Tudor"]) arts_of_war_capability("L37", "Madame La Grande", ["Oxford", "Jasper Tudor 1", "Jasper Tudor 2", "Henry Tudor"]) +arts_of_war_roses(1, "L", 14, 22) +arts_of_war_roses(2, "L", 23, 31) +arts_of_war_roses(3, "L", 32, 37) + let vassals = [] function vassal(service, name, seat, influence, capability) { vassals.push({service, name, seat, influence, capability }) -- cgit v1.2.3