summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index d8b57f4..73ae13c 100644
--- a/rules.js
+++ b/rules.js
@@ -6106,13 +6106,13 @@ states.vm_support_check_prep = {
states.vm_ceh_support_check_prep = {
inactive: 'do support checks.',
prompt () {
- if (game.available_ops === 0) {
+ if (game.vm_available_ops === 0) {
view.prompt = 'Support checks: done.'
gen_action('done')
//return
}
- if (game.available_ops > 0) {
- view.prompt = `Select a space. ${pluralize(game.available_ops, 'support check')} remaining.`
+ if (game.vm_available_ops > 0) {
+ view.prompt = `Select a space. ${pluralize(game.vm_available_ops, 'support check')} remaining.`
for (let space_id of game.valid_spaces) {
gen_action_sc(spaces[space_id].name_unique)
@@ -6150,6 +6150,7 @@ states.vm_ceh_do_support_check = {
roll() {
clear_undo()
do_sc(spaces[game.selected_space].name_unique)
+
game.vm_available_ops--
if (game.vm_available_ops === 0) {
game.valid_spaces = []