make market return unlocked quest potions

This commit is contained in:
Phillip Thelen
2024-05-21 15:39:59 +02:00
parent 5b5d5a39a4
commit 42cafbeaab
3 changed files with 31 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ shops.getMarketCategories = function getMarket (user, language) {
const matchers = getScheduleMatchingGroup('premiumHatchingPotions');
premiumHatchingPotionsCategory.items = sortBy(values(content.hatchingPotions)
.filter(hp => hp.limited
&& matchers.match(hp.key))
&& (matchers.match(hp.key) || (hp.questPotion === true && hp.canBuy(user))))
.map(premiumHatchingPotion => getItemInfo(user, 'premiumHatchingPotion', premiumHatchingPotion, officialPinnedItems, language, matchers)), 'key');
if (premiumHatchingPotionsCategory.items.length > 0) {
categories.push(premiumHatchingPotionsCategory);