mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
June 2022 Pet Quest Bundle
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user