diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-22 22:46:47 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | b81b5afac811905146ba775c744b5154400cff74 (patch) | |
tree | ba437c7d65574595cf8bd4961e2a3c93af9c072a /rules.js | |
parent | 4ee072b305f2d2a23882f40df8b853be501643d9 (diff) | |
download | andean-abyss-b81b5afac811905146ba775c744b5154400cff74.tar.gz |
Victory check for solo mode.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5640,7 +5640,7 @@ function calc_victory(is_final) { log("AUC " + a) log("Cartels " + c) - if (game.scenario === 4) { + if (game.scenario === 4 || game.scenario === 1) { if (is_final || g > 0 || f > 0 || a > 0 || c > 0) { if (c >= g && c >= f && c >= a) return NAME_CARTELS @@ -5680,14 +5680,14 @@ function goto_victory_phase() { log_h2("Victory Phase") let result = calc_victory(false) if (result) - goto_game_end(result) + goto_game_over(result) else goto_sabotage_phase() } function goto_final_victory() { log_h2("Final Victory") - goto_game_end(calc_victory(true)) + goto_game_over(calc_victory(true)) } // PROPAGANDA: SABOTAGE @@ -7567,8 +7567,8 @@ states.vm_free_attack_terror = { // === GAME END === -function goto_game_end(result) { - game.state = "game_end" +function goto_game_over(result) { + game.state = "game_over" game.current = -1 game.active = "None" game.result = result |