diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-01 12:25:19 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | 48bd11062f644484cc3addeca0a10e6746653067 (patch) | |
tree | 246fa8e90f8b6330a27f789f172b6fb93a969d7b | |
parent | 19df710678a3153147dbc7b9a5a266a717bc7537 (diff) | |
download | julius-caesar-48bd11062f644484cc3addeca0a10e6746653067.tar.gz |
caesar: Tournament option as scenario choice.
-rw-r--r-- | rules.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,7 @@ exports.scenarios = [ "Historical", + "Tournament", // TODO: Free Deployment // TODO: Avalon Digital scenarios? ]; @@ -913,7 +914,7 @@ function reveal_cards() { } // Tournament rule: Caesar always goes first on the first turn of the game. - if (game.year == 705 && game.turn == 1) { + if (game.year == 705 && game.turn == 1 && game.tournament) { if (game.p1 != CAESAR) { log("Tournament rule:\nCaesar is the first player on the very first turn of the game."); game.p1 = CAESAR; @@ -2233,6 +2234,7 @@ exports.setup = function (scenario, players) { if (players.length != 2) throw new Error("Invalid player count: " + players.length); game = { + tournament: (scenario == "Tournament"), state: null, show_cards: false, year: 705, |