mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion
This commit is contained in:
@@ -1,23 +1,42 @@
|
||||
// import { SEASONAL_SETS } from '../content/constants';
|
||||
import moment from 'moment';
|
||||
import { SEASONAL_SETS } from '../content/constants';
|
||||
|
||||
const SHOP_OPEN = moment().isBetween('2020-12-17T08:00-04:00', '2021-01-31T20:00-04:00');
|
||||
|
||||
export default {
|
||||
opened: false,
|
||||
opened: SHOP_OPEN,
|
||||
|
||||
currentSeason: 'Closed',
|
||||
currentSeason: SHOP_OPEN ? 'Winter' : 'Closed',
|
||||
|
||||
dateRange: { start: '2020-09-22', end: '2020-10-31' },
|
||||
dateRange: { start: '2020-12-17', end: '2021-01-31' },
|
||||
|
||||
availableSets: [
|
||||
],
|
||||
availableSets: SHOP_OPEN
|
||||
? [
|
||||
...SEASONAL_SETS.winter,
|
||||
]
|
||||
: [],
|
||||
|
||||
pinnedSets: {
|
||||
},
|
||||
pinnedSets: SHOP_OPEN
|
||||
? {
|
||||
healer: 'winter2021ArcticExplorerHealerSet',
|
||||
rogue: 'winter2021HollyIvyRogueSet',
|
||||
warrior: 'winter2021IceFishingWarriorSet',
|
||||
wizard: 'winter2021WinterMoonMageSet',
|
||||
}
|
||||
: {},
|
||||
|
||||
availableSpells: [
|
||||
],
|
||||
availableSpells: moment().isBetween('2020-12-17T08:00-04:00', '2021-01-31T20:00-04:00')
|
||||
? [
|
||||
'snowball',
|
||||
]
|
||||
: [],
|
||||
|
||||
availableQuests: [
|
||||
],
|
||||
availableQuests: SHOP_OPEN
|
||||
? [
|
||||
'evilsanta',
|
||||
'evilsanta2',
|
||||
]
|
||||
: [],
|
||||
|
||||
featuredSet: 'fall2020WraithWarriorSet',
|
||||
featuredSet: 'winter2020CarolOfTheMageSet',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user