diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-17 08:10:03 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-17 08:10:03 +0100 |
commit | 4fafa995e4f76e7fe50e4218b9d97cadcd72bbb0 (patch) | |
tree | 34286f4acc39d37ef76f1746ec37b1255e6ea1ac | |
parent | 7005b80acceff6bf0456961a0ef8f451e59e279f (diff) | |
download | 1989-dawn-of-freedom-4fafa995e4f76e7fe50e4218b9d97cadcd72bbb0.tar.gz |
Updates to scoring
-rw-r--r-- | rules.js | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -2657,14 +2657,10 @@ function score_country(country) { }
}
- log(`${status}`)
- log(`${presence.dem_battlegrounds} Democrat battlegrounds`)
- log(`${presence.com_battlegrounds} Communist battlegrounds`)
-
let dem_vp = 0
- if (presence.dem_spaces > 0) {dem_vp += value}
- if (presence.dem_domination) {dem_vp += value}
+ if (presence.dem_spaces > 0) {dem_vp += value_presence}
+ if (presence.dem_domination) {dem_vp += value_presence}
if (presence.dem_control && country !== "Hungary") {
dem_vp += value
}
@@ -2672,9 +2668,9 @@ function score_country(country) { dem_vp += presence.dem_battlegrounds
let com_vp = 0
- if (presence.com_spaces > 0) {com_vp += value}
- if (presence.com_domination) {com_vp += value}
- if (presence.com_control && country !== "Hungary") {com_vp += value}
+ if (presence.com_spaces > 0) {com_vp += value_presence}
+ if (presence.com_domination) {com_vp += value_presence}
+ if (presence.com_control && country !== "Hungary") {com_vp += value_presence}
else if (presence.com_control && country === "Hungary") {com_vp += 2}
com_vp += presence.com_battlegrounds
let change_vp = dem_vp - com_vp
|