summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 14:41:02 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 14:41:02 +0100
commitef8afd9623723dd6ec0646e77bdd05fb1c523b7f (patch)
treea1b14c30946ae2195ffd8be16f6f9c7d278d8805 /rules.js
parentc610ee2ed39c074a8f80c767ecb1d0ae0cc69de8 (diff)
download1989-dawn-of-freedom-ef8afd9623723dd6ec0646e77bdd05fb1c523b7f.tar.gz
Updates to log for scoring
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js15
1 files 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']){