diff options
-rw-r--r-- | rules.js | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -1163,7 +1163,7 @@ states.do_support_check = { inactive: 'do support checks.',
prompt () {
console.log('in do_support_check')
- view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: %${game.selected_space}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -2161,21 +2161,22 @@ states.new_years_eve_party = { },
pass() {
push_undo()
+ log('No final power struggle')
if (game.vp > 0) {
- goto_game_over(DEM, `New Year's Eve Party: ${DEM} wins on Victory Point Track!`)
+ goto_game_over(DEM, `C104: ${DEM} wins on Victory Point Track!`)
} else if (game.vp < 0) {
- goto_game_over(COM, `New Year's Eve Party: ${COM} wins on Victory Point Track!`)
+ goto_game_over(COM, `C104: ${COM} wins on Victory Point Track!`)
} else if (game.vp === 0) {
- goto_game_over('', `New Year's Eve Party: The game is tied!`) /*Not sure what to pass for result */
+ goto_game_over('', `C104: The game is tied!`) /*Not sure what to pass for result */
}
},
end() {
if (game.vp > 0) {
- goto_game_over(DEM, `New Year's Eve Party: ${DEM} wins on Victory Point Track!`)
+ goto_game_over(DEM, `C104: ${DEM} wins on Victory Point Track!`)
} else if (game.vp < 0) {
- goto_game_over(COM, `New Year's Eve Party: ${COM} wins on Victory Point Track!`)
+ goto_game_over(COM, `C104: ${COM} wins on Victory Point Track!`)
} else if (game.vp === 0) {
- goto_game_over('', `New Year's Eve Party: The game is tied!`) /*Not sure what to pass for result */
+ goto_game_over('', `C104: The game is tied!`) /*Not sure what to pass for result */
}
}
}
@@ -2608,8 +2609,8 @@ function remove_infl(space) { function do_sc(space) {
clear_undo()
- log_gap(`Support check: ${space}`)
let clicked_space = find_space_index(space)
+ log_gap(`Support check: %${clicked_space}`)
//Check Helsinki Final Act
@@ -5668,7 +5669,11 @@ function vm_heal_our_bleeding_wounds() { if (game.turn <= 3) {change_vp = -3 }
else if (game.turn <= 7) {change_vp = -1}
else change_vp = 3
- log(`${change_vp} VP`)
+ if (change_vp >0) {
+ log(`+${change_vp} VP`)
+ } else {
+ log(`-${change_vp} VP`)
+ }
game.vp += change_vp
if (check_vp()) {
return
@@ -6644,7 +6649,7 @@ states.vm_ceh_support_check_prep = { states.vm_ceh_do_support_check = {
inactive: 'do support checks.',
prompt () {
- view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: %${game.selected_space}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -6708,7 +6713,7 @@ states.vm_1_support_check_prep = { states.vm_do_support_check = {
inactive: 'do support checks.',
prompt () {
- view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: %${game.selected_space}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -7579,7 +7584,7 @@ states.vm_kremlin_coup_sc_prep = { states.vm_kremlin_coup_sc = {
inactive: 'do support checks',
prompt () {
- view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.`
+ view.prompt = `Support check: %${game.selected_space}. Roll a die.`
gen_action('roll')
},
roll() {
@@ -8589,7 +8594,7 @@ states.vm_tst_6 = { states.vm_tst_6_sc = {
inactive: 'do support check.',
prompt () {
- view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die`
+ view.prompt = `Support check: %${game.selected_space}. Roll a die`
gen_action('roll')
},
roll() {
|