From 19df710678a3153147dbc7b9a5a266a717bc7537 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 May 2021 12:24:04 +0200 Subject: caesar: Add log message showing when tournament rule is in effect. --- rules.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index fe18901..ad73689 100644 --- a/rules.js +++ b/rules.js @@ -898,11 +898,7 @@ function reveal_cards() { game.prior_c_card = game.c_card; game.prior_p_card = game.p_card; - // Tournament rule: Caesar always goes first on the first turn of the game. - if (game.year == 705 && game.turn == 1) { - game.p1 = CAESAR; - game.p2 = POMPEIUS; - } else if (CARDS[game.c_card].event) { + if (CARDS[game.c_card].event) { game.p1 = CAESAR; game.p2 = POMPEIUS; } else if (CARDS[game.p_card].event) { @@ -916,6 +912,15 @@ function reveal_cards() { game.p2 = POMPEIUS; } + // Tournament rule: Caesar always goes first on the first turn of the game. + if (game.year == 705 && game.turn == 1) { + if (game.p1 != CAESAR) { + log("Tournament rule:\nCaesar is the first player on the very first turn of the game."); + game.p1 = CAESAR; + game.p2 = POMPEIUS; + } + } + game.show_cards = true; game.active = game.p1; start_player_turn(); -- cgit v1.2.3