mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-21 13:24:16 +00: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:
parent
137f7d53dc
commit
d1928c9181
3 changed files with 13 additions and 8 deletions
|
|
@ -68,8 +68,9 @@ const bundles = {
|
|||
'spider',
|
||||
'frog',
|
||||
],
|
||||
event: EVENTS.bundle202210,
|
||||
canBuy () {
|
||||
return moment().isBetween('2019-10-15', '2019-11-02');
|
||||
return moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end);
|
||||
},
|
||||
type: 'quests',
|
||||
value: 7,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,10 @@ export const EVENTS = {
|
|||
end: '2022-10-13T20:00-04:00',
|
||||
gemsPromo,
|
||||
},
|
||||
bundle202210: {
|
||||
start: '2022-10-13T08:00-04:00',
|
||||
end: '2022-10-31T20:00-04:00',
|
||||
},
|
||||
beforeGala: {
|
||||
start: '2022-07-31T20:00-04:00',
|
||||
end: '2022-09-20T08:00-04:00',
|
||||
|
|
|
|||
|
|
@ -45,19 +45,19 @@ const featuredItems = {
|
|||
];
|
||||
},
|
||||
quests () {
|
||||
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202209.end)) {
|
||||
if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) {
|
||||
return [
|
||||
{
|
||||
type: 'bundles',
|
||||
path: 'bundles.forestFriends',
|
||||
},
|
||||
{
|
||||
type: 'bundles',
|
||||
path: 'bundles.farmFriends',
|
||||
path: 'bundles.witchyFamiliars',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.ferret',
|
||||
path: 'quests.snake',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.owl',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue