From 31714d22537211bdf4fe2c909c7bb574f557ac10 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 10 Oct 2024 18:08:47 +0100 Subject: Fix to only play Stasi card in new view --- rules.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/rules.js b/rules.js index 99f823f..d26d16d 100644 --- a/rules.js +++ b/rules.js @@ -2266,14 +2266,9 @@ states.stasi_play_card = { for (let card of available_cards) { gen_action_card(card) }*/ - let available_cards - if (game.active === DEM) { - available_cards = game.democrat_hand - } else { - available_cards = game.communist_hand - } + let available_cards = [game.stasi_card] + for (let card of available_cards) { - //gen_action('card_event', card) if (scoring_cards.includes(card)) { /*view.prompt = 'Play for:'*/ @@ -6661,7 +6656,7 @@ states.vm_ceh_support_check_prep = { states.vm_ceh_do_support_check = { inactive: 'do support checks.', prompt () { - view.prompt = `Support check: %${game.selected_space}. Roll a die.` + view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -6725,7 +6720,7 @@ states.vm_1_support_check_prep = { states.vm_do_support_check = { inactive: 'do support checks.', prompt () { - view.prompt = `Support check: %${game.selected_space}. Roll a die.` + view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -7596,7 +7591,7 @@ states.vm_kremlin_coup_sc_prep = { states.vm_kremlin_coup_sc = { inactive: 'do support checks', prompt () { - view.prompt = `Support check: %${game.selected_space}. Roll a die.` + view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { -- cgit v1.2.3