Add checkmark to completed quests in shop (#14269)

* add 'completed' property to quest items

* show checkmark on completed quests in the shop

* add 'completed' property to quest items

* show checkmark on completed quests in the shop
This commit is contained in:
Sky Chrastina
2022-10-12 14:44:22 -06:00
committed by GitHub
parent 39be8db4f9
commit f43a0d8289
2 changed files with 19 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
? content.quests[item.previous].text(language)
: null,
unlockCondition: item.unlockCondition,
completed: user.achievements.quests[item.key] !== undefined,
drop: item.drop,
boss: item.boss,
collect: item.collect ? _mapValues(item.collect, o => ({