summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.js196
-rw-r--r--rules.js18
2 files changed, 111 insertions, 103 deletions
diff --git a/data.js b/data.js
index 9d152fb..822a8d8 100644
--- a/data.js
+++ b/data.js
@@ -142,131 +142,131 @@ ways:[
{"type":"road","locales":[49,57]},
],
lords:[
-{"side":"York","name":"York","full_name":"Richard Plantagenet","title":"Duke of York","seats":[38],"marshal":2,"influence":5,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":0},
-{"side":"York","name":"March","full_name":"Edward Plantagenet","title":"Earl of March","seats":[9],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":3,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":1},
-{"side":"York","name":"Edward IV","full_name":"Edward Plantagenet","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":3,"command":2,"valour":4,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":2},
-{"side":"York","name":"Salisbury","full_name":"Richard Neville","title":"Earl of Salisbury","seats":[50],"marshal":0,"influence":3,"lordship":3,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":3},
-{"side":"York","name":"Rutland","full_name":"Edmund Plantagenet","title":"Earl of Rutland","seats":[18],"marshal":0,"influence":2,"lordship":2,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":4},
-{"side":"York","name":"Pembroke","full_name":"William Herbert","title":"Earl of Pembroke","seats":[6],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":3,"militia":2},"assets":{"cart":1,"prov":1,"coin":2},"ships":0,"image":5},
-{"side":"York","name":"Devon","full_name":"Humpfrey Stafford","title":"Earl of Devon","seats":[21],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":6},
-{"side":"York","name":"Northumberland Y1","full_name":"Henry Percy","title":"Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":7},
-{"side":"York","name":"Northumberland Y2","full_name":"Henry Percy","title":"Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":7},
-{"side":"York","name":"Gloucester 1","full_name":"Richard Plantagenet","title":"Duke of Gloucester","seats":[27],"marshal":1,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":8},
-{"side":"York","name":"Gloucester 2","full_name":"Richard Plantagenet","title":"Duke of Gloucester","seats":[27],"marshal":1,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0,"image":8},
-{"side":"York","name":"Richard III","full_name":"Richard Plantagenet","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":3,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0,"image":9},
-{"side":"York","name":"Norfolk","full_name":"John Howard","title":"Duke of Norfolk","seats":[14],"marshal":0,"influence":3,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":10},
-{"side":"York","name":"Warwick Y","full_name":"Richard Neville","title":"Earl of Warwick","seats":[51],"marshal":1,"influence":5,"lordship":3,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"prov":2,"coin":2},"ships":2,"image":11},
-{"side":"Lancaster","name":"Henry VI","full_name":"Henry VI","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":2,"command":2,"valour":0,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0,"image":0},
-{"side":"Lancaster","name":"Margaret","full_name":"Margaret d'Anjou","title":"Queen of England","seats":[30],"marshal":2,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":2,"image":1},
-{"side":"Lancaster","name":"Somerset 1","full_name":"Henry Beaufort","title":"Duke of Somerset","seats":[25],"marshal":2,"influence":6,"lordship":2,"command":2,"valour":3,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":2,"prov":2,"coin":1},"ships":0,"image":2},
-{"side":"Lancaster","name":"Somerset 2","full_name":"Edmund Beaufort","title":"Duke of Somerset","seats":[25],"marshal":0,"influence":3,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":2},
-{"side":"Lancaster","name":"Exeter 1","full_name":"Henry Holland","title":"Duke of Exeter","seats":[21],"marshal":0,"influence":2,"lordship":1,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0,"image":3},
-{"side":"Lancaster","name":"Exeter 2","full_name":"Henry Holland","title":"Duke of Exeter","seats":[21],"marshal":0,"influence":2,"lordship":1,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":3},
-{"side":"Lancaster","name":"Buckingham","full_name":"Humphrey Stafford","title":"Duke of Buckingham","seats":[41],"marshal":0,"influence":3,"lordship":3,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":4},
-{"side":"Lancaster","name":"Northumberland L","full_name":"Henry Percy","title":"Earl of Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":1},"ships":0,"image":5},
-{"side":"Lancaster","name":"Clarence","full_name":"George Plantagenet","title":"Duke of Clarence","seats":[50],"marshal":0,"influence":1,"lordship":2,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":1,"prov":2,"coin":2},"ships":0,"image":6},
-{"side":"Lancaster","name":"Jasper Tudor 1","full_name":"Jasper Tudor","title":"Earl of Pembroke","seats":[5],"marshal":0,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":3,"militia":1},"assets":{"cart":1,"prov":2,"coin":2},"ships":0,"image":7},
-{"side":"Lancaster","name":"Jasper Tudor 2","full_name":"Jasper Tudor","title":"Earl of Pembroke","seats":[6],"marshal":0,"influence":2,"lordship":3,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":7},
-{"side":"Lancaster","name":"Henry Tudor","full_name":"Henry Tudor","title":"","seats":[30],"marshal":2,"influence":5,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":4},"ships":2,"image":8},
-{"side":"Lancaster","name":"Oxford","full_name":"John de Vere","title":"Earl of Oxford","seats":[28],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0,"image":9},
-{"side":"Lancaster","name":"Warwick L","full_name":"Richard Neville","title":"Earl of Warwick","seats":[51],"marshal":1,"influence":5,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":2,"image":10},
+{"side":"York","name":"York","full_name":"Richard Plantagenet","title":"Duke of York","seats":[38],"marshal":2,"influence":5,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"York","name":"March","full_name":"Edward Plantagenet","title":"Earl of March","seats":[9],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":3,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"York","name":"Edward IV","full_name":"Edward Plantagenet","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":3,"command":2,"valour":4,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"York","name":"Salisbury","full_name":"Richard Neville","title":"Earl of Salisbury","seats":[50],"marshal":0,"influence":3,"lordship":3,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"York","name":"Rutland","full_name":"Edmund Plantagenet","title":"Earl of Rutland","seats":[18],"marshal":0,"influence":2,"lordship":2,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"York","name":"Pembroke","full_name":"William Herbert","title":"Earl of Pembroke","seats":[6],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":3,"militia":2},"assets":{"cart":1,"prov":1,"coin":2},"ships":0},
+{"side":"York","name":"Devon","full_name":"Humpfrey Stafford","title":"Earl of Devon","seats":[21],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"York","name":"Northumberland Y1","full_name":"Henry Percy","title":"Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"York","name":"Northumberland Y2","full_name":"Henry Percy","title":"Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"York","name":"Gloucester 1","full_name":"Richard Plantagenet","title":"Duke of Gloucester","seats":[27],"marshal":1,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"York","name":"Gloucester 2","full_name":"Richard Plantagenet","title":"Duke of Gloucester","seats":[27],"marshal":1,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0},
+{"side":"York","name":"Richard III","full_name":"Richard Plantagenet","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":3,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0},
+{"side":"York","name":"Norfolk","full_name":"John Howard","title":"Duke of Norfolk","seats":[14],"marshal":0,"influence":3,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"York","name":"Warwick Y","full_name":"Richard Neville","title":"Earl of Warwick","seats":[51],"marshal":1,"influence":5,"lordship":3,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"prov":2,"coin":2},"ships":2},
+{"side":"Lancaster","name":"Henry VI","full_name":"Henry VI","title":"King of England","seats":[30],"marshal":2,"influence":5,"lordship":2,"command":2,"valour":0,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":4},"assets":{"cart":2,"prov":2,"coin":4},"ships":0},
+{"side":"Lancaster","name":"Margaret","full_name":"Margaret d'Anjou","title":"Queen of England","seats":[30],"marshal":2,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":2},
+{"side":"Lancaster","name":"Somerset 1","full_name":"Henry Beaufort","title":"Duke of Somerset","seats":[25],"marshal":2,"influence":6,"lordship":2,"command":2,"valour":3,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":2,"prov":2,"coin":1},"ships":0},
+{"side":"Lancaster","name":"Somerset 2","full_name":"Edmund Beaufort","title":"Duke of Somerset","seats":[25],"marshal":0,"influence":3,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Exeter 1","full_name":"Henry Holland","title":"Duke of Exeter","seats":[21],"marshal":0,"influence":2,"lordship":1,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2},"assets":{"cart":1,"prov":1,"coin":1},"ships":0},
+{"side":"Lancaster","name":"Exeter 2","full_name":"Henry Holland","title":"Duke of Exeter","seats":[21],"marshal":0,"influence":2,"lordship":1,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Buckingham","full_name":"Humphrey Stafford","title":"Duke of Buckingham","seats":[41],"marshal":0,"influence":3,"lordship":3,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":1,"longbowmen":2,"militia":1},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Northumberland L","full_name":"Henry Percy","title":"Earl of Northumberland","seats":[4],"marshal":0,"influence":4,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":1},"ships":0},
+{"side":"Lancaster","name":"Clarence","full_name":"George Plantagenet","title":"Duke of Clarence","seats":[50],"marshal":0,"influence":1,"lordship":2,"command":1,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":1,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Jasper Tudor 1","full_name":"Jasper Tudor","title":"Earl of Pembroke","seats":[5],"marshal":0,"influence":2,"lordship":2,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":3,"militia":1},"assets":{"cart":1,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Jasper Tudor 2","full_name":"Jasper Tudor","title":"Earl of Pembroke","seats":[6],"marshal":0,"influence":2,"lordship":3,"command":3,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Henry Tudor","full_name":"Henry Tudor","title":"","seats":[30],"marshal":2,"influence":5,"lordship":2,"command":2,"valour":1,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":4},"ships":2},
+{"side":"Lancaster","name":"Oxford","full_name":"John de Vere","title":"Earl of Oxford","seats":[28],"marshal":0,"influence":2,"lordship":2,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":2,"longbowmen":2,"militia":2},"assets":{"cart":2,"prov":2,"coin":2},"ships":0},
+{"side":"Lancaster","name":"Warwick L","full_name":"Richard Neville","title":"Earl of Warwick","seats":[51],"marshal":1,"influence":5,"lordship":3,"command":2,"valour":2,"forces":{"retinue":1,"men_at_arms":3,"longbowmen":3},"assets":{"cart":2,"prov":2,"coin":2},"ships":2},
],
vassals:[
-{"service":1,"name":"Norfolk","seat":"Arundel","influence":0,"image":-1},
-{"service":1,"name":"Stanley","seat":"Derby","influence":0,"image":-1},
-{"service":3,"name":"Fauconberg","seat":"Dover","influence":2,"image":-1},
-{"service":2,"name":"Devon","seat":"Exeter","influence":-1,"image":-1},
-{"service":3,"name":"Suffolk","seat":"Ipswich","influence":1,"image":-1},
-{"service":1,"name":"Bonville","seat":"Launceston","influence":1,"image":-1},
-{"service":1,"name":"Dudley","seat":"Leicester","influence":0,"image":-1},
-{"service":1,"name":"Beaumont","seat":"Arundel","influence":-2,"image":-1},
-{"service":2,"name":"Oxford","seat":"Oxford","influence":0,"image":-1},
-{"service":2,"name":"Shrewsbury","seat":"Shrewsbury","influence":-1,"image":-1},
-{"service":1,"name":"Essex","seat":"St Albans","influence":0,"image":-1},
-{"service":3,"name":"Westmoreland","seat":"Appleby","influence":0,"image":-1},
-{"service":3,"name":"Worcester","seat":"Worcester","influence":0,"image":-1},
-{"service":0,"name":"Trollope","seat":"none","influence":0,"capability":"Andrew Trollope","image":-1},
-{"service":0,"name":"Clifford","seat":"none","influence":0,"capability":"My father's blood","image":-1},
-{"service":0,"name":"Edward","seat":"none","influence":0,"capability":"Edward","image":-1},
-{"service":0,"name":"Thomas Stanley","seat":"none","influence":0,"capability":"Thomas Stanley","image":-1},
-{"service":0,"name":"Montagu","seat":"none","influence":0,"capability":"Alice Montagu","image":-1},
-{"service":0,"name":"Hastings","seat":"none","influence":0,"capability":"Hastings","image":-1},
+{"service":1,"name":"Norfolk","seat":"Arundel","influence":0},
+{"service":1,"name":"Stanley","seat":"Derby","influence":0},
+{"service":3,"name":"Fauconberg","seat":"Dover","influence":2},
+{"service":2,"name":"Devon","seat":"Exeter","influence":-1},
+{"service":3,"name":"Suffolk","seat":"Ipswich","influence":1},
+{"service":1,"name":"Bonville","seat":"Launceston","influence":1},
+{"service":1,"name":"Dudley","seat":"Leicester","influence":0},
+{"service":1,"name":"Beaumont","seat":"Arundel","influence":-2},
+{"service":2,"name":"Oxford","seat":"Oxford","influence":0},
+{"service":2,"name":"Shrewsbury","seat":"Shrewsbury","influence":-1},
+{"service":1,"name":"Essex","seat":"St Albans","influence":0},
+{"service":3,"name":"Westmoreland","seat":"Appleby","influence":0},
+{"service":3,"name":"Worcester","seat":"Worcester","influence":0},
+{"service":0,"name":"Trollope","seat":"none","influence":0,"capability":"Andrew Trollope"},
+{"service":0,"name":"Clifford","seat":"none","influence":0,"capability":"My father's blood"},
+{"service":0,"name":"Edward","seat":"none","influence":0,"capability":"Edward"},
+{"service":0,"name":"Thomas Stanley","seat":"none","influence":0,"capability":"Thomas Stanley"},
+{"service":0,"name":"Montagu","seat":"none","influence":0,"capability":"Alice Montagu"},
+{"service":0,"name":"Hastings","seat":"none","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,7,9,9,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,7,9,9,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,7,9,9,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,7,9,9,11,12,13]},
-{"name":"Y5","event":"Suspicion","when":"hold","capability":"Thomas Bourchier","this_lord":true,"lords":[0,1,2,3,4,5,6,7,7,9,9,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,7,9,9,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,7,9,9,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,7,9,9,11,12,13]},
-{"name":"Y9","event":"Escape Ship","when":"hold","capability":"Barricades","this_lord":true,"lords":[0,1,2,3,4,5,6,7,7,9,9,11,12,13]},
-{"name":"Y10","event":"Tax Collectors","when":"now","capability":"Agitators","this_lord":true,"lords":[0,1,2,3,4,5,6,7,7,9,9,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,7,9,9,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,7,9,9,11,12,13]},
-{"name":"Y13","event":"Aspielles","when":"hold","capability":"Scourers","this_lord":true,"lords":[0,1,2,3,4,5,6,7,7,9,9,11,12,13]},
+{"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":"Y15","event":"London for York","when":"now","capability":"Naval Blockade","this_lord":true,"lords":[-1]},
+{"name":"Y16","event":"The Commons","when":"this_levy","capability":"Beloved Warwick","this_lord":true,"lords":[-1]},
{"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,11]},
+{"name":"Y23","event":"Charles the Bold","when":"now","capability":"Burgundians","this_lord":true,"lords":[-1,2,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,11]},
-{"name":"Y27","event":"Yorkist North","when":"now","capability":"Percy's North","this_lord":true,"lords":[7]},
+{"name":"Y26","event":"Dubious Clarence","when":"now","capability":"Fallen Brother","this_lord":true,"lords":[-1,11]},
+{"name":"Y27","event":"Yorkist North","when":"now","capability":"Percy's North","this_lord":true,"lords":[-1]},
{"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,11]},
+{"name":"Y31","event":"Earl Rivers","when":"now","capability":"Woodvilles","this_lord":true,"lords":[-1,2,6,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]},
-{"name":"Y35","event":"Privy Council","when":"this_levy","capability":"Kingdom United","this_lord":true,"lords":[9]},
+{"name":"Y34","event":"An honest tale speeds best","when":"this_campaign","capability":"So wise, so young","this_lord":true,"lords":[-1]},
+{"name":"Y35","event":"Privy Council","when":"this_levy","capability":"Kingdom United","this_lord":true,"lords":[-1]},
{"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]},
-{"name":"L1","event":"Leeward Battle Line","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L2","event":"Flank Attack","when":"hold","capability":"Culverins and falconets","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L3","event":"Escape Ship","when":"hold","capability":"Muster’d my soldiers","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L4","event":"Be sent for","when":"this_levy","capability":"Heralds","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L5","event":"Suspicion","when":"hold","capability":"Church Blessing","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L6","event":"Seamanship","when":"this_campaign","capability":"Great Ships","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L7","event":"For trust not him","when":"hold","capability":"Harbingers","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L8","event":"Forced Marches","when":"this_campaign","capability":"Hay Wains","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L9","event":"Rising Wages","when":"this_levy","capability":"Quartermasters","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L10","event":"New Act of Parliament","when":"this_campaign","capability":"Chamberlains","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L11","event":"Blocked Ford","when":"hold","capability":"In the Name of the King","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L12","event":"Ravine","when":"hold","capability":"Commission of Array","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L13","event":"Aspielles","when":"hold","capability":"Expert Counsellors","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
-{"name":"L14","event":"Scots","when":"now","capability":"Percy’s Power","this_lord":true,"lords":[7]},
+{"name":"Y37","event":"Patrick de la Mote","when":"hold","capability":"Percy's North","this_lord":true,"lords":[-1]},
+{"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":[-1]},
{"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":[7]},
+{"name":"L16","event":"Warden of the Marches","when":"hold","capability":"Northmen","this_lord":true,"lords":[-1]},
{"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,18,20]},
-{"name":"L19","event":"Henry’s Proclamation","when":"now","capability":"Andrew Trollope","this_lord":true,"lords":[16,18,20]},
-{"name":"L20","event":"Parliament Truce","when":"hold","capability":"Veteran of French Wars","this_lord":true,"lords":[16,18]},
-{"name":"L21","event":"French Fleet","when":"this_campaign","capability":"My Father’s Blood","this_lord":true,"lords":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
+{"name":"L18","event":"Parliament Votes","when":"this_levy","capability":"Council Member","this_lord":true,"lords":[-1,-1,20]},
+{"name":"L19","event":"Henry’s Proclamation","when":"now","capability":"Andrew Trollope","this_lord":true,"lords":[-1,-1,20]},
+{"name":"L20","event":"Parliament Truce","when":"hold","capability":"Veteran of French Wars","this_lord":true,"lords":[-1,-1]},
+{"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":[13]},
+{"name":"L23","event":"Warwick’s Propaganda","when":"now","capability":"Montagu","this_lord":true,"lords":[-1]},
{"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]},
+{"name":"L25","event":"Welsh Rebellion","when":"now","capability":"Welsh Lord","this_lord":true,"lords":[-1]},
{"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,18]},
-{"name":"L28","event":"Rebel Supply Depot","when":"hold","capability":"Loyal Somerset","this_lord":true,"lords":[16]},
-{"name":"L29","event":"To wilful disobedience","when":"now","capability":"High Admiral","this_lord":true,"lords":[18]},
-{"name":"L30","event":"French War Loans","when":"now","capability":"Merchants","this_lord":true,"lords":[13]},
+{"name":"L27","event":"L’Universelle Aragne","when":"now","capability":"Barded Horse","this_lord":true,"lords":[-1,-1,15]},
+{"name":"L28","event":"Rebel Supply Depot","when":"hold","capability":"Loyal Somerset","this_lord":true,"lords":[-1]},
+{"name":"L29","event":"To wilful disobedience","when":"now","capability":"High Admiral","this_lord":true,"lords":[-1]},
+{"name":"L30","event":"French War Loans","when":"now","capability":"Merchants","this_lord":true,"lords":[-1]},
{"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":[7,13,14,15,16,16,18,18,20,22,23,23,25,26]},
+{"name":"L32","event":"Tudor Banners","when":"now","capability":"Two Roses","this_lord":true,"lords":[14,15,16,17,18,19,20,21,22,23,24,25,26,27]},
{"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,25]},
-{"name":"L36","event":"Talbot to the Rescue","when":"hold","capability":"Chevaliers","this_lord":true,"lords":[23,25,26]},
-{"name":"L37","event":"The Earl of Richmond","when":"this_levy","capability":"Madame La Grande","this_lord":true,"lords":[23,25,26]},
+{"name":"L35","event":"Margaret Beaufort","when":"this_levy","capability":"Thomas Stanley","this_lord":true,"lords":[-1,25]},
+{"name":"L36","event":"Talbot to the Rescue","when":"hold","capability":"Chevaliers","this_lord":true,"lords":[-1,25,26]},
+{"name":"L37","event":"The Earl of Richmond","when":"this_levy","capability":"Madame La Grande","this_lord":true,"lords":[-1,25,26]},
],
}
if (typeof module !== 'undefined') module.exports = data
diff --git a/rules.js b/rules.js
index 9ab39a0..b220314 100644
--- a/rules.js
+++ b/rules.js
@@ -108,13 +108,22 @@ const ARRAY_FLANKS = [
function find_card(name) {
- return data.cards.findIndex((x) => x.name === name)
+ let ix = data.cards.findIndex((x) => x.name === name)
+ if (ix < 0)
+ throw "CANNOT FIND LORD: " + name
+ return ix
}
function find_lord(name) {
- return data.lords.findIndex((x) => x.name === name)
+ let ix = data.lords.findIndex((x) => x.name === name)
+ if (ix < 0)
+ throw "CANNOT FIND LORD: " + name
+ return ix
}
function find_locale(name) {
- return data.locales.findIndex((x) => x.name === name)
+ let ix = data.locales.findIndex((x) => x.name === name)
+ if (ix < 0)
+ throw "CANNOT FIND LORD: " + name
+ return ix
}
const lord_name = data.lords.map((lord) => lord.name)
@@ -303,7 +312,7 @@ const LOC_COVENTRY = find_locale("Coventry")
const LOC_LEICESTER = find_locale("Leicester")
const LOC_LICHFIELD = find_locale("Lichfield")
const LOC_DERBY = find_locale("Derby")
-const LOC_NOTTINGHAM = find_locale("Notthingham")
+const LOC_NOTTINGHAM = find_locale("Nottingham")
const LOC_WORCESTER = find_locale("Worcester")
const LOC_CHESTER = find_locale("Chester")
const LOC_LANCASTER = find_locale("Lancaster")
@@ -1478,7 +1487,6 @@ function setup_II() {
set_lord_cylinder_on_calendar(LORD_SOMERSET_2, 9)
set_lord_cylinder_on_calendar(LORD_OXFORD, 9)
set_lord_cylinder_on_calendar(LORD_EXETER_2, 9)
-
}