summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-10 11:31:06 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-10 11:31:06 +0100
commit89c9aa28c304a17b3a9478bd426031e17303b6a6 (patch)
tree2400fddc9fa6251bc6accfcc5f092eb879c5c960 /rules.js
parent3c55f7c5d70888cf09be9adfa15280b0d35a3ba8 (diff)
download1989-dawn-of-freedom-89c9aa28c304a17b3a9478bd426031e17303b6a6.tar.gz
Updates to log
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js31
1 files changed, 18 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index 0ba6ad4..e03476b 100644
--- a/rules.js
+++ b/rules.js
@@ -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() {