WIP(customizations): animal bits

This commit is contained in:
Sabe Jones
2024-02-29 15:59:31 -06:00
parent 28fef8df86
commit ecc8a65d28
2 changed files with 19 additions and 3 deletions

View File

@@ -677,15 +677,31 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
const animalEarsCategory = {
identifier: 'animalEars',
text: i18n.t('animalEars', language),
items: [],
};
animalEarsCategory.items = values(content.gear.tree.headAccessory.special)
.filter(gearItem => {
const { owned } = user.items.gear;
if (typeof owned[gearItem.key] !== 'undefined') {
return false;
}
return gearItem.gearSet === 'animal';
})
.map(gearItem => getItemInfo(user, 'gear', gearItem, officialPinnedItems, language));
categories.push(animalEarsCategory);
const animalTailsCategory = {
identifier: 'animalTails',
text: i18n.t('animalTails', language),
items: [],
};
animalTailsCategory.items = values(content.gear.tree.back.special)
.filter(gearItem => {
const { owned } = user.items.gear;
if (typeof owned[gearItem.key] !== 'undefined') {
return false;
}
return gearItem.gearSet === 'animal';
})
.map(gearItem => getItemInfo(user, 'gear', gearItem, officialPinnedItems, language));
categories.push(animalTailsCategory);
const shirtsCategory = {