refactor(potions): also de-hardcode Veggie Potion

This commit is contained in:
Sabe Jones
2021-04-13 15:19:44 -05:00
parent b5497b149b
commit 344280d124

View File

@@ -449,13 +449,13 @@ const wacky = {
Veggie: { Veggie: {
text: t('hatchingPotionVeggie'), text: t('hatchingPotionVeggie'),
limited: true, limited: true,
event: EVENTS.spring2020, event: EVENTS.spring2021,
_addlNotes: t('eventAvailabilityReturning', { _addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'), availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2019 }), previousDate: t('marchYYYY', { year: 2019 }),
}), }),
canBuy () { canBuy () {
return moment().isBetween('2021-04-01T08:00-05:00', '2021-04-30T20:00-05:00'); return moment().isBetween('2021-04-01T08:00-05:00', EVENTS.spring2021.end);
}, },
}, },
Dessert: { Dessert: {