summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-03 23:18:00 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-03 23:18:00 +0100
commit27216e259772d46f687b63fa2464ca4613a5ad1b (patch)
tree98653658d8f8a99dccebca26d656d2edd6ec3198
parent80f5cb29dc8f1b525733c870759388a226e3c05d (diff)
downloadvotes-for-women-27216e259772d46f687b63fa2464ca4613a5ad1b.tar.gz
log State and Strategy cards
-rw-r--r--rules.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 694ddaa..659d3a9 100644
--- a/rules.js
+++ b/rules.js
@@ -92,6 +92,14 @@ function is_opposition_card(c) {
return c >= first_opposition_card && c <= last_opposition_card
}
+function is_strategy_card(c) {
+ return c >= first_strategy_card && c <= last_strategy_card
+}
+
+function is_states_card(c) {
+ return c >= first_states_card && c <= last_states_card
+}
+
function find_card(name) {
return CARDS.findIndex((x) => x && x.name === name)
}
@@ -1112,7 +1120,12 @@ states.operations_phase = {
}
function play_card_event(c) {
- log_round("Event")
+ if (is_strategy_card(c))
+ log_round("Strategy")
+ else if (is_states_card(c))
+ log_round("State")
+ else
+ log_round("Event")
log("C" + c)
if (has_extra_event_cost())
decrease_player_buttons(1)