June 2022 Pet Quest Bundle

This commit is contained in:
CuriousMagpie
2022-06-13 16:37:02 -04:00
committed by SabreCat
parent 86068f42d4
commit 36d82a1d39
4 changed files with 14 additions and 10 deletions

View File

@@ -129,7 +129,7 @@ const bundles = {
'octopus',
],
canBuy () {
return moment().isBetween('2020-07-14', '2020-08-02');
return moment().isBefore(EVENTS.bundle202206.end);
},
type: 'quests',
value: 7,

View File

@@ -15,6 +15,10 @@ export const EVENTS = {
season: 'normal',
npcImageSuffix: '',
},
bundle202206: {
start:'2022-06-14T08:00-04:00',
end:'2022-06-30T20:00-04:00',
},
potions202205: {
start: '2022-05-17T08:00-04:00',
end: '2022-05-31T20:00-04:00',

View File

@@ -1,5 +1,5 @@
import moment from 'moment';
// import { EVENTS } from './constants';
import { EVENTS } from './constants';
// Magic Hatching Potions are configured like this:
// type: 'premiumHatchingPotion', // note no "s" at the end
// path: 'premiumHatchingPotions.Rainbow',
@@ -45,34 +45,34 @@ const featuredItems = {
];
},
quests () {
if (moment().isBefore('2022-05-31T20:00-04:00')) {
if (moment().isBefore(EVENTS.bundle202206.end)) {
return [
{
type: 'bundles',
path: 'bundles.delightfulDinos',
path: 'bundles.aquaticAmigos',
},
{
type: 'quests',
path: 'quests.alligator',
path: 'quests.seaserpent',
},
{
type: 'quests',
path: 'quests.turtle',
path: 'quests.dolphin',
},
];
}
return [
{
type: 'quests',
path: 'quests.ferret',
path: 'quests.badger',
},
{
type: 'quests',
path: 'quests.silver',
path: 'quests.onyx',
},
{
type: 'quests',
path: 'quests.basilist',
path: 'quests.rooster',
},
];
},