From 5414ec5ddc79ebe4ba907e8fa6dbed3d03652c35 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 22 Sep 2024 08:52:03 +0100 Subject: Fix Crowd Against Ceausescu ops --- rules.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rules.js') 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) { -- cgit v1.2.3