summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-31 19:11:14 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-02 08:22:05 +0000
commit04fcb8518cb5909b16a3d2bb3ed97efd8f8b4704 (patch)
tree2eb201bc10de36de02da4b9e7cf2f86febc4488b
parenta4e62015e0f0cdd6a8dd39622b4d606c1b9a5446 (diff)
download1989-dawn-of-freedom-04fcb8518cb5909b16a3d2bb3ed97efd8f8b4704.tar.gz
Fix Tank Man/Tank Column not going to TST award
-rw-r--r--rules.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 1af9405..7c69d1b 100644
--- a/rules.js
+++ b/rules.js
@@ -5354,6 +5354,31 @@ function vm_tank_column() {
game.com_tst_position++
game.com_tst_attempted = 0
}
+ // Check if TST Awards occur
+ if (game.active === DEM) {
+ if (game.dem_tst_position === 3 && game.com_tst_position < 3) {
+ game.vm_event = 203
+ goto_vm(game.vm_event)
+ return
+ }
+ else if (game.dem_tst_position === 4 && game.com_tst_position < 4) {
+ console.log('in space 4 check')
+ game.vm_event = 204
+ goto_vm(game.vm_event)
+ return
+ }
+
+ } else {
+ if (game.com_tst_position === 3 && game.dem_tst_position < 3) {
+ game.vm_event = 203
+ goto_vm(game.vm_event)
+ return
+ }
+ else if (game.com_tst_position === 4 && game.dem_tst_position < 4) {
+ game.vm_event = 204}
+ goto_vm(game.vm_event)
+ return
+ }
vm_next()
}