summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-21 13:04:03 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-21 13:04:03 +0000
commit7fca67b976e84313e894e0c685f49230891db0d4 (patch)
tree81d737bcb5a39c222b682836979cab9b14dbe557 /rules.js
parent7f6752369cbe51c53fe165650888db0a5d10605d (diff)
download1989-dawn-of-freedom-7fca67b976e84313e894e0c685f49230891db0d4.tar.gz
Tweak Raise the Stakes prompts
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files 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