summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-17 19:56:31 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-17 19:56:31 +0100
commitf8f40e6c1d03e0600334ca6bfa28030146762c89 (patch)
tree9d611ffc5cd57bd1c20cc9f67eccc216093eed71 /rules.js
parent9a5cc3666dd80cf555214583b215dcd1002b8af6 (diff)
downloadpax-pamir-f8f40e6c1d03e0600334ca6bfa28030146762c89.tar.gz
Add "tournament" option.HEADmaster
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 458c9f4..d3ede47 100644
--- a/rules.js
+++ b/rules.js
@@ -3242,7 +3242,11 @@ exports.setup = function (seed, scenario, options) {
// Starting loyalty, starting with a random player.
game.state = 'loyalty'
- game.active = random(player_count)
+
+ if (options.tournament)
+ game.active = 0
+ else
+ game.active = random(player_count)
return save_game()
}