summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-28 18:40:53 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-28 18:40:53 +0000
commit7a7496eb4eba70004ad263553865019e197dda80 (patch)
treed75dfa3561b010427efa4c0f5062d2a07f4d3cd9 /rules.js
parent1507f6ac97d82746d9779b75b7afbbc66d5239ea (diff)
download1989-dawn-of-freedom-7a7496eb4eba70004ad263553865019e197dda80.tar.gz
Improve prompt for support chekcs
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5eae2e5..9c37fae 100644
--- a/rules.js
+++ b/rules.js
@@ -5906,7 +5906,11 @@ states.vm_support_check_prep = {
view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for support check.`
gen_action('done')
} else {
- view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}. ${pluralize(game.vm_available_ops, 'support check')} remaining.`
+ if (event_prompt() === "") {
+ view.prompt = `${clean_name(cards[this_card()].name)}: select a space. ${pluralize(game.vm_available_ops, 'support check')} remaining.`
+ } else {
+ view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}. ${pluralize(game.vm_available_ops, 'support check')} remaining.`
+ }
for (let space_id of game.valid_spaces) {
gen_action_space(space_id);
}