summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-16 12:11:41 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-16 12:11:41 +0200
commit8cd55a28c0b37f872eaffc52ddde8df4fc3df710 (patch)
treebf79bc89aedd28971f9137c5179b9e17c814323e
parent8056e928cfe3553197ec9f50e5cd2398f68c1c12 (diff)
downloadtime-of-crisis-8cd55a28c0b37f872eaffc52ddde8df4fc3df710.tar.gz
Fix game over.
-rw-r--r--rules.js5
1 files 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()