summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:24:51 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:24:51 +0100
commit2c4b757ecdde3ba77547c369500e3a2bb3b80424 (patch)
tree2296504a7bcff1857e4468f1d5fbf954e2821a3d
parentf03bff31357b1708035ef2956825d1716c08d442 (diff)
download1989-dawn-of-freedom-2c4b757ecdde3ba77547c369500e3a2bb3b80424.tar.gz
Fix Shock Therapy roll
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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) {