diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-28 18:43:12 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-28 18:43:12 +0100 |
commit | 79d412c45eaee14a1dc2ce0cbedd5f60a05b50d3 (patch) | |
tree | 6ade538035a64fccedb94f37b6cec37aacadc2da | |
parent | 3da222b93d1a6e1c35cb4739dee962c7dcec233c (diff) | |
download | 1989-dawn-of-freedom-79d412c45eaee14a1dc2ce0cbedd5f60a05b50d3.tar.gz |
Fix workers' revolt
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -7596,8 +7596,8 @@ states.vm_workers_revolt_finish = { return `resolve ${cards[game.played_card].name}.`
},
prompt() {
- if (game.temp > 0) {
- view.prompt = `Target: ${spaces[game.temp].name}. Roll a die.`
+ if (game.selected_space > 0) {
+ view.prompt = `Target: ${spaces[game.selected_space].name}. Roll a die.`
gen_action('roll')
} else {
view.prompt = 'Workers Revolt: done.'
@@ -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.temp].name_unique)
+ let adj = count_adj(spaces[game.selected].name_unique)
if (game.active === DEM) {
log(`-${adj.com_adj} from opponent controlled spaces`)
roll -= adj.com_adj
@@ -7621,7 +7621,7 @@ states.vm_workers_revolt_finish = { log('Workers Revolt successful')
vm_replace_all_infl(game.temp)
} else {log('Workers Revolt fails')}
- game.temp = 0
+ game.selected_space = 0
},
done() {
vm_next()
|