diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-17 11:47:48 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | 18eaaad896b33725d65487fe634ad17153550865 (patch) | |
tree | bab71d8ec994a3f33cfdc28a1fc588bec6a0663a | |
parent | e334031e0d7fdf684c98f4f3ac1c96fcc6309fc6 (diff) | |
download | julius-caesar-18eaaad896b33725d65487fe634ad17153550865.tar.gz |
caesar: Use 'Both' role for simultaneous turns.
-rw-r--r-- | rules.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 = { |