summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-22 14:47:20 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit037b1568468d5300af879c7b311b255c97045394 (patch)
tree1f2a23c80b16596e15371eb9dc0039255afbe180
parent6290483d7cc64275317e47af26eda84b7b11729c (diff)
downloadpax-pamir-037b1568468d5300af879c7b311b255c97045394.tar.gz
Log who resigned.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index b4e9be7..0095360 100644
--- a/rules.js
+++ b/rules.js
@@ -3065,7 +3065,10 @@ exports.action = function (state, current, action, arg) {
exports.resign = function (state, current) {
load_game(state);
+ logbr();
+ log(`${current} resigned.`);
goto_game_over();
+ game.victory = `${current} resigned.`;
return save_game();
}