From 466d44c32f99ed5a5c4d8699cd10844cd39fedfb Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 3 Oct 2024 13:53:00 +0100 Subject: Added separate state for Common European Home --- rules.js | 7 ++++--- 1 file 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 = [] -- cgit v1.2.3