diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-08 18:27:22 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-08 18:27:22 +0100 |
commit | 3c55f7c5d70888cf09be9adfa15280b0d35a3ba8 (patch) | |
tree | eadfe80c6afb014e779d412de0892dcc75fe7560 /rules.js | |
parent | c96c7ddc4c81179616a85b5920d27b45ae093a34 (diff) | |
download | 1989-dawn-of-freedom-3c55f7c5d70888cf09be9adfa15280b0d35a3ba8.tar.gz |
Fix opponent viewing set aside card
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -166,7 +166,6 @@ exports.view = function(state, player) { dem_tst: game.dem_tst_position,
com_tst: game.com_tst_position,
persistent_events: game.persistent_events,
- samizdat: game.samizdat_card,
systematization: game.systematization,
the_tyrant_is_gone: game.the_tyrant_is_gone,
@@ -230,6 +229,10 @@ exports.view = function(state, player) { view.power_hand = game.com_pwr_hand.sort((a, b) => a - b)
}
+ if (game.active === DEM) {
+ view.samizdat = game.samizdat_card
+ }
+
if (game.state === "game_over") {
view.prompt = game.victory
} else if (player === "Observer" || (game.active !== player && game.active !== "Both")) {
@@ -3991,6 +3994,7 @@ function new_turn() { log_side()
//console.log('in start new AR call, game.active', game.active)
if (game.persistent_events.includes(5)) {
+ log_h3('C5')
game.state = 'general_strike'
}
else {
@@ -7095,13 +7099,21 @@ states.vm_exit_visas = { for (let card of game.democrat_hand) {
gen_action_card(card)
}
- gen_action('done')
+ if (game.temp === 0) {
+ gen_action('pass')
+ } else {
+ gen_action('done')
+ }
},
card(card){
push_undo()
discard(card)
game.temp++
},
+ pass() {
+ push_undo()
+ game.state = 'vm_exit_visas_finish'
+ },
done() {
push_undo()
game.state = 'vm_exit_visas_finish'
|