summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-03 10:13:49 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-03 10:13:49 +0100
commit0dac3647d5da0b4f20eb372707daf352c3dd6699 (patch)
treeb65df05feaaad0d5bf399c8d64d8c6513957c2c5 /rules.js
parent8a22654f577467fa36b5312884a754c7e7348fff (diff)
download1989-dawn-of-freedom-0dac3647d5da0b4f20eb372707daf352c3dd6699.tar.gz
Fix Samizdat
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/rules.js b/rules.js
index e41e632..0025460 100644
--- a/rules.js
+++ b/rules.js
@@ -7296,11 +7296,13 @@ states.vm_samizdat = {
return `resolve ${clean_name(cards[game.played_card].name)}.`
},
prompt() {
- view.prompt = 'Samizdat: you may set aside a card from your hand and draw a replacement.'
- for (let card of game.democrat_hand) {
- gen_action_card(card)
+ if (game.samizdat_card !==0) {
+ view.prompt = 'Samizdat: you may set aside a card from your hand and draw a replacement.'
+ for (let card of game.democrat_hand) {
+ gen_action_card(card)
+ }
+ gen_action('pass')
}
- gen_action('pass')
},
card(card) {
push_undo()
@@ -7323,22 +7325,23 @@ states.vm_samizdat_finish = {
return `resolve ${clean_name(cards[game.played_card].name)}.`
},
prompt() {
- if (game.phase === 2) {
+ /*if (game.phase ) {
view.prompt = 'Samizdat: done.'
gen_action('done')
- } else {
+ } else {*/
view.prompt = 'Draw a replacement card.'
gen_action('draw')
- }
+ //}
},
draw() {
clear_undo()
game.democrat_hand.push(draw_card(game.strategy_deck))
- game.phase ++
+ vm_next()
+ //game.phase ++
},
- done() {
+ /*done() {
vm_next()
- }
+ }*/
}
states.vm_shock_therapy = {