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:
Sabe Jones
2017-10-05 19:00:39 -05:00
committed by GitHub
parent f1ec8bbf2c
commit 3503b307b2
112 changed files with 32507 additions and 32236 deletions

View File

@@ -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;
};