diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 17:24:51 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 17:24:51 +0100 |
commit | 2c4b757ecdde3ba77547c369500e3a2bb3b80424 (patch) | |
tree | 2296504a7bcff1857e4468f1d5fbf954e2821a3d | |
parent | f03bff31357b1708035ef2956825d1716c08d442 (diff) | |
download | 1989-dawn-of-freedom-2c4b757ecdde3ba77547c369500e3a2bb3b80424.tar.gz |
Fix Shock Therapy roll
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) {
|