diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-03 23:18:00 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-03 23:18:00 +0100 |
commit | 27216e259772d46f687b63fa2464ca4613a5ad1b (patch) | |
tree | 98653658d8f8a99dccebca26d656d2edd6ec3198 | |
parent | 80f5cb29dc8f1b525733c870759388a226e3c05d (diff) | |
download | votes-for-women-27216e259772d46f687b63fa2464ca4613a5ad1b.tar.gz |
log State and Strategy cards
-rw-r--r-- | rules.js | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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) |