diff options
-rw-r--r-- | rules.js | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -2989,92 +2989,92 @@ function is_auto_resolve(card) { } else if (card === C_BROUGHT_IN_FOR_QUESTIONING ) { if (game.democrat_hand.length === 0) { - if (!game.state.startsWith('vm')) { log('Democrat has no cards to discard') } + if (!game.state.startsWith('vm')) { logi('Democrat has no cards to discard') } return true } } else if (card === C_DEUTSCHE_MARKS) { if (game.democrat_hand.length === 0) { - if (!game.state.startsWith('vm')) { log('Democrat has no cards to give') } + if (!game.state.startsWith('vm')) { logi('Democrat has no cards to give') } return true } } else if (card === C_KISS_OF_DEATH ) { if (game.communist_hand.length === 0) { - if (!game.state.startsWith('vm')) { log('Communist has no cards to discard') } + if (!game.state.startsWith('vm')) { logi('Communist has no cards to discard') } return true } } else if (card === C_DISSIDENT_ARRESTED) { let dem_intellectual_infl = spaces.filter(space => space.socio === 5 && game.demInfl[space.space_id] > 0).length if (dem_intellectual_infl === 0) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_SAJUDIS || card === C_THE_BALTIC_WAY) { if (game.systematization && game.systematization === S_HARGHITA_COVASNA ) { if (check_dem_control(S_RAZGRAD)) { - if (!game.state.startsWith('vm')) { log('Minorities spaces already controlled') } + if (!game.state.startsWith('vm')) { logi('Minorities spaces already controlled') } return true } } else if (check_dem_control(S_RAZGRAD) && check_dem_control(S_HARGHITA_COVASNA)) { - if (!game.state.startsWith('vm')) { log('Minorities spaces already controlled') } + if (!game.state.startsWith('vm')) { logi('Minorities spaces already controlled') } return true } } else if (card === C_CEAUSESCU) { let dem_romania_infl = spaces.filter(space => space.country === 'Romania' && game.demInfl[space.space_id] > 0).length if (dem_romania_infl === 0) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_WE_ARE_THE_PEOPLE) { if (game.demInfl[S_LUTHERAN_CHURCH] === 0) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_BETRAYAL) { if (!game.systematization === S_ORTHODOX_CHURCH_ROMANIA) { if (game.demInfl[S_ORTHODOX_CHURCH_BULGARIA] === 0) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (game.demInfl[S_ORTHODOX_CHURCH_BULGARIA] === 0 && game.demInfl[S_ORTHODOX_CHURCH_ROMANIA] === 0) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_GOVERNMENT_RESIGNS) { let uncontrolled_elites = spaces.filter( space => game.comInfl[space.space_id] > 0 && !check_control(space.space_id)).length if (uncontrolled_elites === 0) { - if (!game.state.startsWith('vm')) { log('No uncontrolled Elite spaces') } + if (!game.state.startsWith('vm')) { logi('No uncontrolled Elite spaces') } return true } } else if (card === C_ST_NICHOLAS_CHURCH) { if (check_dem_control(S_LUTHERAN_CHURCH)) { - if (!game.state.startsWith('vm')) { log('Lutheran Church already controlled') } + if (!game.state.startsWith('vm')) { logi('Lutheran Church already controlled') } return true } } else if (card === C_BULGARIAN_TURKS_EXPELLED) { if (game.demInfl[S_RAZGRAD] === 0 ) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_NORMALIZATION) { if (game.demInfl[S_PRAHA] === 0 && game.demInfl[S_PLZEN] === 0 ) { - if (!game.state.startsWith('vm')) { log('No influence to remove') } + if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } } else if (card === C_DOMINO_THEORY) { if (game.revolutions.filter(value => value === true).length < 2) { - if (!game.state.startsWith('vm')) { log('Democrat holds power in fewer than 2 countries') } + if (!game.state.startsWith('vm')) { logi('Democrat holds power in fewer than 2 countries') } return true } else if (!scoring_cards.some(card => game.strategy_discard.includes(card))) { - if (!game.state.startsWith('vm')) { log('No scoring cards in discard') } + if (!game.state.startsWith('vm')) { logi('No scoring cards in discard') } return true } } else if (card === C_UNION_OF_DEMOCRATIC_FORCES) { let bulgarian_presence = spaces.filter(space => space.country === 'Bulgaria' && game.comInfl[space.space_id] > 0).length if (bulgarian_presence === 0) { - if (!game.state.startsWith('vm')) { log('No SPs to remove') } + if (!game.state.startsWith('vm')) { logi('No SPs to remove') } return true } } @@ -3714,7 +3714,7 @@ function reset_power() { delete game.raised_stakes_discard delete game.played_power_card delete game.tactics_fails - game.view_opp_hand = false + delete game.view_opp_power_hand let scoring_events = [C_PEASANT_PARTIES_REVOLT, C_YAKOVLEV_COUNSELS_GORBACHEV, C_THE_CROWD_TURNS_AGAINST_CEAUSESCU] for (let e of scoring_events ) { @@ -5079,7 +5079,7 @@ function vm_power_struggle() { //Check for Securitate if (game.pwr_struggle_in === 'Romania' && game.persistent_events.includes(C_SECURITATE)) { log(`C${C_SECURITATE}: Democrat reveals Power Struggle cards`) - game.view_opp_hand = true + game.view_opp_power_hand = true } log_h2('Deal Cards') game.state = 'draw_power_cards' |