summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-06 03:03:34 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-06 03:03:34 +0100
commitfe85fe60c6f408af2f9929a111963a67a1d3425e (patch)
treebcd81c38b0c9bb28376ac4235ca009688330500d /rules.js
parent19a042610fafc45e5949337d662a9cf8a702e28e (diff)
downloadmaria-fe85fe60c6f408af2f9929a111963a67a1d3425e.tar.gz
game over message
Diffstat (limited to 'rules.js')
-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
}