From 63ad1be3add6374185139d2798cb6d07dedb1c68 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 1 Nov 2024 13:48:17 +0000 Subject: Improve log --- rules.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index c8ab1dc..2bc7fd2 100644 --- a/rules.js +++ b/rules.js @@ -2773,31 +2773,31 @@ function score_country(country) { log("No domination or control") log_gap(`Communist:`) if (presence.com_spaces > 0) { - log(`Presence: -${value_presence} VP`) + logi(`Presence: -${value_presence} VP`) com_vp -= value_presence if (presence.com_battlegrounds > 0) { - log(`Battlegrounds: -${presence.com_battlegrounds} VP`) + logi(`Battlegrounds: -${presence.com_battlegrounds} VP`) com_vp -= presence.com_battlegrounds } else { - log('No battlegrounds') + logi('No battlegrounds') } - log(`Total: ${com_vp} VP`) + logi(`Total: ${com_vp} VP`) } else { - log('No presence: 0 VP') + logi('No presence: 0 VP') } log_gap('Democrat:') if (presence.dem_spaces > 0) { - log(`Presence: +${value_presence} VP`) + logi(`Presence: +${value_presence} VP`) dem_vp += value_presence if (presence.dem_battlegrounds > 0) { - log(`Battlegrounds: +${presence.dem_battlegrounds} VP`) + logi(`Battlegrounds: +${presence.dem_battlegrounds} VP`) dem_vp += presence.dem_battlegrounds } else { - log('No battlegrounds') + logi('No battlegrounds') } - log(`Total: +${dem_vp} VP`) + logi(`Total: +${dem_vp} VP`) } else { - log('No presence: 0 VP') + logi('No presence: 0 VP') } } @@ -2805,9 +2805,9 @@ function score_country(country) { let change_vp = dem_vp + com_vp game.vp += change_vp if (change_vp > 0 ) { - log_gap(`Final change VP: +${change_vp} VP`) + log_gap(`Scoring: +${change_vp} VP`) } else { - log_gap(`Final change VP: ${change_vp} VP`) + log_gap(`Scoring: ${change_vp} VP`) } } @@ -5864,6 +5864,7 @@ states.vm_brought_in_for_questioning = { } goto_vm(game.vm_event) } else { + log('Event does not occur') game.return = DEM vm_return() } -- cgit v1.2.3