diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-11 08:32:13 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-11 08:32:13 +0000 |
commit | 227059494e83ebf659a7243c1c0fc883f2348bfd (patch) | |
tree | d55769015263fd873c4c19f360bd1ec931922401 | |
parent | 98f8263c6bfd5bae8e2e29e89fe4f65d5865a4b7 (diff) | |
download | 1989-dawn-of-freedom-227059494e83ebf659a7243c1c0fc883f2348bfd.tar.gz |
Update Tear Gas logging
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2121,6 +2121,7 @@ function remove_infl(space, ops) { function do_sc(space) { clear_undo() + let tear_gas_start = game.persistent_events.includes(C_TEAR_GAS) log_gap(`Support check: %${space}`) // Continue with Support Check Logic @@ -2260,10 +2261,16 @@ function do_sc(space) { game.vp ++ } if (game.active === COM && game.persistent_events.includes(C_ECO_GLASNOST) && spaces[space].space_id === S_RUSE) { - log_msg_gap('+1 VP from C39') + log('+1 VP from C39') game.vp++ } + //Check if Tear Gas used + let tear_gas_end = game.persistent_events.includes(C_TEAR_GAS) + if (tear_gas_start && !tear_gas_end) { + log(`C${C_TEAR_GAS} no longer in effect`) + } + // If Austria-Hungary Border Reopened used, all future support checks must be in East Germany if (game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED)){ if (game.austria_hungary_border_reopened_tracker) { |