From 27216e259772d46f687b63fa2464ca4613a5ad1b Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:18:00 +0100 Subject: log State and Strategy cards --- rules.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3