Fix featured items

This commit is contained in:
Phillip Thelen
2024-05-15 12:05:30 +02:00
parent f3fc14bd53
commit fe697898ee
7 changed files with 27 additions and 16 deletions
@@ -41,7 +41,19 @@ const featuredItems = {
});
return featured;
},
seasonal: 'spring2019CloudRogueSet',
seasonal () {
const featured = [];
const itemKeys = getScheduleMatchingGroup('premiumHatchingPotions').items;
itemKeys.forEach(itemKey => {
if (featured.length < 4) {
featured.push({
type: 'premiumHatchingPotion',
path: `premiumHatchingPotions.${itemKey}`,
});
}
});
return featured;
},
timeTravelers: [
// TODO
],