From f4bf576c2f6e463a53adddd5bf1613572c0b7878 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 12 Oct 2021 16:01:33 -0500 Subject: [PATCH 1/2] feat(content): enable Spooky Sporklies --- website/common/script/content/spells.js | 2 +- website/common/script/libs/shops-seasonal.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/common/script/content/spells.js b/website/common/script/content/spells.js index 37a9a7c240..63c81a17b9 100644 --- a/website/common/script/content/spells.js +++ b/website/common/script/content/spells.js @@ -325,7 +325,7 @@ spells.special = { target: 'user', notes: t('spellSpecialSpookySparklesNotes'), canOwn () { - return false; + return moment().isBetween('2021-10-12T08:00-04:00', EVENTS.fall2021.end); }, cast (user, target, req) { if (!user.items.special.spookySparkles) throw new NotAuthorized(t('spellNotOwned')(req.language)); diff --git a/website/common/script/libs/shops-seasonal.config.js b/website/common/script/libs/shops-seasonal.config.js index 9a5562abec..51501499c5 100644 --- a/website/common/script/libs/shops-seasonal.config.js +++ b/website/common/script/libs/shops-seasonal.config.js @@ -37,9 +37,9 @@ export default { } : {}, - availableSpells: SHOP_OPEN && moment().isBefore('2021-07-06T08:00-04:00') + availableSpells: SHOP_OPEN && moment().isBetween('2021-10-12T08:00-04:00', CURRENT_EVENT.end) ? [ - 'seafoam', + 'spookySparkles', ] : [], From dc1bbbbea9050a34b433232834518b9baf58a2cf Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 12 Oct 2021 16:06:05 -0500 Subject: [PATCH 2/2] 4.208.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c95ba39ac..c3695eee15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "habitica", - "version": "4.208.0", + "version": "4.208.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 08e35d6703..b58125e074 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "habitica", "description": "A habit tracker app which treats your goals like a Role Playing Game.", - "version": "4.208.0", + "version": "4.208.1", "main": "./website/server/index.js", "dependencies": { "@babel/core": "^7.15.5",