diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-18 19:12:09 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-18 19:12:09 +0000 |
commit | 828df8b4745d0b4c56bc223f69dff79050781b00 (patch) | |
tree | 305421b35f7819a08156afaa81e229c9f2f919a0 | |
parent | 828b47de96c9ce53fe94d47bf4d9ad59998c3e89 (diff) | |
download | 1989-dawn-of-freedom-828df8b4745d0b4c56bc223f69dff79050781b00.tar.gz |
Indent logging
-rw-r--r-- | rules.js | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -3099,6 +3099,12 @@ function is_auto_resolve(card) { if (!game.state.startsWith('vm')) { logi('No influence to remove') } return true } + } else if (card === C_POLITBURO_INTRIGUE) { + let dem_bulgaria_infl = spaces.filter(space => space.country === 'Bulgaria' && game.demInfl[space.space_id] > 0).length + if (dem_bulgaria_infl === 0) { + if (!game.state.startsWith('vm')) { logi('No influence to remove') } + return true + } } else { return false @@ -6660,7 +6666,7 @@ states.vm_kiss_of_death = { } } else { change_player() - log('Event does not occur') + logi('Event does not occur') vm_next() } }, @@ -8196,7 +8202,7 @@ CODE[35] = [ // Heal our Bleeding Wounds* CODE[36] = [ // Dash for the West* [ vm_permanently_remove ], - [ vm_prompt, 'Dash for the West: select any Democratic Event with an asterisk(*) from the discard pile. Event occurs immediately' ], + [ vm_prompt, 'Dash for the West: select any Democratic Event with an asterix(*) from the discard pile. Event occurs immediately' ], [ vm_dash_for_the_west ], [ vm_return ], ] @@ -8565,9 +8571,11 @@ CODE[81] = [ // The Baltic Way* CODE[82] = [ // Spitzel* [ vm_permanently_remove ], + [ vm_if, ()=>!is_auto_resolve(C_SPITZEL) ], [ vm_valid_spaces_country_opp, 'East_Germany' ], [ vm_prompt, ' from East Germany' ], [ vm_remove_opp_infl, 2 ], + [ vm_endif ], [ vm_return ], ] @@ -8644,12 +8652,14 @@ CODE[90] = [ // Civic Forum* CODE[91] = [ // My First Banana* [ vm_permanently_remove ], + [ vm_if, ()=>!is_auto_resolve(C_MY_FIRST_BANANA) ], [ vm_valid_spaces_country_opp, 'East_Germany' ], [ vm_prompt, ' from East Germany' ], [ vm_remove_opp_infl, 2 ], [ vm_valid_spaces_country_sc, 'East_Germany' ], [ vm_prompt, 'select a space in East Germany' ], [ vm_support_check, 2 ], + [ vm_endif ], [ vm_return ], ] @@ -8713,12 +8723,14 @@ CODE[97] = [ // The Tyrant is Gone* CODE[98] = [ // Politburo Intrigue* [ vm_permanently_remove ], + [ vm_if, ()=>!is_auto_resolve(C_POLITBURO_INTRIGUE) ], [ vm_valid_spaces_country_opp, 'Bulgaria' ], [ vm_prompt, ' from Bulgaria' ], [ vm_remove_limited_opp_infl, 3, 2 ], [ vm_valid_spaces_country_sc, 'Bulgaria' ], [ vm_prompt, 'make a support check in Bulgaria' ], [ vm_1_support_check ], + [ vm_endif ], [ vm_return ], ] |