From 1cd7325e04e9ffd445efe2e455ca7d18142eb964 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Dec 2023 15:44:05 +0100 Subject: prefix special scenario rule states --- rules.js | 12 ++++++------ tools/scenarios.csv | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rules.js b/rules.js index e328660..8a4ec9b 100644 --- a/rules.js +++ b/rules.js @@ -1251,7 +1251,7 @@ function end_roll_phase() { if (game.scenario === S26_PEACH_ORCHARD) { if (is_card_in_play(S26_FATAL_BLUNDER)) { if (!placed_any_dice_on_wing(PINK)) { - game.state = "fatal_blunder" + game.state = "s26_fatal_blunder" return } } @@ -1265,7 +1265,7 @@ function end_roll_phase() { end_turn() } -states.fatal_blunder = { +states.s26_fatal_blunder = { prompt() { view.prompt = "Fatal Blunder!" if (is_card_in_play(S26_FATAL_BLUNDER)) { @@ -1512,7 +1512,7 @@ function goto_start_turn() { if (player_index() === 1) { if (is_card_in_play(S25_STONY_HILL)) { if (count_cards_in_play_from_wing(BLUE) === 1) { - game.state = "stony_hill" + game.state = "s25_stony_hill" return } } @@ -1522,7 +1522,7 @@ function goto_start_turn() { goto_action_phase() } -states.stony_hill = { +states.s25_stony_hill = { prompt() { view.prompt = "Rout Stony Hill!" gen_action_card(S25_STONY_HILL) @@ -2180,7 +2180,7 @@ function goto_absorb(c, a) { if (game.scenario === S29_GETTYS_2ND) { if (c === S29_MEADE) { - game.state = "meade" + game.state = "s29_meade" return } } @@ -2210,7 +2210,7 @@ function goto_absorb(c, a) { game.state = "absorb" } -states.meade = { +states.s29_meade = { prompt() { view.prompt = "Choosy any friendly Formation except Little Round Top to absorb the hits instead." let p = player_index() diff --git a/tools/scenarios.csv b/tools/scenarios.csv index 3cb04f4..08db426 100644 --- a/tools/scenarios.csv +++ b/tools/scenarios.csv @@ -33,7 +33,7 @@ status,expansion,number,name,date,player1,cards1,morale1,tactical1,player2,cards 1,Gettysburg,26,The Peach Orchard,2 July 1863,Confederate,168A-177A,4,,Union,136B-143B,2,,,,"Sickle's line formed a salient at the Peach Orchard, which collapsed under pressure from the Confederates. Sickles himself was hit in the leg by a cannonball. To counter rumors that he had died, he sat up on his stretcher and puffed at a cigar to show that he was still breathing." 1,Gettysburg,27,Cemetery Ridge,2 July 1863,Confederate,144B-147B,1,,Union,148B-154B,3,,,,"Anderson's attack on the Union center came close to breaking it, opening a gap in the line. The line – perhaps even the Union – was saved byt he 262 men of the First Minnesota Volunteer Infantry Regiment, which charged a brigade over five times its size, suffering 215 casualties." 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.)" -"meade,etc",Gettysburg,29,2nd Day of Gettysburg,2 July 1863,Union,166B-172B,2,,Confederate,173B-177B,2,,,,"The Confederates attacked the Union line en echelon 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." +1,Gettysburg,29,2nd Day of Gettysburg,2 July 1863,Union,166B-172B,2,,Confederate,173B-177B,2,,,,"The Confederates attacked the Union line en echelon 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." 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." -- cgit v1.2.3