summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-05 17:08:57 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-05 17:08:57 +0200
commite398ff420304a2f412520bd2e4dda11c7d54c6ea (patch)
tree1a603b531424b073c072c21c6fac3be24ea9a54e
parent80c9051afc6e6804f04d44f5e8cad22c7fed823a (diff)
downloadandean-abyss-e398ff420304a2f412520bd2e4dda11c7d54c6ea.tar.gz
Fix AUC Free Terror events counting the correct number of terror ops.
-rw-r--r--rules.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 25a4b72..980fb03 100644
--- a/rules.js
+++ b/rules.js
@@ -4542,15 +4542,11 @@ function goto_terror() {
function vm_free_terror() {
init_free_operation("Terror", game.vm.s)
- if (game.current === AUC)
- game.vm.auc_terror = 0
game.state = "terror_space"
}
function vm_free_terror_with_piece() {
init_free_operation("Terror", game.vm.s)
- if (game.current === AUC)
- game.vm.auc_terror = 0
do_terror_piece(game.vm.p)
}
@@ -4650,7 +4646,7 @@ function do_terror_piece(p) {
resume_kidnap_2()
} else if (game.vm) {
if (game.current === AUC)
- game.vm.auc_terror++
+ game.vm.auc_terror = (game.vm.auc_terror | 0) + 1
end_operation()
} else {
game.state = "terror"