diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-06 03:03:34 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-06 03:03:34 +0100 |
commit | fe85fe60c6f408af2f9929a111963a67a1d3425e (patch) | |
tree | bcd81c38b0c9bb28376ac4235ca009688330500d /rules.js | |
parent | 19a042610fafc45e5949337d662a9cf8a702e28e (diff) | |
download | maria-fe85fe60c6f408af2f9929a111963a67a1d3425e.tar.gz |
game over message
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6716,7 +6716,7 @@ exports.view = function (state, player) { view.political = game.political if (game.state === "game_over") { - view.prompt = game.victory + view.prompt = game.victory_reason view.troops = game.troops view.hand1 = game.hand1 view.hand2 = game.hand2 @@ -6779,13 +6779,13 @@ exports.action = function (state, _player, action, arg) { /* COMMON FRAMEWORK */ -function goto_game_over(result, victory) { +function goto_game_over(result, reason) { log("# The End") game.active = "None" game.state = "game_over" game.result = result - game.victory = victory - log(game.victory) + game.victory_reason = victory_reason + log(game.victory_reason) return true } |