summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:38:02 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-24 00:38:02 +0100
commit3bba00b794e9956a4f4ca5b851774af5a6506013 (patch)
tree947a44fbc35668b784b9ee840d7ab6df43dc345f
parent7f18725fedd24399652c0890a1b98a6354682b34 (diff)
downloadandean-abyss-3bba00b794e9956a4f4ca5b851774af5a6506013.tar.gz
Automatic resign menu.
-rw-r--r--rules.js5
1 files 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) {