summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-17 11:47:48 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit18eaaad896b33725d65487fe634ad17153550865 (patch)
treebab71d8ec994a3f33cfdc28a1fc588bec6a0663a /rules.js
parente334031e0d7fdf684c98f4f3ac1c96fcc6309fc6 (diff)
downloadjulius-caesar-18eaaad896b33725d65487fe634ad17153550865.tar.gz
caesar: Use 'Both' role for simultaneous turns.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files 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 = {