summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-11 08:32:13 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-11 08:32:13 +0000
commit227059494e83ebf659a7243c1c0fc883f2348bfd (patch)
treed55769015263fd873c4c19f360bd1ec931922401
parent98f8263c6bfd5bae8e2e29e89fe4f65d5865a4b7 (diff)
download1989-dawn-of-freedom-227059494e83ebf659a7243c1c0fc883f2348bfd.tar.gz
Update Tear Gas logging
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
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) {