mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
2022 Spring Fling Potions
This commit is contained in:
@@ -70,13 +70,13 @@ const premium = {
|
|||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionShimmer'),
|
text: t('hatchingPotionShimmer'),
|
||||||
limited: true,
|
limited: true,
|
||||||
event: EVENTS.spring2020,
|
event: EVENTS.spring2022,
|
||||||
_addlNotes: t('eventAvailabilityReturning', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
availableDate: t('dateEndMarch'),
|
availableDate: t('dateEndMarch'),
|
||||||
previousDate: t('marchYYYY', { year: 2018 }),
|
previousDate: t('marchYYYY', { year: 2020 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore('2020-05-02');
|
return moment().isBefore(EVENTS.spring2022.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Fairy: {
|
Fairy: {
|
||||||
@@ -284,13 +284,13 @@ const premium = {
|
|||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionCelestial'),
|
text: t('hatchingPotionCelestial'),
|
||||||
limited: true,
|
limited: true,
|
||||||
event: EVENTS.spring2020,
|
event: EVENTS.spring2022,
|
||||||
_addlNotes: t('eventAvailabilityReturning', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
availableDate: t('dateEndMarch'),
|
availableDate: t('dateEndMarch'),
|
||||||
previousDate: t('marchYYYY', { year: 2019 }),
|
previousDate: t('marchYYYY', { year: 2020 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore('2020-05-02');
|
return moment().isBefore(EVENTS.spring2022.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Sunshine: {
|
Sunshine: {
|
||||||
@@ -469,12 +469,13 @@ const premium = {
|
|||||||
value: 2,
|
value: 2,
|
||||||
text: t('hatchingPotionPolkaDot'),
|
text: t('hatchingPotionPolkaDot'),
|
||||||
limited: true,
|
limited: true,
|
||||||
event: EVENTS.spring2021,
|
event: EVENTS.spring2022,
|
||||||
_addlNotes: t('premiumPotionAddlNotes', {
|
_addlNotes: t('eventAvailabilityReturning', {
|
||||||
date: t('dateEndMarch'),
|
availableDate: t('dateEndMarch'),
|
||||||
|
previousDate: t('marchYYYY', { year: 2021 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.spring2021.end);
|
return moment().isBefore(EVENTS.spring2022.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MossyStone: {
|
MossyStone: {
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import { EVENTS } from './constants';
|
||||||
// Magic Hatching Potions are configured like this:
|
// Magic Hatching Potions are configured like this:
|
||||||
// type: 'premiumHatchingPotion', // note no "s" at the end
|
// type: 'premiumHatchingPotion', // note no "s" at the end
|
||||||
// path: 'premiumHatchingPotions.Rainbow',
|
// path: 'premiumHatchingPotions.Rainbow',
|
||||||
const featuredItems = {
|
const featuredItems = {
|
||||||
market () {
|
market () {
|
||||||
if (moment().isBefore('2022-02-28T20:00-05:00')) {
|
if (moment().isBefore(EVENTS.spring2022.end)) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'armoire',
|
type: 'armoire',
|
||||||
@@ -12,15 +13,15 @@ const featuredItems = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'premiumHatchingPotion',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'premiumHatchingPotions.Cupid',
|
path: 'premiumHatchingPotions.Shimmer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'premiumHatchingPotion',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'premiumHatchingPotions.RoseQuartz',
|
path: 'premiumHatchingPotions.Celestial',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'hatchingPotions',
|
type: 'premiumHatchingPotion',
|
||||||
path: 'hatchingPotions.CottonCandyPink',
|
path: 'premiumHatchingPotions.PolkaDot',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user