mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
chore(content): add October Pet Quest Bundle (#14268)
* chore(content): add October Pet Quest Bundle * update: change event start date to the correct one
This commit is contained in:
@@ -68,8 +68,9 @@ const bundles = {
|
|||||||
'spider',
|
'spider',
|
||||||
'frog',
|
'frog',
|
||||||
],
|
],
|
||||||
|
event: EVENTS.bundle202210,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBetween('2019-10-15', '2019-11-02');
|
return moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end);
|
||||||
},
|
},
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
value: 7,
|
value: 7,
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ export const EVENTS = {
|
|||||||
end: '2022-10-13T20:00-04:00',
|
end: '2022-10-13T20:00-04:00',
|
||||||
gemsPromo,
|
gemsPromo,
|
||||||
},
|
},
|
||||||
|
bundle202210: {
|
||||||
|
start: '2022-10-13T08:00-04:00',
|
||||||
|
end: '2022-10-31T20:00-04:00',
|
||||||
|
},
|
||||||
beforeGala: {
|
beforeGala: {
|
||||||
start: '2022-07-31T20:00-04:00',
|
start: '2022-07-31T20:00-04:00',
|
||||||
end: '2022-09-20T08:00-04:00',
|
end: '2022-09-20T08:00-04:00',
|
||||||
|
|||||||
@@ -45,19 +45,19 @@ const featuredItems = {
|
|||||||
];
|
];
|
||||||
},
|
},
|
||||||
quests () {
|
quests () {
|
||||||
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202209.end)) {
|
if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'bundles',
|
type: 'bundles',
|
||||||
path: 'bundles.forestFriends',
|
path: 'bundles.witchyFamiliars',
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'bundles',
|
|
||||||
path: 'bundles.farmFriends',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.ferret',
|
path: 'quests.snake',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'quests',
|
||||||
|
path: 'quests.owl',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user