mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
WIP(timetrav): buy BG with Hourglass
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user