From 2a06c345a059cbc066cfce63cbe0946ba12e7dd5 Mon Sep 17 00:00:00 2001 From: Mor Date: Fri, 12 Jan 2024 20:46:06 +0200 Subject: [PATCH] fix: picnic stowaway repeatable quest is now count as complete if character has reached "Live-Action Entertainment" quest --- components/account/Misc/WorldQuest.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/account/Misc/WorldQuest.js b/components/account/Misc/WorldQuest.js index e6613e201..02bdae44a 100644 --- a/components/account/Misc/WorldQuest.js +++ b/components/account/Misc/WorldQuest.js @@ -32,7 +32,6 @@ const WorldQuest = ({ quests, characters, totalCharacters, worldName }) => { return null; } } - return ( { }} alt=""/> {quests?.[worldName].map((npc, index) => { + let forceCompletion; + if (npc?.name === 'Picnic_Stowaway') { + const repeatable = npc?.npcQuests?.find(({ Name }) => Name === 'Live-Action_Entertainment'); + forceCompletion = repeatable?.completed?.length === totalCharacters ? 1 : 0; + } return }> {cleanUnderscore(npc?.name)} - {getQuestIndicator(npc?.questsStatus)} + {getQuestIndicator(forceCompletion || npc?.questsStatus)} @@ -93,7 +97,6 @@ const WorldQuest = ({ quests, characters, totalCharacters, worldName }) => { })} - })}