mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
make market return unlocked quest potions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user