mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-17 17:32:22 +00:00
refactor(potions): also de-hardcode Veggie Potion
This commit is contained in:
parent
b5497b149b
commit
344280d124
1 changed files with 2 additions and 2 deletions
|
|
@ -449,13 +449,13 @@ const wacky = {
|
|||
Veggie: {
|
||||
text: t('hatchingPotionVeggie'),
|
||||
limited: true,
|
||||
event: EVENTS.spring2020,
|
||||
event: EVENTS.spring2021,
|
||||
_addlNotes: t('eventAvailabilityReturning', {
|
||||
availableDate: t('dateEndMarch'),
|
||||
previousDate: t('marchYYYY', { year: 2019 }),
|
||||
}),
|
||||
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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue