summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.js148
-rw-r--r--rules.js42
-rw-r--r--tools/gendata.js153
3 files changed, 166 insertions, 177 deletions
diff --git a/data.js b/data.js
index cd6f058..8a9f0e4 100644
--- a/data.js
+++ b/data.js
@@ -216,80 +216,80 @@ vassals:[
{"service":0,"name":"Hastings","seat":-1,"influence":0,"capability":"Hastings"},
],
cards:[
-{"name":"Y1","event":"Leeward Battle Line","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y2","event":"Flank Attack","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y3","event":"Escape Ship","when":"hold","capability":"Muster'd my solders","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y4","event":"Jack Cade","when":"this_levy","capability":"We done deeds of charity","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y5","event":"Suspicion","when":"hold","capability":"Thomas Bourchier","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y6","event":"Seamanship","when":"this_campaign","capability":"Great Ships","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y7","event":"Yorkists Block Parliament","when":"this_levy","capability":"Harbingers","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y8","event":"Exile Pact","when":"this_levy","capability":"England is my home","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y9","event":"Escape Ship","when":"hold","capability":"Barricades","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y10","event":"Tax Collectors","when":"now","capability":"Agitators","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y11","event":"Blocked Ford","when":"hold","capability":"Yorkists Never Wait","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y12","event":"Parliament's Truce","when":"hold","capability":"Soldiers of fortune","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y13","event":"Aspielles","when":"hold","capability":"Scourers","this_lord":true,"lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
-{"name":"Y14","event":"Richard of York","when":"this_levy","capability":"Burgundians","this_lord":true,"lords":[0,1]},
-{"name":"Y15","event":"London for York","when":"now","capability":"Naval Blockade","this_lord":true,"lords":[13]},
-{"name":"Y16","event":"The Commons","when":"this_levy","capability":"Beloved Warwick","this_lord":true,"lords":[13]},
-{"name":"Y17","event":"She-Wolf of France","when":"now","capability":"Alice Montagu","this_lord":true,"lords":[3]},
-{"name":"Y18","event":"Succession","when":"this_levy","capability":"Irishmen","this_lord":true,"lords":[0,4]},
-{"name":"Y19","event":"Caltrops","when":"hold","capability":"Welshmen","this_lord":true,"lords":[0,1]},
-{"name":"Y20","event":"Yorkist Parade","when":"hold","capability":"York's favoured Son","this_lord":true,"lords":[1,4]},
-{"name":"Y21","event":"Sir Richard Leigh","when":"now","capability":"Southerners","this_lord":true,"lords":[0,1,4]},
-{"name":"Y22","event":"Loyalty and Trust","when":"this_levy","capability":"fair Arbiter","this_lord":true,"lords":[3]},
-{"name":"Y23","event":"Charles the Bold","when":"now","capability":"Burgundians","this_lord":true,"lords":[2,9,10,11]},
-{"name":"Y24","event":"Sun in Splendour","when":"hold","capability":"Hastings","this_lord":true,"lords":[2]},
-{"name":"Y25","event":"Owain Glyndwr","when":"this_campaign","capability":"Pembroke","this_lord":true,"lords":[5]},
-{"name":"Y26","event":"Dubious Clarence","when":"now","capability":"Fallen Brother","this_lord":true,"lords":[9,10,11]},
-{"name":"Y27","event":"Yorkist North","when":"now","capability":"Percy's North","this_lord":true,"lords":[7,8]},
-{"name":"Y28","event":"Gloucester as heir","when":"this_levy","capability":"First Son","this_lord":true,"lords":[2]},
-{"name":"Y29","event":"Dorset","when":"this_campaign","capability":"Stafford Branch","this_lord":true,"lords":[6]},
-{"name":"Y30","event":"Regroup","when":"hold","capability":"Captain","this_lord":true,"lords":[5,6]},
-{"name":"Y31","event":"Earl Rivers","when":"now","capability":"Woodvilles","this_lord":true,"lords":[2,6,9,10,11]},
-{"name":"Y32","event":"The King's Name","when":"this_levy","capability":"Final Charge","this_lord":true,"lords":[11]},
-{"name":"Y33","event":"Edward V","when":"this_levy","capability":"Bloody thou art, bloody will be thy end","this_lord":true,"lords":[11]},
-{"name":"Y34","event":"An honest tale speeds best","when":"this_campaign","capability":"So wise, so young","this_lord":true,"lords":[9,10]},
-{"name":"Y35","event":"Privy Council","when":"this_levy","capability":"Kingdom United","this_lord":true,"lords":[9,10]},
-{"name":"Y36","event":"Swift Maneuver","when":"hold","capability":"Vanguard","this_lord":true,"lords":[12]},
-{"name":"Y37","event":"Patrick de la Mote","when":"hold","capability":"Percy's North","this_lord":true,"lords":[7,8]},
-{"name":"L1","event":"Leeward Battle Line","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L2","event":"Flank Attack","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L3","event":"Escape Ship","when":"hold","capability":"Muster’d my soldiers","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L4","event":"Be sent for","when":"this_levy","capability":"Heralds","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L5","event":"Suspicion","when":"hold","capability":"Church Blessing","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L6","event":"Seamanship","when":"this_campaign","capability":"Great Ships","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L7","event":"For trust not him","when":"hold","capability":"Harbingers","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L8","event":"Forced Marches","when":"this_campaign","capability":"Hay Wains","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L9","event":"Rising Wages","when":"this_levy","capability":"Quartermasters","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L10","event":"New Act of Parliament","when":"this_campaign","capability":"Chamberlains","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L11","event":"Blocked Ford","when":"hold","capability":"In the Name of the King","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L12","event":"Ravine","when":"hold","capability":"Commission of Array","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L13","event":"Aspielles","when":"hold","capability":"Expert Counsellors","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L14","event":"Scots","when":"now","capability":"Percy’s Power","this_lord":true,"lords":[21]},
-{"name":"L15","event":"Henry Pressures Parliament","when":"now","capability":"King’s Parley","this_lord":true,"lords":[14]},
-{"name":"L16","event":"Warden of the Marches","when":"hold","capability":"Northmen","this_lord":true,"lords":[21]},
-{"name":"L17","event":"My crown is in my heart","when":"this_levy","capability":"Margaret","this_lord":true,"lords":[14]},
-{"name":"L18","event":"Parliament Votes","when":"this_levy","capability":"Council Member","this_lord":true,"lords":[16,17,18,19,20]},
-{"name":"L19","event":"Henry’s Proclamation","when":"now","capability":"Andrew Trollope","this_lord":true,"lords":[16,17,18,19,20]},
-{"name":"L20","event":"Parliament Truce","when":"hold","capability":"Veteran of French Wars","this_lord":true,"lords":[16,17,18,19]},
-{"name":"L21","event":"French Fleet","when":"this_campaign","capability":"My Father’s Blood","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
-{"name":"L22","event":"French Troops","when":"now","capability":"Stafford Estates","this_lord":true,"lords":[20]},
-{"name":"L23","event":"Warwick’s Propaganda","when":"now","capability":"Montagu","this_lord":true,"lords":[27]},
-{"name":"L24","event":"Warwick’s Propaganda","when":"now","capability":"Married to a Neville","this_lord":true,"lords":[22]},
-{"name":"L25","event":"Welsh Rebellion","when":"now","capability":"Welsh Lord","this_lord":true,"lords":[23,24]},
-{"name":"L26","event":"Henry Released","when":"now","capability":"Edward","this_lord":true,"lords":[15]},
-{"name":"L27","event":"L’Universelle Aragne","when":"now","capability":"Barded Horse","this_lord":true,"lords":[15,16,17,18,19]},
-{"name":"L28","event":"Rebel Supply Depot","when":"hold","capability":"Loyal Somerset","this_lord":true,"lords":[16,17]},
-{"name":"L29","event":"To wilful disobedience","when":"now","capability":"High Admiral","this_lord":true,"lords":[18,19]},
-{"name":"L30","event":"French War Loans","when":"now","capability":"Merchants","this_lord":true,"lords":[27]},
-{"name":"L31","event":"Robin’s Rebellion","when":"now","capability":"Yeomen of the Crown","this_lord":true,"lords":[15]},
-{"name":"L32","event":"Tudor Banners","when":"now","capability":"Two Roses","this_lord":true,"lords":[25]},
-{"name":"L33","event":"Surprise Landing","when":"hold","capability":"Philibert de Chandée","this_lord":true,"lords":[25,26]},
-{"name":"L34","event":"Buckingham’s Plot","when":"this_levy","capability":"Piquiers","this_lord":true,"lords":[25,26]},
-{"name":"L35","event":"Margaret Beaufort","when":"this_levy","capability":"Thomas Stanley","this_lord":true,"lords":[23,24,25]},
-{"name":"L36","event":"Talbot to the Rescue","when":"hold","capability":"Chevaliers","this_lord":true,"lords":[23,24,25,26]},
-{"name":"L37","event":"The Earl of Richmond","when":"this_levy","capability":"Madame La Grande","this_lord":true,"lords":[23,24,25,26]},
+{"name":"Y1","event":"Leeward Battle Line","when":"hold","capability":"Culverins and falconets","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y2","event":"Flank Attack","when":"hold","capability":"Culverins and falconets","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y3","event":"Escape Ship","when":"hold","capability":"Muster'd my solders","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y4","event":"Jack Cade","when":"this_levy","capability":"We done deeds of charity","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y5","event":"Suspicion","when":"hold","capability":"Thomas Bourchier","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y6","event":"Seamanship","when":"this_campaign","capability":"Great Ships","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y7","event":"Yorkists Block Parliament","when":"this_levy","capability":"Harbingers","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y8","event":"Exile Pact","when":"this_levy","capability":"England is my home","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y9","event":"Escape Ship","when":"hold","capability":"Barricades","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y10","event":"Tax Collectors","when":"now","capability":"Agitators","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y11","event":"Blocked Ford","when":"hold","capability":"Yorkists Never Wait","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y12","event":"Parliament's Truce","when":"hold","capability":"Soldiers of fortune","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y13","event":"Aspielles","when":"hold","capability":"Scourers","lords":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]},
+{"name":"Y14","event":"Richard of York","when":"this_levy","capability":"Burgundians","lords":[0,1]},
+{"name":"Y15","event":"London for York","when":"now","capability":"Naval Blockade","lords":[13]},
+{"name":"Y16","event":"The Commons","when":"this_levy","capability":"Beloved Warwick","lords":[13]},
+{"name":"Y17","event":"She-Wolf of France","when":"now","capability":"Alice Montagu","lords":[3]},
+{"name":"Y18","event":"Succession","when":"this_levy","capability":"Irishmen","lords":[0,4]},
+{"name":"Y19","event":"Caltrops","when":"hold","capability":"Welshmen","lords":[0,1]},
+{"name":"Y20","event":"Yorkist Parade","when":"hold","capability":"York's favoured Son","lords":[1,4]},
+{"name":"Y21","event":"Sir Richard Leigh","when":"now","capability":"Southerners","lords":[0,1,4]},
+{"name":"Y22","event":"Loyalty and Trust","when":"this_levy","capability":"fair Arbiter","lords":[3]},
+{"name":"Y23","event":"Charles the Bold","when":"now","capability":"Burgundians","lords":[2,9,10,11]},
+{"name":"Y24","event":"Sun in Splendour","when":"hold","capability":"Hastings","lords":[2]},
+{"name":"Y25","event":"Owain Glyndwr","when":"this_campaign","capability":"Pembroke","lords":[5]},
+{"name":"Y26","event":"Dubious Clarence","when":"now","capability":"Fallen Brother","lords":[9,10,11]},
+{"name":"Y27","event":"Yorkist North","when":"now","capability":"Percy's North","lords":[7,8]},
+{"name":"Y28","event":"Gloucester as heir","when":"this_levy","capability":"First Son","lords":[2]},
+{"name":"Y29","event":"Dorset","when":"this_campaign","capability":"Stafford Branch","lords":[6]},
+{"name":"Y30","event":"Regroup","when":"hold","capability":"Captain","lords":[5,6]},
+{"name":"Y31","event":"Earl Rivers","when":"now","capability":"Woodvilles","lords":[2,6,9,10,11]},
+{"name":"Y32","event":"The King's Name","when":"this_levy","capability":"Final Charge","lords":[11]},
+{"name":"Y33","event":"Edward V","when":"this_levy","capability":"Bloody thou art, bloody will be thy end","lords":[11]},
+{"name":"Y34","event":"An honest tale speeds best","when":"this_campaign","capability":"So wise, so young","lords":[9,10]},
+{"name":"Y35","event":"Privy Council","when":"this_levy","capability":"Kingdom United","lords":[9,10]},
+{"name":"Y36","event":"Swift Maneuver","when":"hold","capability":"Vanguard","lords":[12]},
+{"name":"Y37","event":"Patrick de la Mote","when":"hold","capability":"Percy's North","lords":[7,8]},
+{"name":"L1","event":"Leeward Battle Line","when":"hold","capability":"Culverins and falconets","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L2","event":"Flank Attack","when":"hold","capability":"Culverins and falconets","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L3","event":"Escape Ship","when":"hold","capability":"Muster’d my soldiers","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L4","event":"Be sent for","when":"this_levy","capability":"Heralds","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L5","event":"Suspicion","when":"hold","capability":"Church Blessing","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L6","event":"Seamanship","when":"this_campaign","capability":"Great Ships","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L7","event":"For trust not him","when":"hold","capability":"Harbingers","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L8","event":"Forced Marches","when":"this_campaign","capability":"Hay Wains","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L9","event":"Rising Wages","when":"this_levy","capability":"Quartermasters","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L10","event":"New Act of Parliament","when":"this_campaign","capability":"Chamberlains","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L11","event":"Blocked Ford","when":"hold","capability":"In the Name of the King","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L12","event":"Ravine","when":"hold","capability":"Commission of Array","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L13","event":"Aspielles","when":"hold","capability":"Expert Counsellors","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L14","event":"Scots","when":"now","capability":"Percy’s Power","lords":[21]},
+{"name":"L15","event":"Henry Pressures Parliament","when":"now","capability":"King’s Parley","lords":[14]},
+{"name":"L16","event":"Warden of the Marches","when":"hold","capability":"Northmen","lords":[21]},
+{"name":"L17","event":"My crown is in my heart","when":"this_levy","capability":"Margaret","lords":[14]},
+{"name":"L18","event":"Parliament Votes","when":"this_levy","capability":"Council Member","lords":[16,17,18,19,20]},
+{"name":"L19","event":"Henry’s Proclamation","when":"now","capability":"Andrew Trollope","lords":[16,17,18,19,20]},
+{"name":"L20","event":"Parliament Truce","when":"hold","capability":"Veteran of French Wars","lords":[16,17,18,19]},
+{"name":"L21","event":"French Fleet","when":"this_campaign","capability":"My Father’s Blood","lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
+{"name":"L22","event":"French Troops","when":"now","capability":"Stafford Estates","lords":[20]},
+{"name":"L23","event":"Warwick’s Propaganda","when":"now","capability":"Montagu","lords":[27]},
+{"name":"L24","event":"Warwick’s Propaganda","when":"now","capability":"Married to a Neville","lords":[22]},
+{"name":"L25","event":"Welsh Rebellion","when":"now","capability":"Welsh Lord","lords":[23,24]},
+{"name":"L26","event":"Henry Released","when":"now","capability":"Edward","lords":[15]},
+{"name":"L27","event":"L’Universelle Aragne","when":"now","capability":"Barded Horse","lords":[15,16,17,18,19]},
+{"name":"L28","event":"Rebel Supply Depot","when":"hold","capability":"Loyal Somerset","lords":[16,17]},
+{"name":"L29","event":"To wilful disobedience","when":"now","capability":"High Admiral","lords":[18,19]},
+{"name":"L30","event":"French War Loans","when":"now","capability":"Merchants","lords":[27]},
+{"name":"L31","event":"Robin’s Rebellion","when":"now","capability":"Yeomen of the Crown","lords":[15]},
+{"name":"L32","event":"Tudor Banners","when":"now","capability":"Two Roses","lords":[25]},
+{"name":"L33","event":"Surprise Landing","when":"hold","capability":"Philibert de Chandée","lords":[25,26]},
+{"name":"L34","event":"Buckingham’s Plot","when":"this_levy","capability":"Piquiers","lords":[25,26]},
+{"name":"L35","event":"Margaret Beaufort","when":"this_levy","capability":"Thomas Stanley","lords":[23,24,25]},
+{"name":"L36","event":"Talbot to the Rescue","when":"hold","capability":"Chevaliers","lords":[23,24,25,26]},
+{"name":"L37","event":"The Earl of Richmond","when":"this_levy","capability":"Madame La Grande","lords":[23,24,25,26]},
],
favour:[
{"name":"Bamburgh favour","box":{"x":637,"y":300,"w":60,"h":45}},
diff --git a/rules.js b/rules.js
index 04c6164..0c360f1 100644
--- a/rules.js
+++ b/rules.js
@@ -2542,22 +2542,18 @@ states.levy_arts_of_war_first = {
let c = game.what[0]
view.arts_of_war = game.what
view.what = c
- if (data.cards[c].this_lord) {
- let discard = true
- for (let lord of data.cards[c].lords) {
- if (is_lord_on_map(lord) && !lord_already_has_capability(lord, c)) {
- gen_action_lord(lord)
- discard = false
- }
- }
- if (discard) {
- view.prompt = `Arts of War: Discard ${data.cards[c].capability}.`
- view.actions.discard = 1
- } else {
- view.prompt = `Arts of War: Assign ${data.cards[c].capability} to a Lord.`
+ let discard = true
+ for (let lord of data.cards[c].lords) {
+ if (is_lord_on_map(lord) && !lord_already_has_capability(lord, c)) {
+ gen_action_lord(lord)
+ discard = false
}
+ }
+ if (discard) {
+ view.prompt = `Arts of War: Discard ${data.cards[c].capability}.`
+ view.actions.discard = 1
} else {
- throw "NO GLOBAL CAPABILITIES"
+ view.prompt = `Arts of War: Assign ${data.cards[c].capability} to a Lord.`
}
},
lord(lord) {
@@ -3007,10 +3003,8 @@ function can_muster_capability() {
let deck = list_deck()
for (let c of deck) {
if (!data.cards[c].lords || set_has(data.cards[c].lords, game.who)) {
- if (data.cards[c].this_lord) {
- if (!lord_already_has_capability(game.who, c))
- return true
- }
+ if (!lord_already_has_capability(game.who, c))
+ return true
}
}
return false
@@ -3024,18 +3018,14 @@ states.muster_capability = {
view.arts_of_war = deck
for (let c of deck) {
if (!data.cards[c].lords || set_has(data.cards[c].lords, game.who)) {
- if (data.cards[c].this_lord) {
- if (!lord_already_has_capability(game.who, c))
- gen_action_card(c)
- }
+ if (!lord_already_has_capability(game.who, c))
+ gen_action_card(c)
}
}
},
card(c) {
- if (data.cards[c].this_lord) {
- add_lord_capability(game.who, c)
- capability_muster_effects(game.who, c)
- }
+ add_lord_capability(game.who, c)
+ capability_muster_effects(game.who, c)
pop_state()
resume_levy_muster_lord()
},
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) {