summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-01 12:24:04 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit19df710678a3153147dbc7b9a5a266a717bc7537 (patch)
tree413857369091c7250fb05a247cac741e18f3bd79 /rules.js
parentb57f3b295b97df23a346c41fb7ef46c2a19a7941 (diff)
downloadjulius-caesar-19df710678a3153147dbc7b9a5a266a717bc7537.tar.gz
caesar: Add log message showing when tournament rule is in effect.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js15
1 files 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();