diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-01 13:48:17 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-02 08:22:06 +0000 |
commit | 3ad232feb826c3d65384871bb27e73f199a819f9 (patch) | |
tree | 8d6262ef85df001a05c7f738c4a2a77003125449 /rules.js | |
parent | b08cdc4fd508e615ecd3563614575dc54c90e93f (diff) | |
download | 1989-dawn-of-freedom-3ad232feb826c3d65384871bb27e73f199a819f9.tar.gz |
Improve log
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -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() } |