From c8b701953f1b0a6349d738895df738d4899ab1f5 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 24 Oct 2024 19:53:51 +0100 Subject: Fix for Power Struggle incorrectly showing NYE Party --- rules.js | 6 +++--- 1 file 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() } } -- cgit v1.2.3