summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-03 23:12:27 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-03 23:12:27 +0100
commit80f5cb29dc8f1b525733c870759388a226e3c05d (patch)
tree9c119ae90764dc2bd1e702b63d9ff5435e5a2ecf
parent17870a5ae6a61b318177d230e7fc71eac4864dde (diff)
downloadvotes-for-women-80f5cb29dc8f1b525733c870759388a226e3c05d.tar.gz
War In Europe extra campaigning cost
-rw-r--r--rules.js13
1 files 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()