summaryrefslogtreecommitdiff
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
parentb641df55f93a050765be1213064e020a093f1f28 (diff)
downloadtime-of-crisis-52614227ce9c88ab8ce64d55e72d00163d956c72.tar.gz
Add tournament option (for fixed start player).
-rw-r--r--rules.js7
-rw-r--r--title.sql8
2 files changed, 7 insertions, 8 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()
}
diff --git a/title.sql b/title.sql
index 115b226..6b92673 100644
--- a/title.sql
+++ b/title.sql
@@ -1,7 +1 @@
-insert or replace into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'time-of-crisis', 'Time of Crisis', 164949, 1 );
-insert or ignore into setups ( setup_name, title_id, player_count, scenario, options ) values
- ( 'Time of Crisis',
- 'time-of-crisis', 4, 'Standard', '{"players":4}' ),
- ( 'Time of Crisis - Age of Iron and Rust',
- 'time-of-crisis', 4, 'Expansion - Random', '{"players":4,"emperor":true}' )
-;
+insert or ignore into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'time-of-crisis', 'Time of Crisis', 164949, 1 );