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-01 13:48:17 +0000 |
commit | 63ad1be3add6374185139d2798cb6d07dedb1c68 (patch) | |
tree | efd1d5e87c6c502e88e46c49076bdeaea606c4d9 /rules.js | |
parent | 051b5d19a9420a7c60db6c6e97cd165c32cecc49 (diff) | |
download | 1989-dawn-of-freedom-63ad1be3add6374185139d2798cb6d07dedb1c68.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() } |