diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-19 18:51:56 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-19 19:02:02 +0200 |
commit | 09b4c69ef39fa81f4bce63ea41a392c1edc3d8a4 (patch) | |
tree | 94e22d08f3e7557a09f82352398ece35b0fa91e8 /tools/gendata.js | |
parent | 2afbf0ec7e6a21495e0e4390c3b35040e4c9ad44 (diff) | |
download | plantagenet-09b4c69ef39fa81f4bce63ea41a392c1edc3d8a4.tar.gz |
Add number of roses on cards to data and prepare decks accordingly.
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 14 |
1 files changed, 13 insertions, 1 deletions
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 }) |