mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
feat(content): add August Pet Quest Bundles and Magic Hatching Potions (#14786)
* feat(content): add June subscriber items * feat(content): add August pet quest bundle and magic hatching potions * fix(time): updated start time to 0800EDT * fix(content): correct start date for potions --------- Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ const bundles = {
|
||||
'butterfly',
|
||||
],
|
||||
canBuy () {
|
||||
return moment().isBetween('2020-03-09', '2020-04-02');
|
||||
return moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end);
|
||||
},
|
||||
type: 'quests',
|
||||
value: 7,
|
||||
|
||||
@@ -11,10 +11,18 @@ const gemsPromo = {
|
||||
export const EVENTS = {
|
||||
noEvent: {
|
||||
start: '2023-08-01T23:59-04:00',
|
||||
end: '2023-08-31T08:00-04:00',
|
||||
end: '2023-08-10T08:00-04:00',
|
||||
season: 'normal',
|
||||
npcImageSuffix: '',
|
||||
},
|
||||
bundle202308: {
|
||||
start: '2023-08-15T08:00-04:00',
|
||||
end: '2023-08-31T23:59-04:00',
|
||||
},
|
||||
potions202308: {
|
||||
start: '2023-08-15T08:00-04:00',
|
||||
end: '2023-08-31T23:59-04:00',
|
||||
},
|
||||
summer2023: {
|
||||
start: '2023-06-20T08:00-04:00',
|
||||
end: '2023-07-31T23:59-04:00',
|
||||
|
||||
@@ -140,13 +140,13 @@ const premium = {
|
||||
value: 2,
|
||||
text: t('hatchingPotionThunderstorm'),
|
||||
limited: true,
|
||||
event: EVENTS.bundle202211,
|
||||
event: EVENTS.potions202308,
|
||||
_addlNotes: t('eventAvailabilityReturning', {
|
||||
availableDate: t('dateEndNovember'),
|
||||
previousDate: t('novemberYYYY', { year: 2021 }),
|
||||
availableDate: t('dateEndAugust'),
|
||||
previousDate: t('novemberYYYY', { year: 2022 }),
|
||||
}),
|
||||
canBuy () {
|
||||
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end);
|
||||
return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end);
|
||||
},
|
||||
},
|
||||
Spooky: {
|
||||
@@ -542,13 +542,13 @@ const premium = {
|
||||
value: 2,
|
||||
text: t('hatchingPotionPorcelain'),
|
||||
limited: true,
|
||||
event: EVENTS.birthday10,
|
||||
event: EVENTS.potions202308,
|
||||
_addlNotes: t('eventAvailabilityReturning', {
|
||||
availableDate: t('dateStartFebruary'),
|
||||
previousDate: t('augustYYYY', { year: 2022 }),
|
||||
availableDate: t('dateStartAugust'),
|
||||
previousDate: t('februaryYYYY', { year: 2022 }),
|
||||
}),
|
||||
canBuy () {
|
||||
return moment().isBetween(EVENTS.birthday10.start, EVENTS.birthday10.end);
|
||||
return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end);
|
||||
},
|
||||
},
|
||||
PinkMarble: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { EVENTS } from './constants';
|
||||
// path: 'premiumHatchingPotions.Rainbow',
|
||||
const featuredItems = {
|
||||
market () {
|
||||
if (moment().isBetween(EVENTS.summer2023.start, EVENTS.summer2023.end)) {
|
||||
if (moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end)) {
|
||||
return [
|
||||
{
|
||||
type: 'armoire',
|
||||
@@ -13,15 +13,15 @@ const featuredItems = {
|
||||
},
|
||||
{
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.Sunset',
|
||||
path: 'premiumHatchingPotions.Thunderstorm',
|
||||
},
|
||||
{
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.Glass',
|
||||
path: 'premiumHatchingPotions.Porcelain',
|
||||
},
|
||||
{
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.SandSculpture',
|
||||
type: 'hatchingPotions',
|
||||
path: 'hatchingPotions.Zombie',
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -32,32 +32,32 @@ const featuredItems = {
|
||||
},
|
||||
{
|
||||
type: 'food',
|
||||
path: 'food.Honey',
|
||||
path: 'food.Meat',
|
||||
},
|
||||
{
|
||||
type: 'hatchingPotions',
|
||||
path: 'hatchingPotions.Golden',
|
||||
path: 'hatchingPotions.Zombie',
|
||||
},
|
||||
{
|
||||
type: 'eggs',
|
||||
path: 'eggs.Dragon',
|
||||
path: 'eggs.Fox',
|
||||
},
|
||||
];
|
||||
},
|
||||
quests () {
|
||||
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) {
|
||||
if (moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end)) {
|
||||
return [
|
||||
{
|
||||
type: 'bundles',
|
||||
path: 'bundles.splashyPals',
|
||||
path: 'bundles.hugabug',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.harpy',
|
||||
path: 'quests.octopus',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.owl',
|
||||
path: 'quests.rock',
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -89,7 +89,7 @@ const featuredItems = {
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.nudibranch',
|
||||
path: 'quests.axolotl',
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user