summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-28 13:38:19 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit75a430504daec20eac0438e1a6226c02f8043395 (patch)
tree3487c7639619880af64bc4ecc5c92fe3f0dc7c90
parentc5bd03c1c31830e027ff75134ad80f5e2a8caf84 (diff)
downloadcrusader-rex-75a430504daec20eac0438e1a6226c02f8043395.tar.gz
crusader: Show who won in the log.
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 58c0028..5ab6a4c 100644
--- a/rules.js
+++ b/rules.js
@@ -1111,12 +1111,16 @@ function check_sudden_death() {
game.state = 'game_over';
game.result = FRANKS;
game.victory = "Franks control all seven victory cities."
+ log("");
+ log(game.victory);
return true;
}
if (game.s_vp === 7) {
game.state = 'game_over';
game.result = SARACENS;
game.victory = "Saracens control all seven victory cities."
+ log("");
+ log(game.victory);
return true;
}
}
@@ -3573,6 +3577,8 @@ function goto_year_end() {
game.victory = "The game is a draw.";
game.result = null;
}
+ log("");
+ log(game.victory);
return;
}