summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-10 17:09:23 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-10 22:01:04 +0200
commit52614227ce9c88ab8ce64d55e72d00163d956c72 (patch)
treed3a5d738b4d8f0276e8c867a937c3635f04b334c /rules.js
parentb641df55f93a050765be1213064e020a093f1f28 (diff)
downloadtime-of-crisis-52614227ce9c88ab8ce64d55e72d00163d956c72.tar.gz
Add tournament option (for fixed start player).
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 0a2f27d..e67a996 100644
--- a/rules.js
+++ b/rules.js
@@ -5604,7 +5604,12 @@ exports.setup = function (seed, scenario, options) {
reset_neutral_italia()
- game.first = game.current = random(player_count)
+ if (options.tournament)
+ game.first = 0
+ else
+ game.first = random(player_count)
+
+ game.current = game.first
return save_game()
}