summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-30 13:58:55 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-30 13:58:55 +0100
commitb894db6ba236e18018fbc76571bff56972386ef9 (patch)
tree9c77438ce91f8e9cacf99f50bc2cd7ee2dee2faf
parent4d406adeac2e3a4d70fca74771f200f851fd400d (diff)
download1989-dawn-of-freedom-b894db6ba236e18018fbc76571bff56972386ef9.tar.gz
Fix scoring
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5aa5f58..ff590ed 100644
--- a/rules.js
+++ b/rules.js
@@ -1715,7 +1715,7 @@ states.final_scoring_held = {
},
bonus() {
console.log('game.revolutions: ', game.revolutions)
- const held_countries = game.revolutions.filter(value => value === false).length
+ const held_countries = Object.values(game.revolutions).filter(value => value === false).length
let vp_gain = 4*held_countries
log(`Communist holds ${held_countries} countries: gains ${vp_gain} VP`)
game.vp -= 4*held_countries