From edb7b83974c7084900a67e99f7dadc8fc34bce88 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 14 Jan 2025 19:02:38 +0000 Subject: Remove debugging steps --- rules.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index d481d30..1376bb5 100644 --- a/rules.js +++ b/rules.js @@ -2374,6 +2374,7 @@ function do_sc(space) { logi(`+${card_ops} card ops`) } // Get support check modifiers + console.log('game.support_check_modifier', game.support_check_modifier) if (game.support_check_modifier > 0) { roll += game.support_check_modifier logi(`+${game.support_check_modifier} event`) @@ -3223,6 +3224,7 @@ function check_ligachev_event(card) { } function is_auto_resolve(card) { + console.log('card', card, 'game.strategy_discard', game.strategy_discard, 'strategy_discard.length', game.strategy_discard.length) if (auto_resolve_events.includes(card)) { return true } else if (card === C_THE_TYRANT_IS_GONE) { @@ -3391,9 +3393,13 @@ function is_auto_resolve(card) { return true } } else if (card === C_HONECKER) { - if (game.discard.length === 0) { + if ((game.strategy_discard.length === 1 && game.strategy_discard.includes(C_HONECKER)) || + game.strategy_discard.length === 0 + ) { if (!game.state.startsWith('vm')) { log('No cards in discard.') + log(`The Communist may take one extra Action Round this turn.`) + add_to_persistent_events(C_HONECKER) } return true } @@ -4954,6 +4960,7 @@ function vm_support_check_modified() { log('Support Checks:') else log('Support Check:') + console.log('game.support_check_modifier', game.support_check_modifier) game.state = 'vm_support_check_prep' } -- cgit v1.2.3