diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-13 15:44:05 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 1cd7325e04e9ffd445efe2e455ca7d18142eb964 (patch) | |
tree | 9fb3f2984e24b9badd3cde06ba15f590829f3d43 /rules.js | |
parent | f6855ea8426dc634844243ee46cf694dc8acf5c5 (diff) | |
download | table-battles-1cd7325e04e9ffd445efe2e455ca7d18142eb964.tar.gz |
prefix special scenario rule states
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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() |