Skip to content

Commit

Permalink
fix: picnic stowaway repeatable quest is now count as complete if cha…
Browse files Browse the repository at this point in the history
…racter has reached "Live-Action Entertainment" quest
  • Loading branch information
Morta1 committed Jan 12, 2024
1 parent 1b79354 commit 2a06c34
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/account/Misc/WorldQuest.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const WorldQuest = ({ quests, characters, totalCharacters, worldName }) => {
return null;
}
}

return (
<Box sx={{ width: { xs: 350, sm: 400 } }}>
<WorldBg src={`${prefix}npcs/${worldName}.png`}
Expand All @@ -42,11 +41,16 @@ const WorldQuest = ({ quests, characters, totalCharacters, worldName }) => {
}}
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 <StyledAccordion key={npc?.name + index} TransitionProps={{ unmountOnExit: true }}>
<AccordionSummary expandIcon={<ExpandMoreIcon/>}>
<img width={50} height={50} src={`${prefix}npcs/${npc?.name}.gif`} alt=""/>
<span className={'npc-name'}>{cleanUnderscore(npc?.name)}</span>
{getQuestIndicator(npc?.questsStatus)}
{getQuestIndicator(forceCompletion || npc?.questsStatus)}
</AccordionSummary>
<StyledAccordionDetails>
<Timeline sx={{ m: 0, p: 0 }}>
Expand Down Expand Up @@ -93,7 +97,6 @@ const WorldQuest = ({ quests, characters, totalCharacters, worldName }) => {
</TimelineItem>
})}
</Timeline>

</StyledAccordionDetails>
</StyledAccordion>
})}
Expand Down

1 comment on commit 2a06c34

@vercel
Copy link

@vercel vercel bot commented on 2a06c34 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

idleon-toolbox-beta – ./

idleon-toolbox-beta-git-main-morta1.vercel.app
idleon-toolbox-beta.vercel.app
idleon-toolbox-beta-morta1.vercel.app

Please sign in to comment.