WIP(timetrav): buy BG with Hourglass

This commit is contained in:
Sabe Jones
2020-01-03 12:50:13 -06:00
parent cf7c9160fd
commit e8edc9669a
36 changed files with 101 additions and 28 deletions

View File

@@ -326,6 +326,25 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
}
categories.push(questCategory);
const backgroundCategory = {
identifier: 'backgrounds',
text: i18n.t('backgrounds', language),
items: [],
};
for (const bg in content.backgrounds.timeTravelBackgrounds) {
if (!user.purchased.background[bg]) {
const item = getItemInfo(
user,
'background',
content.backgroundsFlat[bg],
officialPinnedItems,
language,
);
backgroundCategory.items.push(item);
}
}
categories.push(backgroundCategory);
for (const type of Object.keys(stable)) {
const category = {
identifier: type,