From 80f5cb29dc8f1b525733c870759388a226e3c05d Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:12:27 +0100 Subject: War In Europe extra campaigning cost --- rules.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index e594d32..694ddaa 100644 --- a/rules.js +++ b/rules.js @@ -920,6 +920,10 @@ function has_extra_event_cost() { return game.active === SUF && (game.persistent_turn.includes(_1918_PANDEMIC) || game.persistent_turn.includes(A_THREAT_TO_THE_IDEAL_OF_WOMANHOOD)) } +function has_extra_campaigning_cost() { + return game.active === SUF && (game.persistent_turn.includes(WAR_IN_EUROPE)) +} + function can_play_event(c) { if (game.active === SUF && is_opposition_card(c)) return false @@ -1080,6 +1084,8 @@ states.operations_phase = { push_undo() log_round("Campaigning") log("C" + c) + if (has_extra_campaigning_cost()) + decrease_player_buttons(1) log_br() update_card_played(c) goto_campaigning(c) @@ -2224,8 +2230,11 @@ function vm_discard_persistent() { function vm_campaigning_action() { vm_assert_argcount(0) - if (has_player_active_campaigners()) { - log_h3("Campaigning Action") + if (has_player_active_campaigners() && can_campaign()) { + log_round("Campaigning") + if (has_extra_campaigning_cost()) + decrease_player_buttons(1) + log_br() goto_campaigning(game.played_card) } else { vm_next() -- cgit v1.2.3