summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-17 01:38:17 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-17 01:38:17 +0100
commit04bc715ab425cc087bfc1ed61e3ce520fac99125 (patch)
tree0d628269c42ef3f18fad776a430d6b997daaeec1 /rules.js
parent33c664391add7d7b57775689e780b0110d13c1a4 (diff)
downloadtime-of-crisis-04bc715ab425cc087bfc1ed61e3ce520fac99125.tar.gz
Add "long game" option to play to 90 points instead of 60.wip
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index e0751ab..e1ff855 100644
--- a/rules.js
+++ b/rules.js
@@ -5000,7 +5000,9 @@ function goto_gain_legacy_provinces() {
award_legacy_summary(game.current, "Provinces", count_own_provinces())
award_legacy_summary(game.current, "Improvements", count_own_improvements())
- if (!game.end && is_emperor_player() && game.legacy[game.current] >= 60) {
+ let trigger = game.long ? 90 : 60
+
+ if (!game.end && is_emperor_player() && game.legacy[game.current] >= trigger) {
log_br()
log("Game will end after this round!")
game.end = 1
@@ -5493,6 +5495,10 @@ exports.setup = function (seed, scenario, options) {
log_h1("Time of Crisis")
+ if (options.long_game) {
+ log("Play to 90 Legacy.")
+ game.long = 1
+ }
if (options.emperor) {
log("Emperor Rules.")