diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-13 17:04:09 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 1b00669d128090cc5c12f9a4223a19498fa746c3 (patch) | |
tree | feb34abe4dd228fa17bbde6afa0abfdb2972fe1a /tools | |
parent | a99e356ecc08b0718b7870a348b7c57ac16098b1 (diff) | |
download | table-battles-1b00669d128090cc5c12f9a4223a19498fa746c3.tar.gz |
reserve special rule terminology
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gendata.js | 4 | ||||
-rw-r--r-- | tools/scenarios.csv | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index 36b42cf..c4f6efb 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -188,7 +188,7 @@ for (let c of card_records) { else if (c.reserve === "PURSUIT") card.pursuit = 1 else if (c.reserve === "Commanded" || c.reserve === "See Above" || c.reserve === "Special Rule") - card.reserve = [] + card.reserve = c.reserve else card.reserve = c.reserve.split(" or ") @@ -302,7 +302,7 @@ function process_card(c) { throw new Error("PURSUIT with more than one target!") c.pursuit = c.actions[0].target_list[0] } - if (c.reserve) + if (Array.isArray(c.reserve)) c.reserve = c.reserve.map(name => find_card(c.scenario, name)) } diff --git a/tools/scenarios.csv b/tools/scenarios.csv index 08db426..9a17baa 100644 --- a/tools/scenarios.csv +++ b/tools/scenarios.csv @@ -35,7 +35,7 @@ status,expansion,number,name,date,player1,cards1,morale1,tactical1,player2,cards 1,Gettysburg,28,Culp's Hill,2 July 1863,Union,155B-161B,1,,Confederate,162B-165B,3,,,,"Impressive defensive works constructed on the initiative of Brig. Gen. Goerge Greene (a civil engineer) allowedh a desperately thin blue line of around two thousand men to beat back nearly five thousand rebs. (Before playing, be sure to read the ""Geary"" card and keep its effects in mind.)"
1,Gettysburg,29,2nd Day of Gettysburg,2 July 1863,Union,166B-172B,2,,Confederate,173B-177B,2,,,,"The Confederates attacked the Union line <i>en echelon</i> in a series of bloody assaults. Meade shuffled men from one part of the ""fish hook"" to the next, pushing back and plugging holes in his line. At the end of the day, the line held."
,,,,,,,,,,,,,,,
-reserve_and,English Civil War,30,Edgehill,23 October 1642,Royalists,178A-185A,2,18,Parliamentarians,186A-193A,3,,,,"Initial success on the wings and a stubborn infantry contest had all the makings of a decisive Royalist victory. But the cavalier cavalry pursued the main roundhead horse, and the unsupported infantry was scattered by Parliamentarian reservee cavalry."
+1,English Civil War,30,Edgehill,23 October 1642,Royalists,178A-185A,2,18,Parliamentarians,186A-193A,3,,,,"Initial success on the wings and a stubborn infantry contest had all the makings of a decisive Royalist victory. But the cavalier cavalry pursued the main roundhead horse, and the unsupported infantry was scattered by Parliamentarian reservee cavalry."
s34/byron/etc,English Civil War,31,1st Newbury,20 September 1643,Parliamentarians,194A-199A,2,,Royalists,200A-206A,1,,,,"A surprise attack grabbed key terrain and threatened the Royalist flanks. Recovering from the chaos, a counterattack broke the roundhead center, splitting Essex's army. An attempt to envelop the two halves was thwarted by the London Trained Bands."
all_extra,English Civil War,32,2nd Newbury,27 October 1644,Parliamentarians,207A-211A,1,16,Royalists,212A-216A,2,16,,,"Attacked from opposite directions and outnumbered more than two to one, the King appeared to be doomed. But the enemy just couldn't coordinate; stubborn Royalist resistance denied Essex anything more than a tactical victory."
1,English Civil War,33,Naseby,14 June 1645,Royalists,173B-183B,2,20,Parliamentarians,184B-190B,2,,,,"The New Model Army at last achieved decisive victory at Naseby, leaving Charles without a field army. It was also a political victory, as they captured (and published) letters in which the King plotted with foreign troops against his subjects."
|