From ef8afd9623723dd6ec0646e77bdd05fb1c523b7f Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 14:41:02 +0100 Subject: Updates to log for scoring --- rules.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index 60473b5..1a4e1ca 100644 --- a/rules.js +++ b/rules.js @@ -2631,7 +2631,6 @@ function retain_power(country){ function score_country(country) { log_h3(`Scoring: ${country}`) - let status //Get scoring values let value_presence = get_value(country) @@ -2663,7 +2662,7 @@ function score_country(country) { } log(`Battlegrounds: +${presence.dem_battlegrounds} VP`) dem_vp += presence.dem_battlegrounds - log(`Total: ${dem_vp} VP`) + log(`Total: +${dem_vp} VP`) log_gap('Communist:') if (presence.com_spaces > 0) { @@ -2691,7 +2690,7 @@ function score_country(country) { } log(`Battlegrounds: -${presence.com_battlegrounds} VP`) com_vp -= presence.com_battlegrounds - log(`Total: ${com_vp} VP`) + log(`Total: -${com_vp} VP`) log_gap('Democrat:') if (presence.dem_spaces > 0) { @@ -2701,7 +2700,7 @@ function score_country(country) { log(`Battlegrounds: +${presence.dem_battlegrounds} VP`) dem_vp += presence.dem_battlegrounds } - log (`Total: ${dem_vp} VP`) + log (`Total: +${dem_vp} VP`) } else { log('No presence: 0 VP') } @@ -2755,7 +2754,11 @@ function score_country(country) { com_vp += presence.com_battlegrounds */ let change_vp = dem_vp + com_vp game.vp += change_vp - log_gap(`Final VP: ${change_vp} VP`) + if (change_vp > 0 ) { + log_gap(`Final change VP: +${change_vp} VP`) + } else { + log_gap(`Final change VP: ${change_vp} VP`) + } } function get_value(country) { @@ -3306,7 +3309,7 @@ function reset_power() { } if (game.persistent_events['the_crowd_turns_against_ceausescu'] && game.pwr_struggle_in === 'Romania'){ permanently_remove(54) - game.table_cards = game.table_cards.filter(card => card !== 54) + //game.table_cards = game.table_cards.filter(card => card !== 54) game.persistent_events['the_crowd_turns_against_ceausescu'] = false } if (game.pwr_struggle_in === 'Romania' && game.persistent_events['securitate']){ -- cgit v1.2.3