summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-02-27 13:38:03 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-02-27 13:38:03 +0000
commit69b6e92a9afc9a30ff04b8f031b4796bc7b4f193 (patch)
tree2823107c0f17b7efb450bc8a5aeaa83b80bc5509
parent241df2e63f4a8bd006156368ef6af540dc6b5a48 (diff)
download1989-dawn-of-freedom-69b6e92a9afc9a30ff04b8f031b4796bc7b4f193.tar.gz
Add pass for vm_ceh_support_check
-rw-r--r--rules.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index f10e457..b61684f 100644
--- a/rules.js
+++ b/rules.js
@@ -6389,6 +6389,10 @@ states.vm_ceh_support_check_prep = {
gen_action_space(space_id)
}
}
+ if (game.valid_spaces.length === 0) {
+ view.prompt = 'Support Checks: No targets remaining. Pass.'
+ gen_action('pass')
+ }
},
space(space) {
push_undo()
@@ -6407,6 +6411,10 @@ states.vm_ceh_support_check_prep = {
}
game.state = 'vm_ceh_do_support_check'
},
+ pass() {
+ game.valid_spaces = []
+ vm_next()
+ }
}
states.vm_ceh_do_support_check = {
@@ -8193,6 +8201,7 @@ states.vm_tst_6 = {
game.state = 'vm_tst_6_sc'
},
pass() {
+ game.valid_spaces = []
vm_next()
}
}