chore(content): add pet quest bundle and magic hatching potions for February (#14499)

This commit is contained in:
Natalie L
2023-02-13 00:17:09 -05:00
committed by GitHub
parent 7b4cfee290
commit 8f4d668b0f
4 changed files with 39 additions and 14 deletions

View File

@@ -194,8 +194,9 @@ const bundles = {
'seaserpent', 'seaserpent',
'gryphon', 'gryphon',
], ],
event: EVENTS.bundle202302,
canBuy () { canBuy () {
return moment().isBefore('2022-02-28T20:00-05:00'); return moment().isBetween(EVENTS.bundle202302.start, EVENTS.bundle202302.end);
}, },
type: 'quests', type: 'quests',
value: 7, value: 7,

View File

@@ -10,11 +10,25 @@ const gemsPromo = {
export const EVENTS = { export const EVENTS = {
noEvent: { noEvent: {
start: '2023-02-08T23:59-05:00', start: '2023-02-28T23:59-05:00',
end: '2023-02-14T08:00-05:00', end: '2023-03-21T08:00-05:00',
season: 'normal', season: 'normal',
npcImageSuffix: '', npcImageSuffix: '',
}, },
bundle202302: {
start: '2023-02-13T08:00-05:00',
end: '2023-02-28T23:59-05:00',
},
potions202302:{
start: '2023-02-21T08:00-05:00',
end: '2023-02-28T23:59-05:00',
},
valentines2023: {
start: '2023-02-13T08:00-05:00',
end: '2023-02-17T23:59-05:00',
season: 'valentines',
npcImageSuffix: 'valentines',
},
birthday10: { birthday10: {
start: '2023-01-30T08:00-05:00', start: '2023-01-30T08:00-05:00',
end: '2023-02-08T23:59-05:00', end: '2023-02-08T23:59-05:00',

View File

@@ -62,8 +62,13 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionCupid'), text: t('hatchingPotionCupid'),
limited: true, limited: true,
event: EVENTS.potions202302,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndFebruary'),
previousDate: t('februaryYYYY', { year: 2022 }),
}),
canBuy () { canBuy () {
return moment().isBefore('2022-02-28T20:00-05:00'); return moment().isBetween(EVENTS.potions202302.start, EVENTS.potions202302.end);
}, },
}, },
Shimmer: { Shimmer: {
@@ -278,8 +283,13 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionRoseQuartz'), text: t('hatchingPotionRoseQuartz'),
limited: true, limited: true,
event: EVENTS.potions202302,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndFebruary'),
previousDate: t('februaryYYYY', { year: 2022 }),
}),
canBuy () { canBuy () {
return moment().isBefore('2022-02-28T20:00-05:00'); return moment().isBetween(EVENTS.potions202302.start, EVENTS.potions202302.end);
}, },
}, },
Celestial: { Celestial: {

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.winter2023.start, EVENTS.winter2023.end)) { if (moment().isBetween(EVENTS.potions202302.start, EVENTS.potions202302.end)) {
return [ return [
{ {
type: 'armoire', type: 'armoire',
@@ -13,15 +13,15 @@ const featuredItems = {
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.StarryNight', path: 'premiumHatchingPotions.RoseQuartz',
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Holly', path: 'premiumHatchingPotions.Cupid',
}, },
{ {
type: 'premiumHatchingPotion', type: 'hatchingPotions',
path: 'premiumHatchingPotions.Aurora', path: 'hatchingPotions.CottonCandyPink',
}, },
]; ];
} }
@@ -45,19 +45,19 @@ const featuredItems = {
]; ];
}, },
quests () { quests () {
if (moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end)) { if (moment().isBetween(EVENTS.bundle202302.start, EVENTS.bundle202302.end)) {
return [ return [
{ {
type: 'bundles', type: 'bundles',
path: 'bundles.winterQuests', path: 'bundles.mythicalMarvels',
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.whale', path: 'quests.treeling',
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.turtle', path: 'quests.rock',
}, },
]; ];
} }