diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-20 21:08:42 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-20 21:08:42 +0200 |
commit | a6cf7dade898789699319cbf7f78a99d872b3529 (patch) | |
tree | e1bb27caf4c8ee916d3ac967c26d86ba4f782df0 /rules.ts | |
parent | cd4fd5f0dd625c78593d2d8573908493f8f8a0be (diff) | |
download | plantagenet-a6cf7dade898789699319cbf7f78a99d872b3529.tar.gz |
Fix start of game...
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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 } |