From fe85fe60c6f408af2f9929a111963a67a1d3425e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 6 Nov 2024 03:03:34 +0100 Subject: game over message --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ec43fbd..1766531 100644 --- a/rules.js +++ b/rules.js @@ -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 } -- cgit v1.2.3