summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index ed752af..d023f8d 100644
--- a/rules.js
+++ b/rules.js
@@ -5237,7 +5237,7 @@ states.vm_dash_for_the_west = {
let com_control = check_presence('East_Germany').com_spaces
if (roll > com_control) {
- log(`More than the ${com_control} controlled spaces in East Germany`)
+ log(`More than the ${com_control} Communist controlled spaces in East Germany`)
log('+1 VP')
game.vp++
check_vp()
@@ -5311,7 +5311,7 @@ states.vm_deutsche_marks = {
return `resolve ${cards[20].name}.`
},
prompt() {
- if(cards[game.temp].side === 'C' && game.playable_cards[game.temp].playable === 1) {
+ if(cards[game.vm_event].side === 'C' && game.playable_cards[game.vm_event].playable === 1) {
view.prompt = `You must play ${clean_name(cards[this_card()].name)} for the event.`
gen_action('event')
} else {
@@ -5324,28 +5324,28 @@ states.vm_deutsche_marks = {
}
},
event() {
- log(`Played C${cards[game.temp].number} for the event`)
+ log(`Played C${cards[game.vm_event].number} for the event`)
game.return === game.active
- goto_vm(game.temp)
+ goto_vm(game.vm_event)
},
influence() {
push_undo()
- log(`Played C${cards[game.temp].number} for influence`)
- game.vm_available_ops = cards[game.temp].ops
+ log(`Played C${cards[game.vm_event].number} for influence`)
+ game.vm_available_ops = cards[game.vm_event].ops
if (game.persistent_events['perestroika']) {game.vm_available_ops++ }
valid_spaces_infl()
game.state = 'vm_add_infl'
},
support_check() {
push_undo()
- log(`Played C${cards[game.temp].number} for support checks`)
+ log(`Played C${cards[game.vm_event].number} for support checks`)
game.vm_available_ops = 2
game.state='vm_support_check_prep'
valid_spaces_sc()
},
tst() {
push_undo()
- log(`Played C${cards[game.temp].number} to the Tiananmen Square Track`)
+ log(`Played C${cards[game.vm_event].number} to the Tiananmen Square Track`)
game.state='vm_tiananmen_square_attempt'
}
}
@@ -5748,20 +5748,22 @@ states.vm_switch_infl = {
gen_action_infl(spaces[space_id].name_unique);
//}
}
- } else {
- view.prompt = 'Inluence replaced.'
+ } /*else {
+ view.prompt = 'Influence replaced.'
gen_action('done')
- }
+ }*/
},
infl(space) {
+ push_undo()
vm_switch_infl(space)
if (game.vm_available_ops === 0) {
game.valid_spaces = []
}
+ vm_next()
},
- done() {
+ /*done() {
vm_next()
- }
+ }*/
}
states.vm_malta_summit = {