feat(event): New Year's Eve 2021

This commit is contained in:
SabreCat
2021-12-30 13:34:04 -06:00
parent bcfea31ffb
commit 5973bca327
7 changed files with 153 additions and 9 deletions
@@ -1768,6 +1768,12 @@ const head = {
winter2022Healer: {
set: 'winter2022IceCrystalHealerSet',
},
nye2021: {
text: t('headSpecialNye2021Text'),
notes: t('headSpecialNye2021Notes'),
value: 0,
canOwn: ownsItem('head_special_nye2021'),
},
};
const headStats = {
+1 -1
View File
@@ -111,7 +111,7 @@ api.cardTypes = {
nye: {
key: 'nye',
messageOptions: 5,
yearRound: moment().isBefore('2021-01-02'),
yearRound: moment().isBefore('2022-01-02T20:00-04:00'),
},
thankyou: {
key: 'thankyou',
+2 -2
View File
@@ -289,7 +289,7 @@ spells.special = {
target: 'user',
notes: t('spellSpecialSnowballAuraNotes'),
canOwn () {
return false;
return moment().isBetween('2021-12-30T08:00-04:00', EVENTS.winter2022.end);
},
cast (user, target, req) {
if (!user.items.special.snowball) throw new NotAuthorized(t('spellNotOwned')(req.language));
@@ -435,7 +435,7 @@ spells.special = {
target: 'user',
notes: t('nyeCardNotes'),
canOwn () {
return false;
return moment().isBetween('2021-12-30T08:00-04:00', '2022-01-02T20:00-04:00');
},
cast (user, target) {
if (user === target) {