mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user