mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
feat(event): Valentine's 2021
This commit is contained in:
@@ -14,10 +14,15 @@ const gemsPromo = {
|
|||||||
// Unless we want a precise ending, for example during a Gems sale / promotion.
|
// Unless we want a precise ending, for example during a Gems sale / promotion.
|
||||||
export const EVENTS = {
|
export const EVENTS = {
|
||||||
noCurrentEvent2021: {
|
noCurrentEvent2021: {
|
||||||
start: '2021-01-31T20:00-05:00',
|
start: '2021-02-16T08:00-05:00',
|
||||||
end: '2021-03-20T08:00-05:00',
|
end: '2021-03-07T08:00-05:00',
|
||||||
season: 'normal',
|
season: 'normal',
|
||||||
},
|
},
|
||||||
|
valentines2021: {
|
||||||
|
start: '2021-02-07T08:00-05:00',
|
||||||
|
end: '2021-02-16T08:00-05:00',
|
||||||
|
season: 'valentines',
|
||||||
|
},
|
||||||
winter2021: {
|
winter2021: {
|
||||||
start: '2020-12-17T08:00-05:00',
|
start: '2020-12-17T08:00-05:00',
|
||||||
end: '2021-01-31T20:00-05:00',
|
end: '2021-01-31T20:00-05:00',
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const premium = {
|
|||||||
text: t('hatchingPotionCupid'),
|
text: t('hatchingPotionCupid'),
|
||||||
limited: true,
|
limited: true,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore('2020-03-02');
|
return moment().isBefore('2021-02-28T20:00-05:00');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Shimmer: {
|
Shimmer: {
|
||||||
@@ -240,7 +240,7 @@ const premium = {
|
|||||||
text: t('hatchingPotionRoseQuartz'),
|
text: t('hatchingPotionRoseQuartz'),
|
||||||
limited: true,
|
limited: true,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore('2020-03-02');
|
return moment().isBefore('2021-02-28T20:00-05:00');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Celestial: {
|
Celestial: {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ api.cardTypes = {
|
|||||||
valentine: {
|
valentine: {
|
||||||
key: 'valentine',
|
key: 'valentine',
|
||||||
messageOptions: 4,
|
messageOptions: 4,
|
||||||
yearRound: moment().isBefore('2020-03-02'),
|
yearRound: moment().isBefore('2021-02-28T20:00-05:00'),
|
||||||
},
|
},
|
||||||
birthday: {
|
birthday: {
|
||||||
key: 'birthday',
|
key: 'birthday',
|
||||||
|
|||||||
Reference in New Issue
Block a user