mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
refactor(potions): also de-hardcode Veggie Potion
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user