diff options
-rw-r--r-- | create.html | 5 | ||||
-rw-r--r-- | rules.js | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/create.html b/create.html index f1cc31b..a345f17 100644 --- a/create.html +++ b/create.html @@ -20,6 +20,11 @@ Player count: <input type="checkbox" value="true" name="no_demagogue" disabled><span>No Demagogue</span> </label> +<p> +<label> +<input type="checkbox" value="true" name="long_game">Long game (to 90 Legacy) +</label> + <script> document.querySelector("select[name='scenario']").onchange = function (event) { let input = document.querySelector("input[name='no_demagogue']") @@ -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.") |