From 3c55f7c5d70888cf09be9adfa15280b0d35a3ba8 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 8 Oct 2024 18:27:22 +0100 Subject: Fix opponent viewing set aside card --- rules.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'rules.js') 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' -- cgit v1.2.3