From 7fca67b976e84313e894e0c685f49230891db0d4 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 21 Nov 2024 13:04:03 +0000 Subject: Tweak Raise the Stakes prompts --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 279d191..4d5fb23 100644 --- a/rules.js +++ b/rules.js @@ -1139,7 +1139,7 @@ states.the_crowd_turns_against_ceausescu_infl = { states.raise_stakes_1 = { inactive: 'raise the stakes.', prompt () { - if ((game.active === DEM && game.dem_pwr_hand < 3) || (game.active === COM && game.com_pwr_hand < 3)) { + if ((game.active === DEM && game.dem_pwr_hand.length < 3) || (game.active === COM && game.com_pwr_hand.length < 3)) { view.prompt = 'Raise the stakes: you must pass.' gen_action('pass') } @@ -1198,7 +1198,7 @@ states.raise_stakes_1 = { states.raise_stakes_2 = { inactive: 'raise the stakes.', prompt () { - if ((game.active === DEM && game.dem_pwr_hand < 3) || (game.active === COM && game.com_pwr_hand < 3)) { + if ((game.active === DEM && game.dem_pwr_hand.length < 3) || (game.active === COM && game.com_pwr_hand.length < 3)) { view.prompt = 'Raise the stakes: you must pass.' gen_action('pass') return -- cgit v1.2.3