diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-16 12:11:41 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-16 12:11:41 +0200 |
commit | 8cd55a28c0b37f872eaffc52ddde8df4fc3df710 (patch) | |
tree | bf79bc89aedd28971f9137c5179b9e17c814323e | |
parent | 8056e928cfe3553197ec9f50e5cd2398f68c1c12 (diff) | |
download | time-of-crisis-8cd55a28c0b37f872eaffc52ddde8df4fc3df710.tar.gz |
Fix game over.
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -27,13 +27,14 @@ exports.roles = function (scenario, options) { // === CONSTANTS === -const PLAYER_NAME = [ P1, P2, P3, P4 ] +const PLAYER_NAME = [ P1, P2, P3, P4, "None" ] const PLAYER_INDEX = { [P1]: 0, [P2]: 1, [P3]: 2, [P4]: 3, + "None": 4, "Observer": -1, } @@ -5299,7 +5300,7 @@ function goto_game_end() { function goto_game_over(result, victory) { game.state = "game_over" - game.active = "None" + game.current = 4 // None game.result = result game.victory = victory log_br() |