feat(content): add June pet quest bundle (#14694)

* feat(content): add June subscriber items

* feat(content): add June pet quest bundle

* fix(bundle): correct timing and visual issues

---------

Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
Natalie L
2023-06-12 16:01:34 -04:00
committed by GitHub
parent a5ae3e5877
commit ab68e8a5fe
6 changed files with 13 additions and 13 deletions

View File

@@ -35,9 +35,9 @@ const bundles = {
'turtle',
'whale',
],
event: EVENTS.bundle202106,
event: EVENTS.bundle202306,
canBuy () {
return moment().isBefore(EVENTS.bundle202106.end);
return moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end);
},
type: 'quests',
class: 'quest_bundle_splashyPals',

View File

@@ -10,11 +10,15 @@ const gemsPromo = {
export const EVENTS = {
noEvent: {
start: '2023-05-31T23:59-04:00',
end: '2023-06-22T08:00-04:00',
start: '2023-06-13T23:59-04:00',
end: '2023-06-30T08:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
bundle202306: {
start:'2023-06-13T08:00-04:00',
end:'2023-06-30T23:59-04:00',
},
bundle202305: {
start:'2023-05-23T08:00-04:00',
end:'2023-05-31T23:59-04:00',

View File

@@ -44,12 +44,12 @@ const featuredItems = {
},
];
},
quests () { // start date is 3/28
if (moment().isBetween(EVENTS.bundle202305.start, EVENTS.bundle202305.end)) {
quests () {
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) {
return [
{
type: 'bundles',
path: 'bundles.birdBuddies',
path: 'bundles.splashyPals',
},
{
type: 'quests',