Merge branch 'sabrecat/cshop' into subs-private

This commit is contained in:
Sabe Jones
2024-04-23 10:52:05 -05:00
5 changed files with 18 additions and 9 deletions
+4 -2
View File
@@ -8,6 +8,8 @@ import isPinned from './isPinned';
import isFreeRebirth from './isFreeRebirth';
import getOfficialPinnedItems from './getOfficialPinnedItems';
import { ALWAYS_AVAILABLE_CUSTOMIZATIONS } from '../content/constants/schedule';
function lockQuest (quest, user) {
// checks series quests, including Masterclasser
if (quest.prereqQuests) {
@@ -490,8 +492,8 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
throw new BadRequest(i18n.t('wrongItemType', { type }, language));
}
if (matcher) {
itemInfo.end = { matcher };
if (matcher && (!itemInfo.set || ALWAYS_AVAILABLE_CUSTOMIZATIONS.indexOf(itemInfo.set.key) === -1)) {
itemInfo.end = matcher.end;
}
return itemInfo;
+3
View File
@@ -582,6 +582,7 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
bg,
officialPinnedItems,
language,
matchers,
);
backgroundCategory.items.push(item);
}
@@ -617,6 +618,7 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
hairStyle,
officialPinnedItems,
language,
hairType === 'color' ? customizationMatcher : null,
);
category.items.push(item);
}
@@ -642,6 +644,7 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
appearance,
officialPinnedItems,
language,
type === 'skin' ? customizationMatcher : null,
);
category.items.push(item);
}