diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 17:59:04 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 17:59:04 +0000 |
commit | 30870e62d951633fc4d1c43dc0db230373a7b3ae (patch) | |
tree | c6433501ad991d5c759df9fd2ad7a086fd6eb2a0 /rules.js | |
parent | d282ff258ccce2afc54ae9ed2ef3624a0952b045 (diff) | |
download | 1989-dawn-of-freedom-30870e62d951633fc4d1c43dc0db230373a7b3ae.tar.gz |
Fix Honecker under Stasi
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -6843,10 +6843,10 @@ states.vm_goodbye_lenin_ops = { states.vm_honecker = { prompt() { - if (game.valid_cards.length === 0 && game.temp === 0) { + if (game.valid_cards.length === 0) { view.prompt = 'Honecker: No valid cards to choose.' gen_action('pass') - } else if (game.temp === 0) { + } else { view.prompt = 'Honecker: Choose a card to add to your hand.' for (let card of game.valid_cards) { gen_action_card(card) @@ -6858,7 +6858,6 @@ states.vm_honecker = { push_undo() game.valid_cards = [] log(`Took C${card} into hand`) - game.temp = card let card_index = game.strategy_discard.indexOf(card) game.strategy_discard.splice(card_index, 1) game.communist_hand.push(card) @@ -7947,14 +7946,11 @@ states.vm_tst_3 = { gen_action_card(card) } } - console.log('game.valid_cards', game.valid_cards) }, card(card) { push_undo() discard(card) - console.log('card', card,'game.valid_cards', game.valid_cards) game.valid_cards.splice(game.valid_cards.indexOf(card), 1) - console.log('game.valid_cards', game.valid_cards) game.temp ++ if (game.temp === 2) { game.valid_cards = [] |