summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-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)