diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gendata.js | 60 |
1 files changed, 28 insertions, 32 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index a3850fe..13c5195 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -808,10 +808,6 @@ locales.forEach(loc => { loc.not_paths.sort(cmpnum) }) -function seats(list) { - return list.split(", ").filter(name => name !== "").map(name => locmap[name]).sort(cmpnum) -} - let lords = [ { @@ -819,7 +815,7 @@ let lords = [ name: "York", full_name: "Richard Plantagenet", title: "Duke of York", - seats: seats("Ely"), + seat: locmap["Ely"], marshal:2, influence:5, lordship:3, @@ -845,7 +841,7 @@ let lords = [ name:"March", full_name:"Edward Plantagenet", title:"Earl of March", - seats:seats("Ludlow"), + seat: locmap["Ludlow"], marshal:0, influence:2, lordship:2, @@ -870,7 +866,7 @@ let lords = [ name: "Edward IV", full_name: "Edward Plantagenet", title: "King of England", - seats: seats("London"), + seat: locmap["London"], marshal:2, influence:5, lordship:3, @@ -895,7 +891,7 @@ let lords = [ name: "Salisbury", full_name: "Richard Neville", title: "Earl of Salisbury", - seats: seats("York"), + seat: locmap["York"], marshal:0, influence:3, lordship:3, @@ -919,7 +915,7 @@ let lords = [ name: "Rutland", full_name: "Edmund Plantagenet", title: "Earl of Rutland", - seats: seats("Canterbury"), + seat: locmap["Canterbury"], marshal:0, influence:2, lordship:2, @@ -944,7 +940,7 @@ let lords = [ name: "Pembroke", full_name: "William Herbert", title: "Earl of Pembroke", - seats: seats("Pembroke"), + seat: locmap["Pembroke"], marshal:0, influence:2, lordship:2, @@ -968,7 +964,7 @@ let lords = [ name: "Devon", full_name: "Humpfrey Stafford", title: "Earl of Devon", - seats: seats("Exeter"), + seat: locmap["Exeter"], marshal:0, influence:4, lordship:2, @@ -993,7 +989,7 @@ let lords = [ name: "Northumberland Y1", full_name: "Henry Percy", title: "Northumberland", - seats: seats("Carlisle"), + seat: locmap["Carlisle"], marshal:0, influence:4, lordship:2, @@ -1018,7 +1014,7 @@ let lords = [ name: "Northumberland Y2", full_name: "Henry Percy", title: "Northumberland", - seats: seats("Carlisle"), + seat: locmap["Carlisle"], marshal:0, influence:4, lordship:2, @@ -1043,7 +1039,7 @@ let lords = [ name: "Gloucester 1", full_name: "Richard Plantagenet", title: "Duke of Gloucester", - seats: seats("Gloucester"), + seat: locmap["Gloucester"], marshal:1, influence:2, lordship:2, @@ -1067,7 +1063,7 @@ let lords = [ name: "Gloucester 2", full_name: "Richard Plantagenet", title: "Duke of Gloucester", - seats: seats("Gloucester"), + seat: locmap["Gloucester"], marshal:1, influence:5, lordship:3, @@ -1092,7 +1088,7 @@ let lords = [ name: "Richard III", full_name: "Richard Plantagenet", title: "King of England", - seats: seats("London"), + seat: locmap["London"], marshal:2, influence:5, lordship:3, @@ -1117,7 +1113,7 @@ let lords = [ name: "Norfolk", full_name: "John Howard", title: "Duke of Norfolk", - seats: seats("Arundel"), + seat: locmap["Arundel"], marshal:0, influence:3, lordship:3, @@ -1142,7 +1138,7 @@ let lords = [ name: "Warwick Y", full_name: "Richard Neville", title: "Earl of Warwick", - seats: seats("Calais"), + seat: locmap["Calais"], marshal:1, influence:5, lordship:3, @@ -1165,7 +1161,7 @@ let lords = [ name: "Henry VI", full_name: "Henry VI", title: "King of England", - seats: seats("London"), + seat: locmap["London"], marshal:2, influence:5, lordship:2, @@ -1190,7 +1186,7 @@ let lords = [ name: "Margaret", full_name: "Margaret d'Anjou", title: "Queen of England", - seats: seats("London"), + seat: locmap["London"], marshal:2, influence:4, lordship:2, @@ -1214,7 +1210,7 @@ let lords = [ name: "Somerset 1", full_name: "Henry Beaufort", title: "Duke of Somerset", - seats: seats("Wells"), + seat: locmap["Wells"], marshal:2, influence:5, lordship:2, @@ -1238,7 +1234,7 @@ let lords = [ name: "Somerset 2", full_name: "Edmund Beaufort", title: "Duke of Somerset", - seats: seats("Wells"), + seat: locmap["Wells"], marshal:0, influence:3, lordship:2, @@ -1262,7 +1258,7 @@ let lords = [ name: "Exeter 1", full_name: "Henry Holland", title: "Duke of Exeter", - seats: seats("Exeter"), + seat: locmap["Exeter"], marshal:0, influence:2, lordship:1, @@ -1286,7 +1282,7 @@ let lords = [ name: "Exeter 2", full_name: "Henry Holland", title: "Duke of Exeter", - seats: seats("Exeter"), + seat: locmap["Exeter"], marshal:0, influence:2, lordship:1, @@ -1310,7 +1306,7 @@ let lords = [ name: "Buckingham", full_name: "Humphrey Stafford", title: "Duke of Buckingham", - seats: seats("Coventry"), + seat: locmap["Coventry"], marshal:0, influence:3, lordship:3, @@ -1334,7 +1330,7 @@ let lords = [ name: "Northumberland L", full_name: "Henry Percy", title: "Earl of Northumberland", - seats: seats("Carlisle"), + seat: locmap["Carlisle"], marshal:0, influence:4, lordship:2, @@ -1359,7 +1355,7 @@ let lords = [ name: "Clarence", full_name: "George Plantagenet", title: "Duke of Clarence", - seats: seats("York"), + seat: locmap["York"], marshal:0, influence:1, lordship:2, @@ -1384,7 +1380,7 @@ let lords = [ name: "Jasper Tudor 1", full_name: "Jasper Tudor", title: "Earl of Pembroke", - seats: seats("Harlech"), + seat: locmap["Harlech"], marshal:0, influence:2, lordship:2, @@ -1408,7 +1404,7 @@ let lords = [ name: "Jasper Tudor 2", full_name: "Jasper Tudor", title: "Earl of Pembroke", - seats: seats("Pembroke"), + seat: locmap["Pembroke"], marshal:0, influence:2, lordship:3, @@ -1431,7 +1427,7 @@ let lords = [ name: "Henry Tudor", full_name: "Henry Tudor", title: "", - seats: seats("London"), + seat: locmap["London"], marshal:2, influence:5, lordship:2, @@ -1456,7 +1452,7 @@ let lords = [ name: "Oxford", full_name: "John de Vere", title: "Earl of Oxford", - seats: seats("Oxford"), + seat: locmap["Oxford"], marshal:0, influence:2, lordship:2, @@ -1481,7 +1477,7 @@ let lords = [ name: "Warwick L", full_name: "Richard Neville", title: "Earl of Warwick", - seats: seats("Calais"), + seat: locmap["Calais"], marshal:1, influence:5, lordship:3, |