From 18eaaad896b33725d65487fe634ad17153550865 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 17 Jun 2021 11:47:48 +0200 Subject: caesar: Use 'Both' role for simultaneous turns. --- rules.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index 51c0765..7e3ce60 100644 --- a/rules.js +++ b/rules.js @@ -98,11 +98,11 @@ function print_turn_log(verb) { } function is_active_player(current) { - return (current == game.active) || (game.active == "All" && (current == CAESAR || current == POMPEIUS)); + return (current == game.active) || (game.active == "Both" && (current == CAESAR || current == POMPEIUS)); } function is_inactive_player(current) { - return current == "Observer" || (game.active != current && game.active != "All"); + return current == "Observer" || (game.active != current && game.active != "Both"); } function remove_from_array(array, item) { @@ -692,7 +692,7 @@ function start_year() { game.p_card = 0; game.c_discard = 0; game.p_discard = 0; - game.active = "All"; + game.active = "Both"; game.state = 'discard_and_play_card'; game.show_cards = false; } @@ -705,7 +705,7 @@ function resume_discard_and_play_card() { else if (game.p_card) game.active = CAESAR; else - game.active = "All"; + game.active = "Both"; } states.discard_and_play_card = { @@ -806,7 +806,7 @@ function start_turn() { game.reserves = []; game.c_card = 0; game.p_card = 0; - game.active = "All"; + game.active = "Both"; game.state = 'play_card'; game.show_cards = false; log(""); @@ -821,7 +821,7 @@ function resume_play_card() { else if (game.p_card) game.active = CAESAR; else - game.active = "All"; + game.active = "Both"; } states.play_card = { -- cgit v1.2.3