summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:07:32 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:07:32 +0100
commit7219d51d45b065a9cd9d9dcec7f7459cd5e3317a (patch)
tree563a7282d53956ed9d68a8a0cddec990f902b785
parent31f9a93d2b8c05c90b994395ced4db1d1db819d3 (diff)
download1989-dawn-of-freedom-7219d51d45b065a9cd9d9dcec7f7459cd5e3317a.tar.gz
Fix for Shock Therapy country
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index eadc9a5..5d8982c 100644
--- a/rules.js
+++ b/rules.js
@@ -6643,7 +6643,8 @@ states.vm_shock_therapy = {
log(`Rolled a ${roll}`)
console.log('game.pieces', game.pieces)
for (let space of game.pieces) {
- if (space && space.country === game.vm_active_country && space.comCtrl === 1 && (space.socio === 3 || space.socio === 4)) {
+
+ if (space && spaces[space.space_id].country === game.vm_active_country && space.comCtrl === 1 && (space.socio === 3 || space.socio === 4)) {
game.temp++
}
}