mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
feat(content): November Quests and Hatching Potions
by @CuriousMagpie
This commit is contained in:
@@ -777,7 +777,7 @@
|
|||||||
"questRobotUnlockText": "Unlocks purchasable Robot Eggs in the Market",
|
"questRobotUnlockText": "Unlocks purchasable Robot Eggs in the Market",
|
||||||
|
|
||||||
"rockingReptilesText": "Rocking Reptiles Quest Bundle",
|
"rockingReptilesText": "Rocking Reptiles Quest Bundle",
|
||||||
"rockingReptilesNotes": "Contains 'The Insta-Gator,' 'The Serpent of Distraction,' and 'The Veloci-Rapper.' Available until September 30.",
|
"rockingReptilesNotes": "Contains 'The Insta-Gator,' 'The Serpent of Distraction,' and 'The Veloci-Rapper.' Available until November 30.",
|
||||||
|
|
||||||
"delightfulDinosText": "Delightful Dinos Quest Bundle",
|
"delightfulDinosText": "Delightful Dinos Quest Bundle",
|
||||||
"delightfulDinosNotes": "Contains 'The Pterror-dactyl,' 'The Trampling Triceratops,' and 'The Dinosaur Unearthed.' Available until May 31.",
|
"delightfulDinosNotes": "Contains 'The Pterror-dactyl,' 'The Trampling Triceratops,' and 'The Dinosaur Unearthed.' Available until May 31.",
|
||||||
|
|||||||
@@ -208,8 +208,9 @@ const bundles = {
|
|||||||
'snake',
|
'snake',
|
||||||
'velociraptor',
|
'velociraptor',
|
||||||
],
|
],
|
||||||
|
event: EVENTS.bundle202211,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBetween('2019-09-10', '2019-10-02');
|
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end);
|
||||||
},
|
},
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
value: 7,
|
value: 7,
|
||||||
|
|||||||
@@ -9,9 +9,21 @@ const gemsPromo = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const EVENTS = {
|
export const EVENTS = {
|
||||||
|
noEvent: {
|
||||||
|
start: '2022-11-30T20:00-04:00',
|
||||||
|
end: '2022-12-20T08:00-04:00',
|
||||||
|
season: 'normal',
|
||||||
|
npcImageSuffix: '',
|
||||||
|
},
|
||||||
|
bundle202211: {
|
||||||
|
start: '2022-11-15T20:00-04:00',
|
||||||
|
end: '2022-11-30T08:00-04:00',
|
||||||
|
season: 'normal',
|
||||||
|
npcImageSuffix: '',
|
||||||
|
},
|
||||||
afterGala: {
|
afterGala: {
|
||||||
start: '2022-10-31T20:00-04:00',
|
start: '2022-10-31T20:00-04:00',
|
||||||
end: '2022-12-21T08:00-04:00',
|
end: '2022-11-15T08:00-04:00',
|
||||||
season: 'normal',
|
season: 'normal',
|
||||||
npcImageSuffix: '',
|
npcImageSuffix: '',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,26 +122,26 @@ const premium = {
|
|||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionEmber'),
|
text: t('hatchingPotionEmber'),
|
||||||
limited: true,
|
limited: true,
|
||||||
event: EVENTS.potions202111,
|
event: EVENTS.bundle202211,
|
||||||
_addlNotes: t('eventAvailabilityReturning', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
availableDate: t('dateEndNovember'),
|
availableDate: t('dateEndNovember'),
|
||||||
previousDate: t('novemberYYYY', { year: 2019 }),
|
previousDate: t('novemberYYYY', { year: 2021 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.potions202111.end);
|
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Thunderstorm: {
|
Thunderstorm: {
|
||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionThunderstorm'),
|
text: t('hatchingPotionThunderstorm'),
|
||||||
limited: true,
|
limited: true,
|
||||||
event: EVENTS.potions202108,
|
event: EVENTS.bundle202211,
|
||||||
_addlNotes: t('eventAvailabilityReturning', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
availableDate: t('dateEndAugust'),
|
availableDate: t('dateEndNovember'),
|
||||||
previousDate: t('novemberYYYY', { year: 2019 }),
|
previousDate: t('novemberYYYY', { year: 2021 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBetween(EVENTS.potions202108.start, EVENTS.potions202108.end);
|
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Spooky: {
|
Spooky: {
|
||||||
@@ -251,12 +251,13 @@ const premium = {
|
|||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionFrost'),
|
text: t('hatchingPotionFrost'),
|
||||||
limited: true,
|
limited: true,
|
||||||
|
event: EVENTS.bundle202211,
|
||||||
_addlNotes: t('eventAvailabilityReturning', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
availableDate: t('dateEndNovember'),
|
availableDate: t('dateEndNovember'),
|
||||||
previousDate: t('novemberYYYY', { year: 2018 }),
|
previousDate: t('novemberYYYY', { year: 2020 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore('2020-12-02');
|
return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
IcySnow: {
|
IcySnow: {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { EVENTS } from './constants';
|
|||||||
// path: 'premiumHatchingPotions.Rainbow',
|
// path: 'premiumHatchingPotions.Rainbow',
|
||||||
const featuredItems = {
|
const featuredItems = {
|
||||||
market () {
|
market () {
|
||||||
if (moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end)) {
|
if (moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end)) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'armoire',
|
type: 'armoire',
|
||||||
@@ -13,15 +13,15 @@ const featuredItems = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'premiumHatchingPotion',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'premiumHatchingPotions.Vampire',
|
path: 'premiumHatchingPotions.Frost',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'premiumHatchingPotion',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'premiumHatchingPotions.Ghost',
|
path: 'premiumHatchingPotions.Ember',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'premiumHatchingPotion',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'premiumHatchingPotions.Shadow',
|
path: 'premiumHatchingPotions.Thunderstorm',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -32,47 +32,47 @@ const featuredItems = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'food',
|
type: 'food',
|
||||||
path: 'food.Potatoe',
|
path: 'food.Milk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'hatchingPotions',
|
type: 'hatchingPotions',
|
||||||
path: 'hatchingPotions.Desert',
|
path: 'hatchingPotions.White',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'eggs',
|
type: 'eggs',
|
||||||
path: 'eggs.Dragon',
|
path: 'eggs.Fox',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
quests () {
|
quests () {
|
||||||
if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) {
|
if (moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end)) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'bundles',
|
type: 'bundles',
|
||||||
path: 'bundles.witchyFamiliars',
|
path: 'bundles.rockingReptiles',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.snake',
|
path: 'quests.peacock',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.owl',
|
path: 'quests.harpy',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.guineapig',
|
path: 'quests.axolotl',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.onyx',
|
path: 'quests.stone',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
path: 'quests.rooster',
|
path: 'quests.whale',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user