mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Content and fixes 2017-10-05 (#9165)
* fix(market): display classless equipment * fix(challenges): more missing Markdown * feat(content): backgrounds and Enchanted Armoire 2017-10 * chore(sprites): compile
This commit is contained in:
@@ -165,6 +165,23 @@ shops.getMarketGearCategories = function getMarketGear (user, language) {
|
||||
categories.push(category);
|
||||
}
|
||||
|
||||
let nonClassCategory = {
|
||||
identifier: 'none',
|
||||
text: i18n.t('none', language),
|
||||
};
|
||||
|
||||
let falseGear = filter(content.gear.flat, (gear) => {
|
||||
return user.items.gear.owned[gear.key] === false && gear.klass !== user.stats.class;
|
||||
});
|
||||
|
||||
nonClassCategory.items = map(falseGear, (e) => {
|
||||
let newItem = getItemInfo(user, 'marketGear', e);
|
||||
|
||||
return newItem;
|
||||
});
|
||||
|
||||
categories.push(nonClassCategory);
|
||||
|
||||
return categories;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user