chore(content): add 2022-09 Pet Quest bundle (#14218)

* chore(content): farmFriends quest bundle

* chore(content): 2022-09 Pet Quest Bundle

* fix(date): fix start date
This commit is contained in:
Natalie L
2022-09-13 10:12:24 -04:00
committed by GitHub
parent 38bf0b3721
commit 0f4711c358
4 changed files with 16 additions and 9 deletions

View File

@@ -52,8 +52,9 @@ const bundles = {
'horse',
'sheep',
],
event: EVENTS.bundle202209,
canBuy () {
return moment().isBetween('2019-08-08', '2019-09-02');
return moment().isBetween(EVENTS.bundle202209.start, EVENTS.bundle202209.end);
},
type: 'quests',
value: 7,

View File

@@ -15,6 +15,12 @@ export const EVENTS = {
season: 'normal',
npcImageSuffix: '',
},
bundle202209: {
start: '2022-09-13T08:00-04:00',
end: '2022-09-30T20:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
potions202208: {
start: '2022-08-16T08:00-04:00',
end: '2022-08-31T20:00-04:00',

View File

@@ -32,11 +32,11 @@ const featuredItems = {
},
{
type: 'food',
path: 'food.RottenMeat',
path: 'food.Potatoe',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Zombie',
path: 'hatchingPotions.Desert',
},
{
type: 'eggs',
@@ -45,26 +45,26 @@ const featuredItems = {
];
},
quests () {
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202208.end)) {
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202209.end)) {
return [
{
type: 'bundles',
path: 'bundles.forestFriends',
},
{
type: 'quests',
path: 'quests.owl',
type: 'bundles',
path: 'bundles.farmFriends',
},
{
type: 'quests',
path: 'quests.snail',
path: 'quests.ferret',
},
];
}
return [
{
type: 'quests',
path: 'quests.badger',
path: 'quests.guineapig',
},
{
type: 'quests',