diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-22 14:47:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:31:29 +0100 |
commit | 037b1568468d5300af879c7b311b255c97045394 (patch) | |
tree | 1f2a23c80b16596e15371eb9dc0039255afbe180 | |
parent | 6290483d7cc64275317e47af26eda84b7b11729c (diff) | |
download | pax-pamir-037b1568468d5300af879c7b311b255c97045394.tar.gz |
Log who resigned.
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); } |