summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
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
}