From 52614227ce9c88ab8ce64d55e72d00163d956c72 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 10 Oct 2024 17:09:23 +0200 Subject: Add tournament option (for fixed start player). --- rules.js | 7 ++++++- title.sql | 8 +------- 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 ); -- cgit v1.2.3