summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/rules.js b/rules.js
index 71a58d3..dd9a117 100644
--- a/rules.js
+++ b/rules.js
@@ -720,7 +720,7 @@ states.finish_support_check_prep = {
states.finish_do_support_check = {
inactive: 'do support checks',
prompt () {
- view.prompt = `Target: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -1888,7 +1888,7 @@ function add_infl(space) {
// Check whether spaces are controlled
check_control_change(clicked_space)
- // Check Austria Hungary Border Reoponed is true and condition has been met
+ // Check Austria Hungary Border Reopened is true and condition has been met
if (game.available_ops === 0 && game.active === DEM && game.persistent_events['austria_hungary_border_reopened'] && game.austria_hungary_border_reopened_tracker && !game.austria_hungary_border_reopened) {
game.available_ops ++
log('+1 influence from C58')
@@ -1897,7 +1897,8 @@ function add_infl(space) {
}
// If only 1 IP remaining, may not place in opponent controlled spaces
- // Check for Genscher
+
+ // Check for Genscher
if (game.available_ops === 1) {
if (game.active === DEM) {
@@ -1954,7 +1955,7 @@ function remove_infl(space) {
}
function do_sc(space) {
- log_gap(`Target: ${space}`)
+ log_gap(`Support check: ${space}`)
let clicked_space = find_space_index(space)
//Check Helsinki Final Act
@@ -3745,6 +3746,9 @@ function vm_do_add_infl(space) {
game.valid_spaces = game.valid_spaces.filter(n => spaces[n].country === 'East_Germany')
}
+ // Check whether spaces are controlled
+ check_control_change(clicked_space)
+
// If only 1 IP remaining, may not place in opponent controlled spaces
// Check for Genscher
@@ -3760,9 +3764,6 @@ function vm_do_add_infl(space) {
}
}
- // Check whether spaces are controlled
- check_control_change(clicked_space)
-
if (game.vm_available_ops === 0) {game.valid_spaces = []}
//console.log('game pieces:', game.pieces[clicked_space])
}
@@ -5181,7 +5182,7 @@ states.vm_1_support_check_prep = {
states.vm_do_support_check = {
inactive: 'do support checks.',
prompt () {
- view.prompt = `Target: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -6812,7 +6813,7 @@ states.vm_tst_6 = {
states.vm_tst_6_sc = {
inactive: 'do support check.',
prompt () {
- view.prompt = `Target: ${spaces[game.selected_space].name_unique}. Roll a die`
+ view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die`
gen_action('roll')
},
roll() {