feat(content): add August Pet Quest Bundles and Magic Hatching Potions (#14786)

* feat(content): add June subscriber items

* feat(content): add August pet quest bundle and magic hatching potions

* fix(time): updated start time to 0800EDT

* fix(content): correct start date for potions

---------

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
Natalie L
2023-08-14 15:37:42 -04:00
committed by GitHub
parent b679cfb935
commit d564944507
4 changed files with 31 additions and 23 deletions

View File

@@ -102,7 +102,7 @@ const bundles = {
'butterfly', 'butterfly',
], ],
canBuy () { canBuy () {
return moment().isBetween('2020-03-09', '2020-04-02'); return moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end);
}, },
type: 'quests', type: 'quests',
value: 7, value: 7,

View File

@@ -11,10 +11,18 @@ const gemsPromo = {
export const EVENTS = { export const EVENTS = {
noEvent: { noEvent: {
start: '2023-08-01T23:59-04:00', start: '2023-08-01T23:59-04:00',
end: '2023-08-31T08:00-04:00', end: '2023-08-10T08:00-04:00',
season: 'normal', season: 'normal',
npcImageSuffix: '', npcImageSuffix: '',
}, },
bundle202308: {
start: '2023-08-15T08:00-04:00',
end: '2023-08-31T23:59-04:00',
},
potions202308: {
start: '2023-08-15T08:00-04:00',
end: '2023-08-31T23:59-04:00',
},
summer2023: { summer2023: {
start: '2023-06-20T08:00-04:00', start: '2023-06-20T08:00-04:00',
end: '2023-07-31T23:59-04:00', end: '2023-07-31T23:59-04:00',

View File

@@ -140,13 +140,13 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionThunderstorm'), text: t('hatchingPotionThunderstorm'),
limited: true, limited: true,
event: EVENTS.bundle202211, event: EVENTS.potions202308,
_addlNotes: t('eventAvailabilityReturning', { _addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndNovember'), availableDate: t('dateEndAugust'),
previousDate: t('novemberYYYY', { year: 2021 }), previousDate: t('novemberYYYY', { year: 2022 }),
}), }),
canBuy () { canBuy () {
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end);
}, },
}, },
Spooky: { Spooky: {
@@ -542,13 +542,13 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionPorcelain'), text: t('hatchingPotionPorcelain'),
limited: true, limited: true,
event: EVENTS.birthday10, event: EVENTS.potions202308,
_addlNotes: t('eventAvailabilityReturning', { _addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateStartFebruary'), availableDate: t('dateStartAugust'),
previousDate: t('augustYYYY', { year: 2022 }), previousDate: t('februaryYYYY', { year: 2022 }),
}), }),
canBuy () { canBuy () {
return moment().isBetween(EVENTS.birthday10.start, EVENTS.birthday10.end); return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end);
}, },
}, },
PinkMarble: { PinkMarble: {

View File

@@ -5,7 +5,7 @@ import { EVENTS } from './constants';
// path: 'premiumHatchingPotions.Rainbow', // path: 'premiumHatchingPotions.Rainbow',
const featuredItems = { const featuredItems = {
market () { market () {
if (moment().isBetween(EVENTS.summer2023.start, EVENTS.summer2023.end)) { if (moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end)) {
return [ return [
{ {
type: 'armoire', type: 'armoire',
@@ -13,15 +13,15 @@ const featuredItems = {
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Sunset', path: 'premiumHatchingPotions.Thunderstorm',
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Glass', path: 'premiumHatchingPotions.Porcelain',
}, },
{ {
type: 'premiumHatchingPotion', type: 'hatchingPotions',
path: 'premiumHatchingPotions.SandSculpture', path: 'hatchingPotions.Zombie',
}, },
]; ];
} }
@@ -32,32 +32,32 @@ const featuredItems = {
}, },
{ {
type: 'food', type: 'food',
path: 'food.Honey', path: 'food.Meat',
}, },
{ {
type: 'hatchingPotions', type: 'hatchingPotions',
path: 'hatchingPotions.Golden', path: 'hatchingPotions.Zombie',
}, },
{ {
type: 'eggs', type: 'eggs',
path: 'eggs.Dragon', path: 'eggs.Fox',
}, },
]; ];
}, },
quests () { quests () {
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) { if (moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end)) {
return [ return [
{ {
type: 'bundles', type: 'bundles',
path: 'bundles.splashyPals', path: 'bundles.hugabug',
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.harpy', path: 'quests.octopus',
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.owl', path: 'quests.rock',
}, },
]; ];
} }
@@ -89,7 +89,7 @@ const featuredItems = {
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.nudibranch', path: 'quests.axolotl',
}, },
]; ];
}, },