diff options
-rw-r--r-- | events.txt | 12 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 9 insertions, 7 deletions
@@ -69,7 +69,7 @@ the_wall CARD 10 - Cult of Personality # Place 4 Communist SPs in Worker or Farmer spaces in Romania, no more than 2 per space. permanently_remove -if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE) +if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE_OCCURRED) valid_spaces_country_socio_2 'Romania', 3, 4 prompt 'Worker or Farmer spaces in Romania, no more than 2 per space' add_limited_infl 4 2 @@ -304,7 +304,7 @@ prompt 'make a Support Check in Hungary' CARD 41 - Ceausescu* # Remove 3 Democratic SPs in Romania and make a Support Check in Romania using the Ops value of this card. If the Democratic Player has any SPs in spaces adjacent to Cluj at the end of this action round remove 1 Communist SP from Bucharest. May not be played as an event after The Tyrant is Gone. permanently_remove -if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE) +if game.persistent_events.includes(C_THE_TYRANT_IS_GONE_OCCURRED) tyrant_block else if !is_auto_resolve(C_CEAUSESCU) @@ -515,7 +515,7 @@ add_x_infl 2 CARD 69 - Systematization* # The Communist player may eliminate 1 space in Romania. Any Democratic SPs are eliminated. Communist SPs are relocated to Bucharest. The connections to the destroyed space are considered to pass through and connect the adjacent spaces directly. -if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE) +if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE_OCCURRED) valid_spaces_country 'Romania' systematization else @@ -760,7 +760,7 @@ support_check_modified 5 3 CARD 97 - The Tyrant is Gone* # Remove 4 Communist SPs from the Romanian Elite Space. The Democrat announces where the Ceausescus flee, choosing a space with no Democratic SPs. If the Democratic Player gains control of the space before the end of the game the Ceausescus are captured, +2 VP. If not they escape, -2 VP. Requires play of The Crowd Turns Against Ceausescu -if game.persistent_events.includes(54) +if game.persistent_events.includes(THE_CROWD_TURNS_AGAINST_CEAUSESCU_OCCURRED) valid_spaces 'Cluj-Napoca' prompt 'the Romanian Elite Space' remove_x_opp_infl 4 @@ -794,7 +794,7 @@ stand_fast CARD 101 - Elena* # Add 2 SPs to the Romania Elite Space. -1 drm for Democratic Player for Support Checks in Romania the rest of this turn. No longer playable after The Tyrant is Gone -if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE) +if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE_OCCURRED) valid_spaces 'Cluj-Napoca' prompt 'the Romania Elite Space' add_x_infl 2 @@ -854,7 +854,7 @@ prompt `make a Support Check in ${country_name(game.vm_active_country)}` CARD 107 - Massacre in Timisoara* # Communist Player makes Support Checks in Romania using the Ops value of this card with +2 drm. Requires play of Lazslo Tokes. permanently_remove -if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE) +if !game.persistent_events.includes(C_THE_TYRANT_IS_GONE_OCCURRED) massacre_in_timisoara valid_spaces_country_sc 'Romania' prompt 'Make Support Checks in Romania' @@ -226,6 +226,7 @@ const one_turn_events = [ 8, 13, 25, 50, 63, 74, 49, 58, 59, 100, 101 ] const PC_TACTIC_FAILS = 52 const THE_CROWD_TURNS_AGAINST_CEAUSESCU_OCCURRED = 540 +const THE_TYRANT_IS_GONE_OCCURRED = 970 // COUNTRY CONSTANTS @@ -5297,6 +5298,7 @@ function vm_the_third_way() { } function vm_the_tyrant_is_gone() { + game.persistent_events.push(THE_TYRANT_IS_GONE_OCCURRED) game.valid_spaces = [] for (let i = 0; i < spaces.length; i++) { let space = spaces[i] @@ -8671,7 +8673,7 @@ CODE[96] = [ // The Chinese Solution* ] CODE[97] = [ // The Tyrant is Gone* - [ vm_if, ()=>game.persistent_events.includes(54) ], + [ vm_if, ()=>game.persistent_events.includes(THE_CROWD_TURNS_AGAINST_CEAUSESCU_OCCURRED) ], [ vm_valid_spaces, 'Cluj-Napoca' ], [ vm_prompt, 'the Romanian Elite Space' ], [ vm_remove_x_opp_infl, 4 ], |