diff --git a/website/common/locales/en/questsContent.json b/website/common/locales/en/questsContent.json index 99143ddf3c..440a2910b1 100644 --- a/website/common/locales/en/questsContent.json +++ b/website/common/locales/en/questsContent.json @@ -777,7 +777,7 @@ "questRobotUnlockText": "Unlocks purchasable Robot Eggs in the Market", "rockingReptilesText": "Rocking Reptiles Quest Bundle", - "rockingReptilesNotes": "Contains 'The Insta-Gator,' 'The Serpent of Distraction,' and 'The Veloci-Rapper.' Available until September 30.", + "rockingReptilesNotes": "Contains 'The Insta-Gator,' 'The Serpent of Distraction,' and 'The Veloci-Rapper.' Available until November 30.", "delightfulDinosText": "Delightful Dinos Quest Bundle", "delightfulDinosNotes": "Contains 'The Pterror-dactyl,' 'The Trampling Triceratops,' and 'The Dinosaur Unearthed.' Available until May 31.", diff --git a/website/common/script/content/bundles.js b/website/common/script/content/bundles.js index bcbe083860..cb4e982fee 100644 --- a/website/common/script/content/bundles.js +++ b/website/common/script/content/bundles.js @@ -208,8 +208,9 @@ const bundles = { 'snake', 'velociraptor', ], + event: EVENTS.bundle202211, canBuy () { - return moment().isBetween('2019-09-10', '2019-10-02'); + return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); }, type: 'quests', value: 7, diff --git a/website/common/script/content/constants/events.js b/website/common/script/content/constants/events.js index e87b52fb7d..24db5d502e 100644 --- a/website/common/script/content/constants/events.js +++ b/website/common/script/content/constants/events.js @@ -9,9 +9,21 @@ const gemsPromo = { }; export const EVENTS = { + noEvent: { + start: '2022-11-30T20:00-04:00', + end: '2022-12-20T08:00-04:00', + season: 'normal', + npcImageSuffix: '', + }, + bundle202211: { + start: '2022-11-15T20:00-04:00', + end: '2022-11-30T08:00-04:00', + season: 'normal', + npcImageSuffix: '', + }, afterGala: { start: '2022-10-31T20:00-04:00', - end: '2022-12-21T08:00-04:00', + end: '2022-11-15T08:00-04:00', season: 'normal', npcImageSuffix: '', }, diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index 23f26f370d..a2e40396c2 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -122,26 +122,26 @@ const premium = { value: 2, text: t('hatchingPotionEmber'), limited: true, - event: EVENTS.potions202111, + event: EVENTS.bundle202211, _addlNotes: t('eventAvailabilityReturning', { availableDate: t('dateEndNovember'), - previousDate: t('novemberYYYY', { year: 2019 }), + previousDate: t('novemberYYYY', { year: 2021 }), }), canBuy () { - return moment().isBefore(EVENTS.potions202111.end); + return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); }, }, Thunderstorm: { value: 2, text: t('hatchingPotionThunderstorm'), limited: true, - event: EVENTS.potions202108, + event: EVENTS.bundle202211, _addlNotes: t('eventAvailabilityReturning', { - availableDate: t('dateEndAugust'), - previousDate: t('novemberYYYY', { year: 2019 }), + availableDate: t('dateEndNovember'), + previousDate: t('novemberYYYY', { year: 2021 }), }), canBuy () { - return moment().isBetween(EVENTS.potions202108.start, EVENTS.potions202108.end); + return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); }, }, Spooky: { @@ -251,12 +251,13 @@ const premium = { value: 2, text: t('hatchingPotionFrost'), limited: true, + event: EVENTS.bundle202211, _addlNotes: t('eventAvailabilityReturning', { availableDate: t('dateEndNovember'), - previousDate: t('novemberYYYY', { year: 2018 }), + previousDate: t('novemberYYYY', { year: 2020 }), }), canBuy () { - return moment().isBefore('2020-12-02'); + return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); }, }, IcySnow: { diff --git a/website/common/script/content/shop-featuredItems.js b/website/common/script/content/shop-featuredItems.js index ea7e7da54f..031d7d3a9c 100644 --- a/website/common/script/content/shop-featuredItems.js +++ b/website/common/script/content/shop-featuredItems.js @@ -5,7 +5,7 @@ import { EVENTS } from './constants'; // path: 'premiumHatchingPotions.Rainbow', const featuredItems = { market () { - if (moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end)) { + if (moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end)) { return [ { type: 'armoire', @@ -13,15 +13,15 @@ const featuredItems = { }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Vampire', + path: 'premiumHatchingPotions.Frost', }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Ghost', + path: 'premiumHatchingPotions.Ember', }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Shadow', + path: 'premiumHatchingPotions.Thunderstorm', }, ]; } @@ -32,47 +32,47 @@ const featuredItems = { }, { type: 'food', - path: 'food.Potatoe', + path: 'food.Milk', }, { type: 'hatchingPotions', - path: 'hatchingPotions.Desert', + path: 'hatchingPotions.White', }, { type: 'eggs', - path: 'eggs.Dragon', + path: 'eggs.Fox', }, ]; }, quests () { - if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) { + if (moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end)) { return [ { type: 'bundles', - path: 'bundles.witchyFamiliars', + path: 'bundles.rockingReptiles', }, { type: 'quests', - path: 'quests.snake', + path: 'quests.peacock', }, { type: 'quests', - path: 'quests.owl', + path: 'quests.harpy', }, ]; } return [ { type: 'quests', - path: 'quests.guineapig', + path: 'quests.axolotl', }, { type: 'quests', - path: 'quests.onyx', + path: 'quests.stone', }, { type: 'quests', - path: 'quests.rooster', + path: 'quests.whale', }, ]; },