From 2c4b757ecdde3ba77547c369500e3a2bb3b80424 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 17:24:51 +0100 Subject: Fix Shock Therapy roll --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 61a12de..182b59f 100644 --- a/rules.js +++ b/rules.js @@ -6640,12 +6640,12 @@ states.vm_shock_therapy = { roll() { clear_undo() let roll = Math.floor(Math.random() * 6) + 1 - log(`Rolled a ${roll}`) for (let space of game.pieces) { 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(`Rolled a ${roll}`) log(`-${game.temp} from Communist controlled Worker and Farmer spaces`) log(`Modified roll: ${roll - game.temp}`) if ((roll - game.temp) > 2) { -- cgit v1.2.3