fix showing seasonal gear in market

This commit is contained in:
Phillip Thelen
2024-05-17 10:03:53 +02:00
parent 6e5b13668a
commit b697598d75
3 changed files with 56 additions and 545 deletions

View File

@@ -151,18 +151,11 @@ shops.getMarketGearCategories = function getMarketGear (user, language) {
const result = filter(content.gear.flat, gearItem => {
if (gearItem.klass === classType) return true;
if (gearItem.season) return false;
const classShift = {
items: user.items,
stats: {
class: classType,
},
};
if (
gearItem.specialClass === classType
&& user.items.gear.owned[gearItem.key] !== false
&& gearItem.set === pinnedSets[gearItem.specialClass]
) return gearItem.canOwn(classShift);
) return true;
return false;
});