summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-07 11:54:50 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-07 11:54:50 +0000
commit1fa3808840dba64f5344795d5e8f730cc2ebfeb0 (patch)
treeddfe42371df029f9806a074a9e13a0744f258d95 /rules.js
parentef7c22e04584531784b841ab54b63e7e5247ffd4 (diff)
download1989-dawn-of-freedom-1fa3808840dba64f5344795d5e8f730cc2ebfeb0.tar.gz
Fix error from game_over change
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 9fd78cc..4ff3c9b 100644
--- a/rules.js
+++ b/rules.js
@@ -5743,6 +5743,7 @@ states.vm_remove_all_infl = {
states.vm_support_check_prep = {
inactive: 'do support checks.',
prompt () {
+ console.log('in vm_support_check_prep', game.valid_spaces)
if (game.valid_spaces.length === 0) {
view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for support check.`
gen_action('done')
@@ -5876,6 +5877,7 @@ states.vm_1_support_check_prep = {
states.vm_do_support_check = {
inactive: 'do support checks.',
prompt () {
+ console.log('in vm_do_support_check')
view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
gen_action('roll')
},
@@ -5890,7 +5892,7 @@ states.vm_do_support_check = {
vm_next()
return
} else {
- game.state = 'support_check_prep'
+ game.state = 'vm_support_check_prep'
return
}
}