summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-22 08:52:03 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-22 08:52:03 +0100
commit5414ec5ddc79ebe4ba907e8fa6dbed3d03652c35 (patch)
tree91b886484fd3b8c2105d6487bba51df7ce818774 /rules.js
parent678679c0e323c46d48246544c1c6140d917208d6 (diff)
download1989-dawn-of-freedom-5414ec5ddc79ebe4ba907e8fa6dbed3d03652c35.tar.gz
Fix Crowd Against Ceausescu ops
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 3acd949..0fd683a 100644
--- a/rules.js
+++ b/rules.js
@@ -1052,7 +1052,7 @@ states.the_crowd_turns_against_ceausescu_prep = {
console.log('game.ceausescu_cards', game.ceausescu_cards)
game.temp = game.ceausescu_cards.filter(card => card && card >=25 && card <= 30).length
log(`Drew ${pluralize(game.temp, 'Rally in the Square')}.`)
- game.temp = game.temp * 3
+ game.vm_available_ops = game.temp * 3
game.state = 'the_crowd_turns_against_ceausescu'
}
}
@@ -1084,21 +1084,20 @@ states.the_crowd_turns_against_ceausescu = {
states.the_crowd_turns_against_ceausescu_infl = {
inactive: 'add influence.',
prompt () {
- if (game.temp === 0)
+ if (game.vm_available_ops === 0)
{
view.prompt = 'Place influence: done.';
gen_action("done");
return;
}
- view.prompt = `Add influence: ${game.temp} remaining`
+ view.prompt = `Add influence: ${game.vm_available_ops} remaining`
for (let space of game.valid_spaces) {
gen_action_infl(spaces[space].name_unique)
}
},
infl(space) {
- add_infl(space)
- game.temp --
+ vm_do_add_infl(space)
},
done() {
if (game.return !== game.active) {