summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js153
1 files changed, 76 insertions, 77 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 3a7d178..de65737 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -1495,14 +1495,13 @@ let AOW = {}
let cards = []
function arts_of_war_event(name, event, when) {
- let c = { name, event, when, capability: null, this_lord: false, lords: null }
+ let c = { name, event, when, capability: null, lords: null }
cards.push(c)
AOW[name] = c
}
-function arts_of_war_capability(name, capability, this_lord, lord_names) {
+function arts_of_war_capability(name, capability, lord_names) {
AOW[name].capability = capability
- AOW[name].this_lord = this_lord
if (lord_names === "ALL") {
AOW[name].lords = null
}
@@ -1554,43 +1553,43 @@ arts_of_war_event("Y35", "Privy Council", "this_levy")
arts_of_war_event("Y36", "Swift Maneuver", "hold")
arts_of_war_event("Y37", "Patrick de la Mote", "hold")
-arts_of_war_capability("Y1", "Culverins and falconets", true, "any")
-arts_of_war_capability("Y2", "Culverins and falconets", true, "any")
-arts_of_war_capability("Y3", "Muster'd my solders", true, "any")
-arts_of_war_capability("Y4", "We done deeds of charity", true, "any")
-arts_of_war_capability("Y5", "Thomas Bourchier", true, "any")
-arts_of_war_capability("Y6", "Great Ships", true, "any")
-arts_of_war_capability("Y7", "Harbingers", true, "any")
-arts_of_war_capability("Y8", "England is my home", true, "any")
-arts_of_war_capability("Y9", "Barricades", true, "any")
-arts_of_war_capability("Y10", "Agitators", true, "any")
-arts_of_war_capability("Y11", "Yorkists Never Wait", true, "any")
-arts_of_war_capability("Y12", "Soldiers of fortune", true, "any")
-arts_of_war_capability("Y13", "Scourers", true, "any",)
-arts_of_war_capability("Y14", "Burgundians", true, ["York", "March"])
-arts_of_war_capability("Y15", "Naval Blockade", true, ["Warwick Y"])
-arts_of_war_capability("Y16", "Beloved Warwick", true, ["Warwick Y"])
-arts_of_war_capability("Y17", "Alice Montagu", true, ["Salisbury"])
-arts_of_war_capability("Y18", "Irishmen", true, ["York", "Rutland"])
-arts_of_war_capability("Y19", "Welshmen", true, ["York", "March"])
-arts_of_war_capability("Y20", "York's favoured Son", true, ["March","Rutland"])
-arts_of_war_capability("Y21", "Southerners", true, ["York", "March", "Rutland"])
-arts_of_war_capability("Y22", "fair Arbiter", true, ["Salisbury"])
-arts_of_war_capability("Y23", "Burgundians", true, ["Edward IV", "Gloucester 1", "Gloucester 2", "Richard III"])
-arts_of_war_capability("Y24", "Hastings", true, ["Edward IV"])
-arts_of_war_capability("Y25", "Pembroke", true, ["Pembroke"])
-arts_of_war_capability("Y26", "Fallen Brother", true, ["Gloucester 1", "Gloucester 2", "Richard III"])
-arts_of_war_capability("Y27", "Percy's North", true, ["Northumberland Y1","Northumberland Y2"])
-arts_of_war_capability("Y28", "First Son", true, ["Edward IV"])
-arts_of_war_capability("Y29", "Stafford Branch", true, ["Devon"])
-arts_of_war_capability("Y30", "Captain", true, ["Devon", "Pembroke"])
-arts_of_war_capability("Y31", "Woodvilles", true, ["Edward IV", "Devon", "Gloucester 1", "Gloucester 2", "Richard III"])
-arts_of_war_capability("Y32", "Final Charge", true, ["Richard III"])
-arts_of_war_capability("Y33", "Bloody thou art, bloody will be thy end", true, ["Richard III"])
-arts_of_war_capability("Y34", "So wise, so young", true, ["Gloucester 1", "Gloucester 2"] )
-arts_of_war_capability("Y35", "Kingdom United", true, ["Gloucester 1", "Gloucester 2"] )
-arts_of_war_capability("Y36", "Vanguard", true, ["Norfolk"])
-arts_of_war_capability("Y37", "Percy's North", true, ["Northumberland Y1", "Northumberland Y2"])
+arts_of_war_capability("Y1", "Culverins and falconets", "any")
+arts_of_war_capability("Y2", "Culverins and falconets", "any")
+arts_of_war_capability("Y3", "Muster'd my solders", "any")
+arts_of_war_capability("Y4", "We done deeds of charity", "any")
+arts_of_war_capability("Y5", "Thomas Bourchier", "any")
+arts_of_war_capability("Y6", "Great Ships", "any")
+arts_of_war_capability("Y7", "Harbingers", "any")
+arts_of_war_capability("Y8", "England is my home", "any")
+arts_of_war_capability("Y9", "Barricades", "any")
+arts_of_war_capability("Y10", "Agitators", "any")
+arts_of_war_capability("Y11", "Yorkists Never Wait", "any")
+arts_of_war_capability("Y12", "Soldiers of fortune", "any")
+arts_of_war_capability("Y13", "Scourers", "any",)
+arts_of_war_capability("Y14", "Burgundians", ["York", "March"])
+arts_of_war_capability("Y15", "Naval Blockade", ["Warwick Y"])
+arts_of_war_capability("Y16", "Beloved Warwick", ["Warwick Y"])
+arts_of_war_capability("Y17", "Alice Montagu", ["Salisbury"])
+arts_of_war_capability("Y18", "Irishmen", ["York", "Rutland"])
+arts_of_war_capability("Y19", "Welshmen", ["York", "March"])
+arts_of_war_capability("Y20", "York's favoured Son", ["March","Rutland"])
+arts_of_war_capability("Y21", "Southerners", ["York", "March", "Rutland"])
+arts_of_war_capability("Y22", "fair Arbiter", ["Salisbury"])
+arts_of_war_capability("Y23", "Burgundians", ["Edward IV", "Gloucester 1", "Gloucester 2", "Richard III"])
+arts_of_war_capability("Y24", "Hastings", ["Edward IV"])
+arts_of_war_capability("Y25", "Pembroke", ["Pembroke"])
+arts_of_war_capability("Y26", "Fallen Brother", ["Gloucester 1", "Gloucester 2", "Richard III"])
+arts_of_war_capability("Y27", "Percy's North", ["Northumberland Y1","Northumberland Y2"])
+arts_of_war_capability("Y28", "First Son", ["Edward IV"])
+arts_of_war_capability("Y29", "Stafford Branch", ["Devon"])
+arts_of_war_capability("Y30", "Captain", ["Devon", "Pembroke"])
+arts_of_war_capability("Y31", "Woodvilles", ["Edward IV", "Devon", "Gloucester 1", "Gloucester 2", "Richard III"])
+arts_of_war_capability("Y32", "Final Charge", ["Richard III"])
+arts_of_war_capability("Y33", "Bloody thou art, bloody will be thy end", ["Richard III"])
+arts_of_war_capability("Y34", "So wise, so young", ["Gloucester 1", "Gloucester 2"] )
+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_event("L1", "Leeward Battle Line", "hold")
@@ -1631,43 +1630,43 @@ arts_of_war_event("L35", "Margaret Beaufort", "this_levy")
arts_of_war_event("L36", "Talbot to the Rescue", "hold")
arts_of_war_event("L37", "The Earl of Richmond", "this_levy")
-arts_of_war_capability("L1", "Culverins and falconets", true, "any")
-arts_of_war_capability("L2", "Culverins and falconets", true, "any")
-arts_of_war_capability("L3", "Muster’d my soldiers", true, "any")
-arts_of_war_capability("L4", "Heralds", true, "any")
-arts_of_war_capability("L5", "Church Blessing", true, "any")
-arts_of_war_capability("L6", "Great Ships", true, "any")
-arts_of_war_capability("L7", "Harbingers", true, "any")
-arts_of_war_capability("L8", "Hay Wains", true, "any")
-arts_of_war_capability("L9", "Quartermasters", true, "any")
-arts_of_war_capability("L10", "Chamberlains", true, "any")
-arts_of_war_capability("L11", "In the Name of the King", true, "any")
-arts_of_war_capability("L12", "Commission of Array", true, "any")
-arts_of_war_capability("L13", "Expert Counsellors", true, "any",)
-arts_of_war_capability("L14", "Percy’s Power", true, ["Northumberland L"])
-arts_of_war_capability("L15", "King’s Parley", true, ["Henry VI"])
-arts_of_war_capability("L16", "Northmen", true, ["Northumberland L"])
-arts_of_war_capability("L17", "Margaret", true, ["Henry VI"])
-arts_of_war_capability("L18", "Council Member", true, ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Buckingham"])
-arts_of_war_capability("L19", "Andrew Trollope", true, ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Buckingham"])
-arts_of_war_capability("L20", "Veteran of French Wars", true, ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2"])
-arts_of_war_capability("L21", "My Father’s Blood", true, "any")
-arts_of_war_capability("L22", "Stafford Estates", true, ["Buckingham"])
-arts_of_war_capability("L23", "Montagu", true, ["Warwick L"])
-arts_of_war_capability("L24", "Married to a Neville", true, ["Clarence"])
-arts_of_war_capability("L25", "Welsh Lord", true, ["Jasper Tudor 1", "Jasper Tudor 2"])
-arts_of_war_capability("L26", "Edward", true, ["Margaret"])
-arts_of_war_capability("L27", "Barded Horse", true, ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Margaret"])
-arts_of_war_capability("L28", "Loyal Somerset", true, ["Somerset 1", "Somerset 2"])
-arts_of_war_capability("L29", "High Admiral", true, ["Exeter 1", "Exeter 2"])
-arts_of_war_capability("L30", "Merchants", true, ["Warwick L"])
-arts_of_war_capability("L31", "Yeomen of the Crown", true, ["Margaret"])
-arts_of_war_capability("L32", "Two Roses", true, ["Henry Tudor"])
-arts_of_war_capability("L33", "Philibert de Chandée", true, ["Oxford", "Henry Tudor"])
-arts_of_war_capability("L34", "Piquiers", true, ["Oxford", "Henry Tudor"])
-arts_of_war_capability("L35", "Thomas Stanley", true, ["Jasper Tudor 1", "Jasper Tudor 2", "Henry Tudor"] )
-arts_of_war_capability("L36", "Chevaliers", true, ["Oxford", "Jasper Tudor 1", "Jasper Tudor 2", "Henry Tudor"])
-arts_of_war_capability("L37", "Madame La Grande", true, ["Oxford", "Jasper Tudor 1", "Jasper Tudor 2", "Henry Tudor"])
+arts_of_war_capability("L1", "Culverins and falconets", "any")
+arts_of_war_capability("L2", "Culverins and falconets", "any")
+arts_of_war_capability("L3", "Muster’d my soldiers", "any")
+arts_of_war_capability("L4", "Heralds", "any")
+arts_of_war_capability("L5", "Church Blessing", "any")
+arts_of_war_capability("L6", "Great Ships", "any")
+arts_of_war_capability("L7", "Harbingers", "any")
+arts_of_war_capability("L8", "Hay Wains", "any")
+arts_of_war_capability("L9", "Quartermasters", "any")
+arts_of_war_capability("L10", "Chamberlains", "any")
+arts_of_war_capability("L11", "In the Name of the King", "any")
+arts_of_war_capability("L12", "Commission of Array", "any")
+arts_of_war_capability("L13", "Expert Counsellors", "any",)
+arts_of_war_capability("L14", "Percy’s Power", ["Northumberland L"])
+arts_of_war_capability("L15", "King’s Parley", ["Henry VI"])
+arts_of_war_capability("L16", "Northmen", ["Northumberland L"])
+arts_of_war_capability("L17", "Margaret", ["Henry VI"])
+arts_of_war_capability("L18", "Council Member", ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Buckingham"])
+arts_of_war_capability("L19", "Andrew Trollope", ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Buckingham"])
+arts_of_war_capability("L20", "Veteran of French Wars", ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2"])
+arts_of_war_capability("L21", "My Father’s Blood", "any")
+arts_of_war_capability("L22", "Stafford Estates", ["Buckingham"])
+arts_of_war_capability("L23", "Montagu", ["Warwick L"])
+arts_of_war_capability("L24", "Married to a Neville", ["Clarence"])
+arts_of_war_capability("L25", "Welsh Lord", ["Jasper Tudor 1", "Jasper Tudor 2"])
+arts_of_war_capability("L26", "Edward", ["Margaret"])
+arts_of_war_capability("L27", "Barded Horse", ["Exeter 1", "Exeter 2", "Somerset 1", "Somerset 2", "Margaret"])
+arts_of_war_capability("L28", "Loyal Somerset", ["Somerset 1", "Somerset 2"])
+arts_of_war_capability("L29", "High Admiral", ["Exeter 1", "Exeter 2"])
+arts_of_war_capability("L30", "Merchants", ["Warwick L"])
+arts_of_war_capability("L31", "Yeomen of the Crown", ["Margaret"])
+arts_of_war_capability("L32", "Two Roses", ["Henry Tudor"])
+arts_of_war_capability("L33", "Philibert de Chandée", ["Oxford", "Henry Tudor"])
+arts_of_war_capability("L34", "Piquiers", ["Oxford", "Henry Tudor"])
+arts_of_war_capability("L35", "Thomas Stanley", ["Jasper Tudor 1", "Jasper Tudor 2", "Henry 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"])
let vassals = []
function vassal(service, name, seat, influence, capability) {