diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-11 11:02:13 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-11 11:02:13 +0000 |
commit | 217254a4f59baf3352139b3cf95bdd398347c94f (patch) | |
tree | 15ae6e928abfa5db1330cbe157fc84d47f7a15f4 | |
parent | d7634946f42f22d16abff31f7e37bb6a2794f372 (diff) | |
download | 1989-dawn-of-freedom-217254a4f59baf3352139b3cf95bdd398347c94f.tar.gz |
Tweak PS logging
-rw-r--r-- | rules.js | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1493,7 +1493,7 @@ states.power_struggle = { delete game.power_card_1 delete game.power_card_2 log(`${game.active} conceded.`) - log_h4('Aftermath') + log_h5('Aftermath') if (game.phase === 0) { game.played_power_card = 0 game.proxy_power_card = 0 @@ -1619,7 +1619,7 @@ states.support_loss = { game.available_ops = support_loss_roll[get_aftermath_roll('Support Loss')] game.phase++ valid_spaces_support_loss() - log('Removed SP:') + log(`${game.active} removed SP:`) }, space(space) { game.remove_opponent_infl = false /* Don't know why this is needed... */ @@ -1672,7 +1672,7 @@ states.vp_roll = { if (game.active === DEM) { change_player() } - log_h5('Power') + //log_h5('Power') game.state = 'choose_power' } }, @@ -1680,8 +1680,8 @@ states.vp_roll = { push_undo() let scoring_card = scoring_cards[countries.indexOf(game.pwr_struggle_in)] permanently_remove(scoring_card) - log_br() - log("The Democrat takes Power.") + log_gap('Power:') + logi("The Democrat takes Power!") take_power(game.pwr_struggle_in) game.phase = 2 }, @@ -1711,8 +1711,8 @@ states.choose_power = { }, surrender() { push_undo() - log_br() - log(`Communist voluntarily surrenders Power.`) + log_gap('Power:') + logi(`Communist voluntarily surrenders Power.`) take_power(game.pwr_struggle_in) permanently_remove(game.played_card) game.phase = 1 @@ -2983,13 +2983,13 @@ function retain_power(country) { game.times_held[find_country_index(country)]++ let vp_gain = get_value(country) * game.times_held[find_country_index(country)] //log(`Communist retains power.`) - logi(`-${vp_gain} VP`) + log_gap(`Power: -${vp_gain} VP`) game.vp_retain = -vp_gain game.vp -= vp_gain } function score_country(country) { - log_h5(`Scoring`) + log_gap(`Scoring:`) // Get scoring values let value_presence = get_value(country) @@ -3008,16 +3008,16 @@ function score_country(country) { //Democrat scoring log('Democrat:') if (presence.dem_control) { - logi(`Control. ${pluralize(presence.dem_battlegrounds,' battleground')}`) + logi(`Control, ${pluralize(presence.dem_battlegrounds,' battleground')}`) dem_vp += value_control + presence.dem_battlegrounds } else if (presence.dem_domination) { - logi(`Domination. ${pluralize(presence.dem_battlegrounds,' battleground')}`) + logi(`Domination, ${pluralize(presence.dem_battlegrounds,' battleground')}`) dem_vp += value_domination + presence.dem_battlegrounds } else if (presence.dem_spaces) { if (presence.dem_battlegrounds > 0) { - logi(`Presence. ${pluralize(presence.dem_battlegrounds,' battleground')}`) + logi(`Presence, ${pluralize(presence.dem_battlegrounds,' battleground')}`) dem_vp += value_presence + presence.dem_battlegrounds } else { logi(`Presence`) @@ -3032,7 +3032,7 @@ function score_country(country) { //Communist scoring log_gap('Communist:') if (presence.com_control) { - logi(`Control. ${pluralize(presence.com_battlegrounds,' battleground')}`) + logi(`Control, ${pluralize(presence.com_battlegrounds,' battleground')}`) com_vp -= value_control - presence.com_battlegrounds } else if (presence.com_domination) { |