chore(content): add 2022 Fall Festival (#14244)

* chore(submodule): add August 2022 Mystery Items

* update(content): add 2022 Fall Festival content

* update(content): add 2022 Fall Festival content

* update(content): update event dates for release

* fix(lint): remove extra spaces
also correct typo in gear string keys

* feat(content): remaining descriptions

* fix(event): correct spell availability

* fix(test): work around first-match logic

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
Natalie L
2022-09-19 17:55:53 -04:00
committed by GitHub
parent 2c29310466
commit f030135c82
11 changed files with 310 additions and 29 deletions

View File

@@ -161,13 +161,13 @@ const premium = {
value: 2,
text: t('hatchingPotionGhost'),
limited: true,
event: EVENTS.fall2020,
event: EVENTS.fall2022,
canBuy () {
return moment().isBefore('2020-11-02');
return moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end);
},
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndOctober'),
previousDate: t('septemberYYYY', { year: 2018 }),
previousDate: t('novemberYYYY', { year: 2020 }),
}),
},
Holly: {
@@ -337,13 +337,13 @@ const premium = {
value: 2,
text: t('hatchingPotionShadow'),
limited: true,
event: EVENTS.fall2020,
event: EVENTS.fall2022,
canBuy () {
return moment().isBefore('2020-11-02');
return moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end);
},
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndOctober'),
previousDate: t('septemberYYYY', { year: 2019 }),
previousDate: t('novemberYYYY', { year: 2020 }),
}),
},
Amber: {
@@ -424,13 +424,13 @@ const premium = {
value: 2,
text: t('hatchingPotionVampire'),
limited: true,
event: EVENTS.fall2021,
event: EVENTS.fall2022,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndOctober'),
previousDate: t('septemberYYYY', { year: 2020 }),
previousDate: t('octoberYYYY', { year: 2021 }),
}),
canBuy () {
return moment().isBefore(EVENTS.fall2021.end);
return moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end);
},
},
AutumnLeaf: {