summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:20:07 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:20:07 +0100
commitf03bff31357b1708035ef2956825d1716c08d442 (patch)
tree0a439fffe20177575063a56354d02144c43e783a
parentee15a55e66df29d14aec762d5cd585119325189f (diff)
download1989-dawn-of-freedom-f03bff31357b1708035ef2956825d1716c08d442.tar.gz
Fix Shock Therapy add infl
-rw-r--r--rules.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 8880589..61a12de 100644
--- a/rules.js
+++ b/rules.js
@@ -6641,15 +6641,11 @@ states.vm_shock_therapy = {
clear_undo()
let roll = Math.floor(Math.random() * 6) + 1
log(`Rolled a ${roll}`)
- console.log('game.pieces', game.pieces)
for (let space of game.pieces) {
- if (space) {
- console.log('checking space', spaces[space.space_id].country, game.vm_active_country, space.comCtrl, space.socio )
if (space && spaces[space.space_id].country === game.vm_active_country && space.comCtrl === 1 && (spaces[space.space_id].socio === 3 || spaces[space.space_id].socio === 4)) {
game.temp++
}
}
- }
log(`-${game.temp} from Communist controlled Worker and Farmer spaces`)
log(`Modified roll: ${roll - game.temp}`)
if ((roll - game.temp) > 2) {
@@ -8036,7 +8032,7 @@ CODE[93] = [ // Shock Therapy*
[ vm_shock_therapy ],
[ vm_valid_spaces_country ],
[ vm_prompt, ()=>` to ${country_name(game.vm_active_country)}` ],
- [ vm_add_infl, 3 ],
+ [ vm_add_infl_free, 3 ],
[ vm_permanently_remove ],
[ vm_return ],
]