summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-24 19:53:51 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-24 19:53:51 +0100
commitc8b701953f1b0a6349d738895df738d4899ab1f5 (patch)
tree606527d2c319365b9a0febcdf9b4b3eb17022ebc
parent61cccf6066db2628b151c185d875381575dfb422 (diff)
download1989-dawn-of-freedom-c8b701953f1b0a6349d738895df738d4899ab1f5.tar.gz
Fix for Power Struggle incorrectly showing NYE Party
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 3c927eb..91818c9 100644
--- a/rules.js
+++ b/rules.js
@@ -1576,7 +1576,7 @@ states.power_struggle = {
states.support_loss ={
inactive: 'do Support Loss.',
prompt () {
- if (!game.vm_event === 104) {
+ if (!game.persistent_events.includes(111)) {
if (game.phase === 0) {
view.prompt = 'You lost the Power Struggle. Roll a die for Support Loss.'
gen_action('roll')
@@ -1675,7 +1675,7 @@ states.support_loss ={
states.vp_roll = {
inactive: 'do VP Roll.',
prompt () {
- if (!game.vm_event === 104) {
+ if (!game.persistent_events.includes(111)) {
if (game.phase === 0) {
view.prompt = `Power Struggle - ${country_name(game.pwr_struggle_in)}: roll a die for Victory.`
gen_action('roll')
@@ -8192,7 +8192,7 @@ states.vm_social_democratic_platform_adopted = {
},
pass() {
log('Passed')
- vm_return()
+ vm_return()
}
}