May 2022 Magic Hatching Potions and Quest Bundle (#13979)

* May 2022 magic hatching potions and quest bundle

* fix(string): typo

* fix(content): add and use event

Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
Natalie L
2022-05-17 10:32:50 -04:00
committed by GitHub
parent aa2458d564
commit 4e78d72cee
5 changed files with 25 additions and 18 deletions

View File

@@ -96,13 +96,13 @@ const premium = {
value: 2,
text: t('hatchingPotionFloral'),
limited: true,
event: EVENTS.potions202105,
event: EVENTS.potions202205,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMay'),
previousDate: t('mayYYYY', { year: 2019 }),
previousDate: t('mayYYYY', { year: 2021 }),
}),
canBuy () {
return moment().isBefore(EVENTS.potions202105.end);
return moment().isBefore(EVENTS.potions202205.end);
},
},
Aquatic: {
@@ -297,12 +297,13 @@ const premium = {
value: 2,
text: t('hatchingPotionSunshine'),
limited: true,
event: EVENTS.potions202205,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMay'),
previousDate: t('mayYYYY', { year: 2019 }),
previousDate: t('mayYYYY', { year: 2020 }),
}),
canBuy () {
return moment().isBefore('2020-06-02');
return moment().isBefore(EVENTS.potions202205.end);
},
},
Bronze: {