mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(time-travelers): add countdowns
This commit is contained in:
@@ -381,6 +381,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
|
|||||||
}
|
}
|
||||||
|
|
||||||
const sets = content.timeTravelerStore(user, new Date());
|
const sets = content.timeTravelerStore(user, new Date());
|
||||||
|
const availabilityMatchers = getScheduleMatchingGroup('timeTravelers');
|
||||||
for (const setKey of Object.keys(sets)) {
|
for (const setKey of Object.keys(sets)) {
|
||||||
const set = sets[setKey];
|
const set = sets[setKey];
|
||||||
const category = {
|
const category = {
|
||||||
@@ -389,6 +390,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
|
|||||||
path: `mystery.${set.key}`,
|
path: `mystery.${set.key}`,
|
||||||
pinType: 'mystery_set',
|
pinType: 'mystery_set',
|
||||||
purchaseAll: true,
|
purchaseAll: true,
|
||||||
|
end: Number(set.key) < 300000 ? availabilityMatchers.end : null,
|
||||||
};
|
};
|
||||||
|
|
||||||
category.items = map(set.items, item => ({
|
category.items = map(set.items, item => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user