diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-17 01:38:17 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-17 01:38:17 +0100 |
commit | 04bc715ab425cc087bfc1ed61e3ce520fac99125 (patch) | |
tree | 0d628269c42ef3f18fad776a430d6b997daaeec1 /rules.js | |
parent | 33c664391add7d7b57775689e780b0110d13c1a4 (diff) | |
download | time-of-crisis-wip.tar.gz |
Add "long game" option to play to 90 points instead of 60.wip
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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.") |