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