fix(event): correct logic for various Valentine's items

This commit is contained in:
SabreCat
2023-02-13 11:25:02 -06:00
parent 74da6d8798
commit f9db4b9b5b
6 changed files with 23 additions and 17 deletions

View File

@@ -16,18 +16,18 @@ export const EVENTS = {
npcImageSuffix: '',
},
bundle202302: {
start: '2023-02-13T08:00-05:00',
start: '2023-02-21T08:00-05:00',
end: '2023-02-28T23:59-05:00',
},
potions202302:{
start: '2023-02-21T08:00-05:00',
start: '2023-02-13T08:00-05:00',
end: '2023-02-28T23:59-05:00',
},
valentines2023: {
start: '2023-02-13T08:00-05:00',
end: '2023-02-17T23:59-05:00',
season: 'valentines',
npcImageSuffix: 'valentines',
npcImageSuffix: '_valentines',
},
birthday10: {
start: '2023-01-30T08:00-05:00',

View File

@@ -137,7 +137,7 @@ api.cardTypes = {
valentine: {
key: 'valentine',
messageOptions: 4,
yearRound: moment().isBefore('2022-02-18T20:00-05:00'),
yearRound: moment().isBefore('2023-02-17T23:59-05:00'),
},
birthday: {
key: 'birthday',

View File

@@ -475,7 +475,7 @@ spells.special = {
target: 'user',
notes: t('valentineCardNotes'),
canOwn () {
return false;
return moment().isBetween('2023-02-13T08:00-05:00', '2023-02-17T23:59-05:00');
},
cast (user, target) {
if (user === target) {