summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-28 18:44:25 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-28 18:44:25 +0100
commit550050be34dc10be600e43f3206945fff59ac1e9 (patch)
tree44baf0fff18fb08b25e4447b7f3b4c6214b9b562
parent79d412c45eaee14a1dc2ce0cbedd5f60a05b50d3 (diff)
download1989-dawn-of-freedom-550050be34dc10be600e43f3206945fff59ac1e9.tar.gz
Fix workers' revolt
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index de8196e..676cc11 100644
--- a/rules.js
+++ b/rules.js
@@ -7609,7 +7609,7 @@ states.vm_workers_revolt_finish = {
clear_undo()
let roll = Math.floor(Math.random() * 6) + 1
log(`Rolled a ${roll}`)
- let adj = count_adj(spaces[game.selected].name_unique)
+ let adj = count_adj(spaces[game.selected_space].name_unique)
if (game.active === DEM) {
log(`-${adj.com_adj} from opponent controlled spaces`)
roll -= adj.com_adj