From 3bba00b794e9956a4f4ca5b851774af5a6506013 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:38:02 +0100 Subject: Automatic resign menu. --- rules.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index f6ced70..4514a4d 100644 --- a/rules.js +++ b/rules.js @@ -8117,8 +8117,9 @@ function goto_game_over(result) { game.current = -1 game.active = "None" game.result = result + game.victory = game.result + " won!" log_br() - log(game.result + " won!") + log(game.victory) return true } @@ -8212,7 +8213,7 @@ exports.view = function (state, role) { view.propaganda = game.prop.step if (game.result) { - view.prompt = game.result + " won!" + view.prompt = game.victory } else if (!is_current_role(role)) { let inactive = states[game.state].inactive if (!inactive) { -- cgit v1.2.3