summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-21 11:35:45 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-21 11:35:45 +0100
commite32507d61c04ab4a9f4332dcd7bde84ced8a15b6 (patch)
tree123b3c56e2bc86d62c415b16cfad3aa5a0899c39
parent27b3605dc838fded565fb1b75f3efc6b1ed6f033 (diff)
download1989-dawn-of-freedom-e32507d61c04ab4a9f4332dcd7bde84ced8a15b6.tar.gz
Additional debug steps
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 90c9179..00cad71 100644
--- a/rules.js
+++ b/rules.js
@@ -2412,8 +2412,11 @@ function valid_spaces_support_falters() {
}
function valid_spaces_infl() {
- console.log('valid_spaces_infl called')
-
+ if (game.state.startsWith('vm')) {
+ console.log('valid_spaces_infl called from VM')
+ } else {
+ console.log('valid_spaces_infl called not from VM')
+ }
// Check if function is called from the VM or not, take relevant ops variable
let ops = game.state.startsWith('vm') ? game.vm_available_ops : game.available_ops;