summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-10 10:57:23 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-10 10:57:23 +0000
commit0cae02d8f597a863ea71c71ebb5d81d76ebe8ea5 (patch)
treed6fd201d4bda16901d8d4381823decb911e17bf0
parentf358679126f348d4bc32e89aea8754a22cf651c1 (diff)
download1989-dawn-of-freedom-0cae02d8f597a863ea71c71ebb5d81d76ebe8ea5.tar.gz
Add autoresolve to Kiss of Death
-rw-r--r--rules.js20
1 files changed, 8 insertions, 12 deletions
diff --git a/rules.js b/rules.js
index 7aca87c..f34b6bc 100644
--- a/rules.js
+++ b/rules.js
@@ -6630,8 +6630,12 @@ states.vm_kiss_of_death = {
log_side()
game.state = 'vm_kiss_of_death_finish'
} else if (cards[game.vm_event].side !== "C" && event_is_playable(game.vm_event) && game.vm_event !== C_COMMON_EUROPEAN_HOME) {
- log_side()
- game.state = 'vm_kiss_of_death_finish'
+ if (is_auto_resolve(game.vm_event)) {
+ game.state = 'vm_kiss_of_death_finish'
+ } else {
+ log_side()
+ game.state = 'vm_kiss_of_death_finish'
+ }
} else {
change_player()
log('Event does not occur')
@@ -6649,20 +6653,12 @@ states.vm_kiss_of_death_finish = {
return `resolve ${clean_name(cards[game.played_card].name)}.`
},
prompt() {
- if (game.vm_event > 0 && game.vm_event !== C_COMMON_EUROPEAN_HOME && (cards[game.vm_event].side === 'D' || cards[game.vm_event].side === 'N')) {
- view.prompt = `Play ${clean_name(cards[game.vm_event].name)} for the event.`
- gen_action('event')
- } else {
- view.prompt = 'Event does not occur.'
- gen_action('done')
- }
+ view.prompt = `Play ${clean_name(cards[game.vm_event].name)} for the event.`
+ gen_action('event')
},
event() {
goto_vm(game.vm_event)
},
- done() {
- vm_next()
- }
}
states.vm_kremlin_coup_choose_country = {