diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-21 11:59:47 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-21 11:59:47 +0000 |
commit | 7f6752369cbe51c53fe165650888db0a5d10605d (patch) | |
tree | 0528b5679cd5fc21f796f6e542cef16c88b69e9a /rules.js | |
parent | 18264b5b4d9c02be683d372fb72ddead70df3c6a (diff) | |
download | 1989-dawn-of-freedom-7f6752369cbe51c53fe165650888db0a5d10605d.tar.gz |
Fix Yakovlev applying to Com win
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -2797,9 +2797,18 @@ function get_aftermath_roll() { if (rallies.includes(game.played_power_card) || game.proxy_power_card === 'Rally in the Square') { rally_win = 2} if (petitions.includes(game.played_power_card) || game.proxy_power_card === 'Petition') { petition_win = 2} let modified_roll = roll + game.raised_stakes + rally_win - petition_win - if (game.active === DEM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) { - logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`) - modified_roll ++ + + // Special check for Yakovlev Counsels Gobachev. Applies only if Democrat wins, so only if Com is doing support loss and if Dem is doing VP roll + if (game.state === 'support_loss') { + if (game.active === COM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) { + logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`) + modified_roll ++ + } + } else { + if (game.active === DEM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) { + logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`) + modified_roll ++ + } } if (modified_roll < 0) {modified_roll = 0} else if (modified_roll > 7) {modified_roll = 7} @@ -2822,8 +2831,8 @@ function get_aftermath_roll() { function add_to_persistent_events(card) { game.persistent_events.push(card) remove_from_discard(card) - let silent_cards = [C_SYSTEMATIZATION, C_FOREIGN_CURRENCY_DEBT_BURDEN, C_SOLIDARITY_LEGALIZED] - if (!silent_cards.includes(card)) {log(`C${card}:`)} + //let silent_cards = [C_SYSTEMATIZATION, C_FOREIGN_CURRENCY_DEBT_BURDEN] + if (is_auto_resolve(card)) {log_gap(`C${card}:`)} } function permanently_remove(card) { |