diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-10 10:57:23 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-10 10:57:23 +0000 |
commit | 0cae02d8f597a863ea71c71ebb5d81d76ebe8ea5 (patch) | |
tree | d6fd201d4bda16901d8d4381823decb911e17bf0 | |
parent | f358679126f348d4bc32e89aea8754a22cf651c1 (diff) | |
download | 1989-dawn-of-freedom-0cae02d8f597a863ea71c71ebb5d81d76ebe8ea5.tar.gz |
Add autoresolve to Kiss of Death
-rw-r--r-- | rules.js | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -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 = { |