feat(content): Winter Wonderland 2021-22

This commit is contained in:
SabreCat
2021-12-21 15:32:11 -06:00
parent 741ddd9006
commit 685ba1286e
12 changed files with 219 additions and 398 deletions

View File

@@ -1,10 +1,7 @@
import moment from 'moment';
import find from 'lodash/find';
import t from './translation';
import { EVENTS } from './constants';
const CURRENT_EVENT = find(EVENTS, event => moment().isBetween(event.start, event.end));
/*
---------------------------------------------------------------
Discounted Item Bundles
@@ -87,7 +84,7 @@ const bundles = {
'penguin',
],
canBuy () {
return CURRENT_EVENT && CURRENT_EVENT.season === 'winter';
return moment().isBetween('2022-01-11T08:00-05:00', '2022-01-31T20:00-05:00');
},
type: 'quests',
value: 7,