summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 094bb5c..0ba6ad4 100644
--- a/rules.js
+++ b/rules.js
@@ -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'