mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion
This commit is contained in:
@@ -4,7 +4,27 @@ import moment from 'moment';
|
||||
// path: 'premiumHatchingPotions.Rainbow',
|
||||
const featuredItems = {
|
||||
market () {
|
||||
if (moment().isBefore('2020-12-02')) {
|
||||
if (moment().isBefore('2020-12-17T08:00-04:00')) {
|
||||
return [
|
||||
{
|
||||
type: 'armoire',
|
||||
path: 'armoire',
|
||||
},
|
||||
{
|
||||
type: 'hatchingPotions',
|
||||
path: 'hatchingPotions.White',
|
||||
},
|
||||
{
|
||||
type: 'eggs',
|
||||
path: 'eggs.Cactus',
|
||||
},
|
||||
{
|
||||
type: 'food',
|
||||
path: 'food.Honey',
|
||||
},
|
||||
];
|
||||
}
|
||||
if (moment().isBefore('2021-01-31T20:00-04:00')) {
|
||||
return [
|
||||
{
|
||||
type: 'armoire',
|
||||
@@ -12,15 +32,15 @@ const featuredItems = {
|
||||
},
|
||||
{
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.AutumnLeaf',
|
||||
path: 'premiumHatchingPotions.StainedGlass',
|
||||
},
|
||||
{
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.Frost',
|
||||
path: 'premiumHatchingPotions.Aurora',
|
||||
},
|
||||
{
|
||||
type: 'food',
|
||||
path: 'food.Chocolate',
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'premiumHatchingPotions.IcySnow',
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -29,49 +49,65 @@ const featuredItems = {
|
||||
type: 'armoire',
|
||||
path: 'armoire',
|
||||
},
|
||||
{
|
||||
type: 'food',
|
||||
path: 'food.Saddle',
|
||||
},
|
||||
{
|
||||
type: 'hatchingPotions',
|
||||
path: 'hatchingPotions.White',
|
||||
path: 'hatchingPotions.Golden',
|
||||
},
|
||||
{
|
||||
type: 'eggs',
|
||||
path: 'eggs.Cactus',
|
||||
},
|
||||
{
|
||||
type: 'food',
|
||||
path: 'food.Honey',
|
||||
path: 'eggs.Fox',
|
||||
},
|
||||
];
|
||||
},
|
||||
quests () {
|
||||
if (moment().isBefore('2020-11-02')) {
|
||||
if (moment().isBefore('2020-12-17T08:00-04:00')) {
|
||||
return [
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.gryphon',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.hedgehog',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.rat',
|
||||
},
|
||||
];
|
||||
}
|
||||
if (moment().isBefore('2021-01-31T20:00-04:00')) {
|
||||
return [
|
||||
{
|
||||
type: 'bundles',
|
||||
path: 'bundles.sandySidekicks',
|
||||
path: 'bundles.winterQuests',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.taskwoodsTerror1',
|
||||
path: 'quests.spider',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.ruby',
|
||||
path: 'quests.silver',
|
||||
},
|
||||
];
|
||||
}
|
||||
return [
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.gryphon',
|
||||
path: 'quests.ghost_stag',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.hedgehog',
|
||||
path: 'quests.unicorn',
|
||||
},
|
||||
{
|
||||
type: 'quests',
|
||||
path: 'quests.rat',
|
||||
path: 'quests.falcon',
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user