From 227059494e83ebf659a7243c1c0fc883f2348bfd Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 11 Nov 2024 08:32:13 +0000 Subject: Update Tear Gas logging --- rules.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e300a46..558d0ae 100644 --- a/rules.js +++ b/rules.js @@ -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) { -- cgit v1.2.3