mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +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.
|
||||
export const EVENTS = {
|
||||
noCurrentEvent2021: {
|
||||
start: '2021-01-31T20:00-05:00',
|
||||
end: '2021-03-20T08:00-05:00',
|
||||
start: '2021-02-16T08:00-05:00',
|
||||
end: '2021-03-07T08:00-05:00',
|
||||
season: 'normal',
|
||||
},
|
||||
valentines2021: {
|
||||
start: '2021-02-07T08:00-05:00',
|
||||
end: '2021-02-16T08:00-05:00',
|
||||
season: 'valentines',
|
||||
},
|
||||
winter2021: {
|
||||
start: '2020-12-17T08:00-05:00',
|
||||
end: '2021-01-31T20:00-05:00',
|
||||
|
||||
@@ -66,7 +66,7 @@ const premium = {
|
||||
text: t('hatchingPotionCupid'),
|
||||
limited: true,
|
||||
canBuy () {
|
||||
return moment().isBefore('2020-03-02');
|
||||
return moment().isBefore('2021-02-28T20:00-05:00');
|
||||
},
|
||||
},
|
||||
Shimmer: {
|
||||
@@ -240,7 +240,7 @@ const premium = {
|
||||
text: t('hatchingPotionRoseQuartz'),
|
||||
limited: true,
|
||||
canBuy () {
|
||||
return moment().isBefore('2020-03-02');
|
||||
return moment().isBefore('2021-02-28T20:00-05:00');
|
||||
},
|
||||
},
|
||||
Celestial: {
|
||||
|
||||
@@ -119,7 +119,7 @@ api.cardTypes = {
|
||||
valentine: {
|
||||
key: 'valentine',
|
||||
messageOptions: 4,
|
||||
yearRound: moment().isBefore('2020-03-02'),
|
||||
yearRound: moment().isBefore('2021-02-28T20:00-05:00'),
|
||||
},
|
||||
birthday: {
|
||||
key: 'birthday',
|
||||
|
||||
Reference in New Issue
Block a user