diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-14 19:02:38 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-14 19:02:38 +0000 |
commit | edb7b83974c7084900a67e99f7dadc8fc34bce88 (patch) | |
tree | e88f64dd3536ff9179f5b6774feec9dd77ef0f9c /rules.js | |
parent | 41127ba8c0f97d5a475dd901843cf30b5f6784c6 (diff) | |
download | 1989-dawn-of-freedom-edb7b83974c7084900a67e99f7dadc8fc34bce88.tar.gz |
Remove debugging steps
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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' } |