From a6cf7dade898789699319cbf7f78a99d872b3529 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 20 Apr 2024 21:08:42 +0200 Subject: Fix start of game... --- rules.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index 85224ba..23d4e5f 100644 --- a/rules.ts +++ b/rules.ts @@ -2019,9 +2019,9 @@ function roll_influence_check(lord: Lord, bonus: number, add_cost: number = 0, a // === 2.0 SETUP === function goto_setup_lords() { + set_active(P1) + game.state = "setup_lords" // setup will be used in some scenarios - end_setup_lords() - end_setup_lords() } states.setup_lords = { @@ -2042,14 +2042,18 @@ states.setup_lords = { function end_setup_lords() { clear_lords_moved() set_active_enemy() - if (game.active === P1) { - log_h1("Levy " + current_turn_name()) - goto_levy_arts_of_war_first() - } + if (game.active === P1) + goto_start_game() } // === 3.1 LEVY: ARTS OF WAR (FIRST TURN) === +function goto_start_game() { + set_active(P1) + log_h1("Levy " + current_turn_name()) + goto_levy_arts_of_war_first() +} + function discard_card_capability(c: Card) { log(`${game.active} discarded C${c}.`) } @@ -8692,7 +8696,7 @@ exports.setup = function (seed, scenario, options) { update_aliases() - goto_setup_lords() + goto_start_game() return game } -- cgit v1.2.3