summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:04:58 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 17:04:58 +0100
commit31f9a93d2b8c05c90b994395ced4db1d1db819d3 (patch)
tree00e3284d75e1ae56a14de79a472a24f6e228a5f7
parent674b010505c1e1f15d950cffcd7b1dbf7ab4ce9a (diff)
download1989-dawn-of-freedom-31f9a93d2b8c05c90b994395ced4db1d1db819d3.tar.gz
Debug step for Shock Therapy
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d69cc5a..eadc9a5 100644
--- a/rules.js
+++ b/rules.js
@@ -6641,6 +6641,7 @@ 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 && space.country === game.vm_active_country && space.comCtrl === 1 && (space.socio === 3 || space.socio === 4)) {
game.temp++