summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-10 18:08:47 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-10 18:08:47 +0100
commit31714d22537211bdf4fe2c909c7bb574f557ac10 (patch)
tree22dedf8ecc8b3f080f78bac4d2022029c1c1340a /rules.js
parent5d24b3b5fb65a11f40d9db76111be4e4cdfdeeee (diff)
download1989-dawn-of-freedom-31714d22537211bdf4fe2c909c7bb574f557ac10.tar.gz
Fix to only play Stasi card in new view
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js15
1 files 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() {