mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
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:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user