From f03bff31357b1708035ef2956825d1716c08d442 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 17:20:07 +0100 Subject: Fix Shock Therapy add infl --- rules.js | 6 +----- 1 file changed, 1 insertion(+), 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 ], ] -- cgit v1.2.3