diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-10 17:09:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-10 22:01:04 +0200 |
commit | 52614227ce9c88ab8ce64d55e72d00163d956c72 (patch) | |
tree | d3a5d738b4d8f0276e8c867a937c3635f04b334c | |
parent | b641df55f93a050765be1213064e020a093f1f28 (diff) | |
download | time-of-crisis-52614227ce9c88ab8ce64d55e72d00163d956c72.tar.gz |
Add tournament option (for fixed start player).
-rw-r--r-- | rules.js | 7 | ||||
-rw-r--r-- | title.sql | 8 |
2 files changed, 7 insertions, 8 deletions
@@ -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() } @@ -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 ); |