chore(content): add Porcelain Magic Hatching Potion (#14168)

* chore(submodule): add August 2022 Mystery Items

* chore: update habitica-images

* chore(content): add Porcelain Magic Hatching Potion

* chore(content): update moonglow potion availability

* fix(events): no gap between events

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
Natalie L
2022-08-15 16:14:23 -04:00
committed by GitHub
parent d3a91aab72
commit f0b5637e9e
5 changed files with 210 additions and 11 deletions

View File

@@ -9,12 +9,18 @@ const gemsPromo = {
};
export const EVENTS = {
noCurrentEventAfter: {
start: '2022-09-30T20:00-04:00',
noCurrentEvent: {
start: '2022-08-31T20:00-04:00',
end: '2022-12-21T08:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
potions202208: {
start: '2022-08-16T08:00-04:00',
end: '2022-08-31T20:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
bundle202208: {
start: '2022-08-09T08:00-04:00',
end: '2022-09-30T20:00-04:00',
@@ -28,12 +34,6 @@ export const EVENTS = {
npcImageSuffix: '_summer',
gear: true,
},
noCurrentEvent: {
start: '2022-04-30T20:00-04:00',
end: '2022-06-21T08:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
bundle202206: {
start:'2022-06-14T08:00-04:00',
end:'2022-06-30T20:00-04:00',

View File

@@ -503,12 +503,13 @@ const premium = {
value: 2,
text: t('hatchingPotionMoonglow'),
limited: true,
event: EVENTS.potions202108,
event: EVENTS.potions202208,
_addlNotes: t('premiumPotionAddlNotes', {
date: t('dateEndAugust'),
previousDate: t('augustYYYY', { year: 2021 }),
}),
canBuy () {
return moment().isBetween(EVENTS.potions202108.start, EVENTS.potions202108.end);
return moment().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end);
},
},
SolarSystem: {
@@ -525,6 +526,18 @@ const premium = {
canBuy: hasQuestAchievementFunction('onyx'),
_addlNotes: t('premiumPotionUnlimitedNotes'),
},
Porcelain: {
value: 2,
text: t('hatchingPotionPorcelain'),
limited: true,
event: EVENTS.potions202208,
_addlNotes: t('premiumPotionAddlNotes', {
date: t('dateEndAugust'),
}),
canBuy () {
return moment().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end);
},
},
};
const wacky = {