From 8cd55a28c0b37f872eaffc52ddde8df4fc3df710 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 16 Jul 2023 12:11:41 +0200 Subject: Fix game over. --- rules.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 2699664..77eebd4 100644 --- a/rules.js +++ b/rules.js @@ -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() -- cgit v1.2.3