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 | |
parent | 33c664391add7d7b57775689e780b0110d13c1a4 (diff) | |
download | time-of-crisis-wip.tar.gz |
Add "long game" option to play to 90 points instead of 60.wip
-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.") |