summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ],
]