diff --git a/website/client/src/components/shops/timeTravelers/index.vue b/website/client/src/components/shops/timeTravelers/index.vue index ef6646860c..58b90322d7 100644 --- a/website/client/src/components/shops/timeTravelers/index.vue +++ b/website/client/src/components/shops/timeTravelers/index.vue @@ -424,7 +424,6 @@ export default { this.$root.$emit('buyModal::hidden', this.selectedItemToBuy.key); } }); - console.log('setting current event'); this.currentEvent = _find(this.currentEventList, event => Boolean(['winter', 'spring', 'summer', 'fall'].includes(event.season))); }, beforeDestroy () { diff --git a/website/client/src/main.js b/website/client/src/main.js index 929d636a6e..ddf86c80a6 100644 --- a/website/client/src/main.js +++ b/website/client/src/main.js @@ -40,14 +40,12 @@ if (process.env.ENABLE_TIME_TRAVEL) { const sinon = await import('sinon'); const axios = await import('axios'); const response = await axios.get('/api/v4/debug/time-travel-time'); - console.log(response.data.data.time); const time = new Date(response.data.data.time); Vue.config.clock = sinon.useFakeTimers({ now: time, shouldAdvanceTime: true, }); - console.log('Time travel mode activated. It is now', new Date()); })(); } diff --git a/website/client/src/mixins/avatarEditUtilities.js b/website/client/src/mixins/avatarEditUtilities.js index 207defffd6..8ddc8e8ac6 100644 --- a/website/client/src/mixins/avatarEditUtilities.js +++ b/website/client/src/mixins/avatarEditUtilities.js @@ -1,4 +1,3 @@ -import moment from 'moment'; import axios from 'axios'; import get from 'lodash/get'; @@ -6,6 +5,7 @@ import unlock from '@/../../common/script/ops/unlock'; import buy from '@/../../common/script/ops/buy/buy'; import appearanceSets from '@/../../common/script/content/appearance/sets'; +import { getScheduleMatchingGroup } from '@/../../common/script/content/constants/schedule'; import { userStateMixin } from './userState'; @@ -18,13 +18,8 @@ export const avatarEditorUtilies = { // eslint-disable-line import/prefer-defaul }, methods: { hideSet (setKey) { - if (appearanceSets[setKey].availableFrom) { - return !moment().isBetween( - appearanceSets[setKey].availableFrom, - appearanceSets[setKey].availableUntil, - ); - } - return moment(appearanceSets[setKey].availableUntil).isBefore(moment()); + const matcher = getScheduleMatchingGroup('customizations'); + return !matcher.match(setKey); }, mapKeysToFreeOption (key, type, subType) { const userPreference = subType diff --git a/website/client/src/mixins/seasonalNPC.js b/website/client/src/mixins/seasonalNPC.js index 830f78ab94..e6640e3b83 100644 --- a/website/client/src/mixins/seasonalNPC.js +++ b/website/client/src/mixins/seasonalNPC.js @@ -8,7 +8,6 @@ export default { }, methods: { npcClass (name) { - console.log('npcClass', name, this.currentEvent); if (!this.currentEvent || !this.currentEvent.season) return `npc_${name}`; return `npc_${name} npc_${name}_${this.currentEvent.season}`; }, diff --git a/website/client/src/store/actions/worldState.js b/website/client/src/store/actions/worldState.js index 5192fe97d6..367b9299a8 100644 --- a/website/client/src/store/actions/worldState.js +++ b/website/client/src/store/actions/worldState.js @@ -6,7 +6,6 @@ export async function getWorldState (store, options = {}) { path: 'worldState', url: '/api/v4/world-state', deserialize (response) { - console.log(response.data.data); return response.data.data; }, forceLoad: options.forceLoad, diff --git a/website/common/script/content/appearance/sets.js b/website/common/script/content/appearance/sets.js index 05505bf35a..bd6f20384e 100644 --- a/website/common/script/content/appearance/sets.js +++ b/website/common/script/content/appearance/sets.js @@ -1,6 +1,5 @@ import t from '../translation'; import prefill from './prefill'; -import { EVENTS } from '../constants'; export default prefill({ baseHair1: { setPrice: 5, text: t('hairSet1') }, @@ -8,31 +7,31 @@ export default prefill({ baseHair3: { setPrice: 5, text: t('hairSet3') }, facialHair: { setPrice: 5, text: t('bodyFacialHair') }, specialShirts: { setPrice: 5, text: t('specialShirts') }, - winterHairColors: { setPrice: 5, availableUntil: '2016-01-01' }, - pastelHairColors: { setPrice: 5, availableUntil: '2016-01-01' }, + winterHairColors: { setPrice: 5 }, + pastelHairColors: { setPrice: 5 }, rainbowHairColors: { setPrice: 5, text: t('rainbowColors') }, shimmerHairColors: { - setPrice: 5, availableFrom: '2024-04-16T08:00-05:00', availableUntil: EVENTS.spring2024.end, text: t('shimmerColors'), + setPrice: 5, text: t('shimmerColors'), }, hauntedHairColors: { - setPrice: 5, availableFrom: '2023-10-03T08:00-04:00', availableUntil: EVENTS.fall2023.end, text: t('hauntedColors'), + setPrice: 5, text: t('hauntedColors'), }, winteryHairColors: { - setPrice: 5, availableFrom: '2023-01-16T08:00-05:00', availableUntil: EVENTS.winter2024.end, text: t('winteryColors'), + setPrice: 5, text: t('winteryColors'), }, rainbowSkins: { setPrice: 5, text: t('rainbowSkins') }, animalSkins: { setPrice: 5, text: t('animalSkins') }, pastelSkins: { - setPrice: 5, availableFrom: '2024-04-16T08:00-05:00', availableUntil: EVENTS.spring2024.end, text: t('pastelSkins'), + setPrice: 5, text: t('pastelSkins'), }, - spookySkins: { setPrice: 5, availableUntil: '2016-01-01', text: t('spookySkins') }, + spookySkins: { setPrice: 5, text: t('spookySkins') }, supernaturalSkins: { - setPrice: 5, availableFrom: '2023-10-03T08:00-04:00', availableUntil: EVENTS.fall2023.end, text: t('supernaturalSkins'), + setPrice: 5, text: t('supernaturalSkins'), }, splashySkins: { - setPrice: 5, availableFrom: '2023-07-11T08:00-05:00', availableUntil: EVENTS.summer2023.end, text: t('splashySkins'), + setPrice: 5, text: t('splashySkins'), }, winterySkins: { - setPrice: 5, availableFrom: '2023-01-16T08:00-05:00', availableUntil: EVENTS.winter2024.end, text: t('winterySkins'), + setPrice: 5, text: t('winterySkins'), }, }); diff --git a/website/common/script/content/bundles.js b/website/common/script/content/bundles.js index 049fb70f04..b90b727eae 100644 --- a/website/common/script/content/bundles.js +++ b/website/common/script/content/bundles.js @@ -18,10 +18,6 @@ const bundles = { 'harpy', 'owl', ], - event: EVENTS.bundle202309, - canBuy () { - return moment().isBetween(EVENTS.bundle202309.start, EVENTS.bundle202309.end); - }, type: 'quests', class: 'quest_bundle_featheredFriends', value: 7, @@ -35,10 +31,6 @@ const bundles = { 'turtle', 'whale', ], - event: EVENTS.bundle202306, - canBuy () { - return moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end); - }, type: 'quests', class: 'quest_bundle_splashyPals', value: 7, @@ -52,10 +44,6 @@ const bundles = { 'horse', 'sheep', ], - event: EVENTS.bundle202209, - canBuy () { - return moment().isBetween(EVENTS.bundle202209.start, EVENTS.bundle202209.end); - }, type: 'quests', value: 7, }, @@ -68,10 +56,6 @@ const bundles = { 'spider', 'frog', ], - event: EVENTS.bundle202210, - canBuy () { - return moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end); - }, type: 'quests', value: 7, }, @@ -85,10 +69,6 @@ const bundles = { 'evilsanta2', 'penguin', ], - event: EVENTS.winter2024, - canBuy () { - return moment().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end); - }, type: 'quests', value: 7, }, @@ -101,9 +81,6 @@ const bundles = { 'beetle', 'butterfly', ], - canBuy () { - return moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end); - }, type: 'quests', value: 7, }, @@ -116,10 +93,6 @@ const bundles = { 'ferret', 'guineapig', ], - event: EVENTS.bundle202403, - canBuy () { - return moment().isBetween(EVENTS.bundle202403.start, EVENTS.bundle202403.end); - }, type: 'quests', value: 7, }, @@ -132,10 +105,6 @@ const bundles = { 'kraken', 'octopus', ], - event: EVENTS.bundle202206, - canBuy () { - return moment().isBetween(EVENTS.bundle202206.start, EVENTS.bundle202206.end); - }, type: 'quests', value: 7, }, @@ -148,10 +117,6 @@ const bundles = { 'hedgehog', 'treeling', ], - event: EVENTS.bundle202208, - canBuy () { - return moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202208.end); - }, type: 'quests', value: 7, }, @@ -164,10 +129,6 @@ const bundles = { 'rock', 'yarn', ], - event: EVENTS.bundle202311, - canBuy () { - return moment().isBetween(EVENTS.bundle202311.start, EVENTS.bundle202311.end); - }, type: 'quests', value: 7, }, @@ -180,10 +141,6 @@ const bundles = { 'penguin', 'rooster', ], - event: EVENTS.bundle202305, - canBuy () { - return moment().isBetween(EVENTS.bundle202305.start, EVENTS.bundle202305.end); - }, type: 'quests', value: 7, }, @@ -196,10 +153,6 @@ const bundles = { 'seaserpent', 'gryphon', ], - event: EVENTS.bundle202402, - canBuy () { - return moment().isBetween(EVENTS.bundle202402.start, EVENTS.bundle202402.end); - }, type: 'quests', value: 7, }, @@ -212,10 +165,6 @@ const bundles = { 'snake', 'velociraptor', ], - event: EVENTS.bundle202211, - canBuy () { - return moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end); - }, type: 'quests', value: 7, }, @@ -228,9 +177,6 @@ const bundles = { 'triceratops', 'trex_undead', ], - canBuy () { - return moment().isBetween('2022-05-16', '2022-05-31'); - }, type: 'quests', value: 7, }, @@ -243,10 +189,6 @@ const bundles = { 'sloth', 'treeling', ], - event: EVENTS.bundle202303, - canBuy () { - return moment().isBetween(EVENTS.bundle202303.start, EVENTS.bundle202303.end); - }, type: 'quests', value: 7, }, @@ -259,10 +201,6 @@ const bundles = { 'snake', 'spider', ], - event: EVENTS.bundle202310, - canBuy () { - return moment().isBetween(EVENTS.bundle202310.start, EVENTS.bundle202310.end); - }, type: 'quests', value: 7, }, diff --git a/website/common/script/content/constants/schedule.js b/website/common/script/content/constants/schedule.js index fb90846f6f..edcbd86cb7 100644 --- a/website/common/script/content/constants/schedule.js +++ b/website/common/script/content/constants/schedule.js @@ -790,7 +790,6 @@ export function getScheduleMatchingGroup (type, date) { cacheDate = null; cachedScheduleMatchers = null; } - console.log('Loading content for', type, 'on', checkedDate, 'with cached date', cacheDate, 'and cached schedule'); if (!cachedScheduleMatchers) { cacheDate = new Date(); const scheduleMatchers = {}; diff --git a/website/common/script/content/gear/sets/special/index.js b/website/common/script/content/gear/sets/special/index.js index 611a495328..de0a064e0a 100644 --- a/website/common/script/content/gear/sets/special/index.js +++ b/website/common/script/content/gear/sets/special/index.js @@ -1,7 +1,5 @@ -import moment from 'moment'; import pickBy from 'lodash/pickBy'; import defaults from 'lodash/defaults'; -import find from 'lodash/find'; import upperFirst from 'lodash/upperFirst'; import { CLASSES, @@ -15,9 +13,6 @@ import * as wonderconGear from './special-wondercon'; import t from '../../../translation'; import { getClassName } from '../../../../libs/getClassName'; -const CURRENT_EVENT = find(EVENTS, event => moment().isBetween(event.start, event.end) - && ['winter', 'spring', 'summer', 'fall'].includes(event.season)); - const gearEvents = pickBy(EVENTS, event => event.gear); const armor = { @@ -124,7 +119,6 @@ const armor = { notes: t('armorSpecialYetiNotes', { con: 9 }), con: 9, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, ski: { specialClass: 'rogue', @@ -133,7 +127,6 @@ const armor = { notes: t('armorSpecialSkiNotes', { per: 15 }), per: 15, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, candycane: { specialClass: 'wizard', @@ -142,7 +135,6 @@ const armor = { notes: t('armorSpecialCandycaneNotes', { int: 9 }), int: 9, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, snowflake: { specialClass: 'healer', @@ -151,7 +143,6 @@ const armor = { notes: t('armorSpecialSnowflakeNotes', { con: 15 }), con: 15, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday: { event: EVENTS.birthday, @@ -161,67 +152,51 @@ const armor = { }, springRogue: { set: 'stealthyKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springWarrior: { set: 'mightyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springMage: { set: 'magicMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springHealer: { set: 'lovingPupSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summerRogue: { set: 'roguishPirateSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerWarrior: { set: 'daringSwashbucklerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerMage: { set: 'emeraldMermageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerHealer: { set: 'reefSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fallRogue: { set: 'vampireSmiterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallWarrior: { set: 'monsterOfScienceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallMage: { set: 'witchyWizardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallHealer: { set: 'mummyMedicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2015Rogue: { set: 'icicleDrakeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Warrior: { set: 'gingerbreadSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Mage: { set: 'northMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Healer: { set: 'soothingSkaterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2015: { text: t('armorSpecialBirthday2015Text'), @@ -231,51 +206,39 @@ const armor = { }, spring2015Rogue: { set: 'sneakySqueakerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Warrior: { set: 'bewareDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Mage: { set: 'magicianBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Healer: { set: 'comfortingKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2015Rogue: { set: 'reefRenegadeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Warrior: { set: 'sunfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Mage: { set: 'shipSoothsayerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Healer: { set: 'strappingSailorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2015Rogue: { set: 'battleRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Warrior: { set: 'scarecrowWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Mage: { set: 'stitchWitchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Healer: { set: 'potionerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, gaymerx: { event: EVENTS.gaymerx, @@ -285,19 +248,15 @@ const armor = { }, winter2016Rogue: { set: 'cocoaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Warrior: { set: 'snowDaySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Mage: { set: 'snowboardingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Healer: { set: 'festiveFairySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2016: { text: t('armorSpecialBirthday2016Text'), @@ -307,67 +266,51 @@ const armor = { }, spring2016Rogue: { set: 'cleverDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Warrior: { set: 'braveMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Mage: { set: 'grandMalkinSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Healer: { set: 'springingBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2016Rogue: { set: 'summer2016EelSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Warrior: { set: 'summer2016SharkWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Mage: { set: 'summer2016DolphinMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Healer: { set: 'summer2016SeahorseHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2016Rogue: { set: 'fall2016BlackWidowSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Warrior: { set: 'fall2016SwampThingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Mage: { set: 'fall2016WickedSorcererSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Healer: { set: 'fall2016GorgonHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2017Rogue: { set: 'winter2017FrostyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Warrior: { set: 'winter2017IceHockeySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Mage: { set: 'winter2017WinterWolfSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Healer: { set: 'winter2017SugarPlumSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2017: { text: t('armorSpecialBirthday2017Text'), @@ -377,67 +320,51 @@ const armor = { }, spring2017Rogue: { set: 'spring2017SneakyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Warrior: { set: 'spring2017FelineWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Mage: { set: 'spring2017CanineConjurorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Healer: { set: 'spring2017FloralMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2017Rogue: { set: 'summer2017SeaDragonSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Warrior: { set: 'summer2017SandcastleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Mage: { set: 'summer2017WhirlpoolMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Healer: { set: 'summer2017SeashellSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2017Rogue: { set: 'fall2017TrickOrTreatSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Warrior: { set: 'fall2017HabitoweenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Mage: { set: 'fall2017MasqueradeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Healer: { set: 'fall2017HauntedHouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2018Rogue: { set: 'winter2018ReindeerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Warrior: { set: 'winter2018GiftWrappedSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Mage: { set: 'winter2018ConfettiSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Healer: { set: 'winter2018MistletoeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2018: { text: t('armorSpecialBirthday2018Text'), @@ -447,51 +374,39 @@ const armor = { }, spring2018Rogue: { set: 'spring2018DucklingRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Warrior: { set: 'spring2018SunriseWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Mage: { set: 'spring2018TulipMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Healer: { set: 'spring2018GarnetHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2018Rogue: { set: 'summer2018FisherRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Warrior: { set: 'summer2018BettaFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Mage: { set: 'summer2018LionfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Healer: { set: 'summer2018MerfolkMonarchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2018Rogue: { set: 'fall2018AlterEgoSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Warrior: { set: 'fall2018MinotaurWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Mage: { set: 'fall2018CandymancerMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Healer: { set: 'fall2018CarnivorousPlantSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, turkeyArmorGilded: { text: t('armorSpecialTurkeyArmorGildedText'), @@ -501,19 +416,15 @@ const armor = { }, winter2019Rogue: { set: 'winter2019PoinsettiaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Warrior: { set: 'winter2019BlizzardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Mage: { set: 'winter2019PyrotechnicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Healer: { set: 'winter2019WinterStarSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2019: { text: t('armorSpecialBirthday2019Text'), @@ -523,51 +434,39 @@ const armor = { }, spring2019Rogue: { set: 'spring2019CloudRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Warrior: { set: 'spring2019OrchidWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Mage: { set: 'spring2019AmberMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Healer: { set: 'spring2019RobinHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2019Rogue: { set: 'summer2019HammerheadRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Warrior: { set: 'summer2019SeaTurtleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Mage: { set: 'summer2019WaterLilyMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Healer: { set: 'summer2019ConchHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2019Rogue: { set: 'fall2019OperaticSpecterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Warrior: { set: 'fall2019RavenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Mage: { set: 'fall2019CyclopsSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Healer: { set: 'fall2019LichSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, ks2019: { text: t('armorSpecialKS2019Text'), @@ -578,19 +477,15 @@ const armor = { }, winter2020Rogue: { set: 'winter2020LanternSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Warrior: { set: 'winter2020EvergreenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Mage: { set: 'winter2020CarolOfTheMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Healer: { set: 'winter2020WinterSpiceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2020: { text: t('armorSpecialBirthday2020Text'), @@ -600,67 +495,51 @@ const armor = { }, spring2020Rogue: { set: 'spring2020LapisLazuliRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Warrior: { set: 'spring2020BeetleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Mage: { set: 'spring2020PuddleMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Healer: { set: 'spring2020IrisHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2020Rogue: { set: 'summer2020CrocodileRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Warrior: { set: 'summer2020RainbowTroutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Mage: { set: 'summer2020OarfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Healer: { set: 'summer2020SeaGlassHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2020Rogue: { set: 'fall2020TwoHeadedRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Warrior: { set: 'fall2020WraithWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Mage: { set: 'fall2020ThirdEyeMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Healer: { set: 'fall2020DeathsHeadMothHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2021Rogue: { set: 'winter2021HollyIvyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Warrior: { set: 'winter2021IceFishingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Mage: { set: 'winter2021WinterMoonMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Healer: { set: 'winter2021ArcticExplorerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2021: { text: t('armorSpecialBirthday2021Text'), @@ -670,83 +549,63 @@ const armor = { }, spring2021Rogue: { set: 'spring2021TwinFlowerRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Warrior: { set: 'spring2021SunstoneWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Mage: { set: 'spring2021SwanMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Healer: { set: 'spring2021WillowHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2021Rogue: { set: 'summer2021ClownfishRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Warrior: { set: 'summer2021FlyingFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Mage: { set: 'summer2021NautilusMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Healer: { set: 'summer2021ParrotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2021Rogue: { set: 'fall2021OozeRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Warrior: { set: 'fall2021HeadlessWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Mage: { set: 'fall2021BrainEaterMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Healer: { set: 'fall2021FlameSummonerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2022Rogue: { set: 'winter2022FireworksRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Warrior: { set: 'winter2022StockingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Mage: { set: 'winter2022PomegranateMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Healer: { set: 'winter2022IceCrystalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2022Rogue: { set: 'spring2022MagpieRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Warrior: { set: 'spring2022RainstormWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Mage: { set: 'spring2022ForsythiaMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Healer: { set: 'spring2022PeridotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, birthday2022: { text: t('armorSpecialBirthday2022Text'), @@ -756,51 +615,39 @@ const armor = { }, summer2022Rogue: { set: 'summer2022CrabRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Warrior: { set: 'summer2022WaterspoutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Mage: { set: 'summer2022MantaRayMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Healer: { set: 'summer2022AngelfishHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2022Rogue: { set: 'fall2022KappaRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Warrior: { set: 'fall2022OrcWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Mage: { set: 'fall2022HarpyMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Healer: { set: 'fall2022WatcherHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2023Rogue: { set: 'winter2023RibbonRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Warrior: { set: 'winter2023WalrusWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Mage: { set: 'winter2023FairyLightsMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Healer: { set: 'winter2023CardinalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, birthday2023: { text: t('armorSpecialBirthday2023Text'), @@ -810,51 +657,39 @@ const armor = { }, spring2023Rogue: { set: 'spring2023CaterpillarRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Warrior: { set: 'spring2023HummingbirdWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Mage: { set: 'spring2023MoonstoneMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Healer: { set: 'spring2023LilyHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2023Rogue: { set: 'summer2023GuppyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Warrior: { set: 'summer2023GoldfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Mage: { set: 'summer2023CoralMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Healer: { set: 'summer2023KelpHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2023Warrior: { set: 'fall2023ScaryMovieWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Healer: { set: 'fall2023BogCreatureHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Mage: { set: 'fall2023ScarletWarlockMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Rogue: { set: 'fall2023WitchsBrewRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2024Warrior: { set: 'winter2024PeppermintBarkWarriorSet', @@ -911,9 +746,6 @@ Object.keys(gearEvents).forEach(event => { notes: t(`${textString}Notes`, armorStats[klass]), value: 90, }, armorStats[klass]); - if (armor[eventString].canBuy && armor[eventString].canBuy()) { - armor[eventString].event = CURRENT_EVENT; - } }); }); @@ -946,7 +778,6 @@ const back = { notes: t('backBearTailNotes'), value: 20, canOwn: ownsItem('back_special_bearTail'), - canBuy: () => true, }, cactusTail: { gearSet: 'animal', @@ -954,7 +785,6 @@ const back = { notes: t('backCactusTailNotes'), value: 20, canOwn: ownsItem('back_special_cactusTail'), - canBuy: () => true, }, foxTail: { gearSet: 'animal', @@ -962,7 +792,6 @@ const back = { notes: t('backFoxTailNotes'), value: 20, canOwn: ownsItem('back_special_foxTail'), - canBuy: () => true, }, lionTail: { gearSet: 'animal', @@ -970,7 +799,6 @@ const back = { notes: t('backLionTailNotes'), value: 20, canOwn: ownsItem('back_special_lionTail'), - canBuy: () => true, }, pandaTail: { gearSet: 'animal', @@ -978,7 +806,6 @@ const back = { notes: t('backPandaTailNotes'), value: 20, canOwn: ownsItem('back_special_pandaTail'), - canBuy: () => true, }, pigTail: { gearSet: 'animal', @@ -986,7 +813,6 @@ const back = { notes: t('backPigTailNotes'), value: 20, canOwn: ownsItem('back_special_pigTail'), - canBuy: () => true, }, tigerTail: { gearSet: 'animal', @@ -994,7 +820,6 @@ const back = { notes: t('backTigerTailNotes'), value: 20, canOwn: ownsItem('back_special_tigerTail'), - canBuy: () => true, }, wolfTail: { gearSet: 'animal', @@ -1002,7 +827,6 @@ const back = { notes: t('backWolfTailNotes'), value: 20, canOwn: ownsItem('back_special_wolfTail'), - canBuy: () => true, }, turkeyTailGilded: { text: t('backSpecialTurkeyTailGildedText'), @@ -1035,7 +859,6 @@ const body = { text: t('bodySpecialSummerHealerText'), notes: t('bodySpecialSummerHealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerMage: { specialClass: 'wizard', @@ -1043,7 +866,6 @@ const body = { text: t('bodySpecialSummerMageText'), notes: t('bodySpecialSummerMageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Healer: { specialClass: 'healer', @@ -1051,7 +873,6 @@ const body = { text: t('bodySpecialSummer2015HealerText'), notes: t('bodySpecialSummer2015HealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Mage: { specialClass: 'wizard', @@ -1059,7 +880,6 @@ const body = { text: t('bodySpecialSummer2015MageText'), notes: t('bodySpecialSummer2015MageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Rogue: { specialClass: 'rogue', @@ -1067,7 +887,6 @@ const body = { text: t('bodySpecialSummer2015RogueText'), notes: t('bodySpecialSummer2015RogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Warrior: { specialClass: 'warrior', @@ -1075,7 +894,6 @@ const body = { text: t('bodySpecialSummer2015WarriorText'), notes: t('bodySpecialSummer2015WarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, aetherAmulet: { text: t('bodySpecialAetherAmuletText'), @@ -1108,7 +926,6 @@ const eyewear = { text: t('eyewearSpecialSummerRogueText'), notes: t('eyewearSpecialSummerRogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerWarrior: { specialClass: 'warrior', @@ -1116,7 +933,6 @@ const eyewear = { text: t('eyewearSpecialSummerWarriorText'), notes: t('eyewearSpecialSummerWarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, blackTopFrame: { gearSet: 'glasses', @@ -1229,7 +1045,6 @@ const eyewear = { text: t('eyewearSpecialFall2019RogueText'), notes: t('eyewearSpecialFall2019RogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Healer: { specialClass: 'healer', @@ -1237,7 +1052,6 @@ const eyewear = { text: t('eyewearSpecialFall2019HealerText'), notes: t('eyewearSpecialFall2019HealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, ks2019: { text: t('eyewearSpecialKS2019Text'), @@ -1363,7 +1177,6 @@ const head = { notes: t('headSpecialYetiNotes', { str: 9 }), str: 9, value: 60, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, ski: { specialClass: 'rogue', @@ -1372,7 +1185,6 @@ const head = { notes: t('headSpecialSkiNotes', { per: 9 }), per: 9, value: 60, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, candycane: { specialClass: 'wizard', @@ -1381,7 +1193,6 @@ const head = { notes: t('headSpecialCandycaneNotes', { per: 7 }), per: 7, value: 60, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, snowflake: { specialClass: 'healer', @@ -1390,71 +1201,54 @@ const head = { notes: t('headSpecialSnowflakeNotes', { int: 7 }), int: 7, value: 60, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, springRogue: { set: 'stealthyKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springWarrior: { set: 'mightyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springMage: { set: 'magicMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springHealer: { set: 'lovingPupSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summerRogue: { set: 'roguishPirateSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerWarrior: { set: 'daringSwashbucklerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerMage: { set: 'emeraldMermageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerHealer: { set: 'reefSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fallRogue: { set: 'vampireSmiterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallWarrior: { set: 'monsterOfScienceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallMage: { set: 'witchyWizardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallHealer: { set: 'mummyMedicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2015Rogue: { set: 'icicleDrakeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Warrior: { set: 'gingerbreadSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Mage: { set: 'northMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Healer: { set: 'soothingSkaterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2014: { text: t('headSpecialNye2014Text'), @@ -1464,51 +1258,39 @@ const head = { }, spring2015Rogue: { set: 'sneakySqueakerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Warrior: { set: 'bewareDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Mage: { set: 'magicianBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Healer: { set: 'comfortingKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2015Rogue: { set: 'reefRenegadeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Warrior: { set: 'sunfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Mage: { set: 'shipSoothsayerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Healer: { set: 'strappingSailorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2015Rogue: { set: 'battleRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Warrior: { set: 'scarecrowWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Mage: { set: 'stitchWitchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Healer: { set: 'potionerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, gaymerx: { event: EVENTS.gaymerx, @@ -1518,19 +1300,15 @@ const head = { }, winter2016Rogue: { set: 'cocoaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Warrior: { set: 'snowDaySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Mage: { set: 'snowboardingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Healer: { set: 'festiveFairySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2015: { text: t('headSpecialNye2015Text'), @@ -1540,67 +1318,51 @@ const head = { }, spring2016Rogue: { set: 'cleverDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Warrior: { set: 'braveMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Mage: { set: 'grandMalkinSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Healer: { set: 'springingBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2016Rogue: { set: 'summer2016EelSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Warrior: { set: 'summer2016SharkWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Mage: { set: 'summer2016DolphinMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Healer: { set: 'summer2016SeahorseHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2016Rogue: { set: 'fall2016BlackWidowSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Warrior: { set: 'fall2016SwampThingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Mage: { set: 'fall2016WickedSorcererSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Healer: { set: 'fall2016GorgonHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2017Rogue: { set: 'winter2017FrostyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Warrior: { set: 'winter2017IceHockeySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Mage: { set: 'winter2017WinterWolfSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Healer: { set: 'winter2017SugarPlumSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2016: { text: t('headSpecialNye2016Text'), @@ -1610,35 +1372,27 @@ const head = { }, spring2017Rogue: { set: 'spring2017SneakyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Warrior: { set: 'spring2017FelineWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Mage: { set: 'spring2017CanineConjurorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Healer: { set: 'spring2017FloralMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2017Rogue: { set: 'summer2017SeaDragonSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Warrior: { set: 'summer2017SandcastleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Mage: { set: 'summer2017WhirlpoolMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Healer: { set: 'summer2017SeashellSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, namingDay2017: { text: t('headSpecialNamingDay2017Text'), @@ -1648,19 +1402,15 @@ const head = { }, fall2017Rogue: { set: 'fall2017TrickOrTreatSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Warrior: { set: 'fall2017HabitoweenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Mage: { set: 'fall2017MasqueradeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Healer: { set: 'fall2017HauntedHouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, nye2017: { text: t('headSpecialNye2017Text'), @@ -1670,67 +1420,51 @@ const head = { }, winter2018Rogue: { set: 'winter2018ReindeerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Warrior: { set: 'winter2018GiftWrappedSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Mage: { set: 'winter2018ConfettiSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Healer: { set: 'winter2018MistletoeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2018Rogue: { set: 'spring2018DucklingRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Warrior: { set: 'spring2018SunriseWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Mage: { set: 'spring2018TulipMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Healer: { set: 'spring2018GarnetHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2018Rogue: { set: 'summer2018FisherRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Warrior: { set: 'summer2018BettaFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Mage: { set: 'summer2018LionfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Healer: { set: 'summer2018MerfolkMonarchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2018Rogue: { set: 'fall2018AlterEgoSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Warrior: { set: 'fall2018MinotaurWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Mage: { set: 'fall2018CandymancerMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Healer: { set: 'fall2018CarnivorousPlantSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, turkeyHelmGilded: { text: t('headSpecialTurkeyHelmGildedText'), @@ -1740,19 +1474,15 @@ const head = { }, winter2019Rogue: { set: 'winter2019PoinsettiaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Warrior: { set: 'winter2019BlizzardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Mage: { set: 'winter2019PyrotechnicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Healer: { set: 'winter2019WinterStarSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2018: { text: t('headSpecialNye2018Text'), @@ -1768,51 +1498,39 @@ const head = { }, spring2019Rogue: { set: 'spring2019CloudRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Warrior: { set: 'spring2019OrchidWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Mage: { set: 'spring2019AmberMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Healer: { set: 'spring2019RobinHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2019Rogue: { set: 'summer2019HammerheadRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Warrior: { set: 'summer2019SeaTurtleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Mage: { set: 'summer2019WaterLilyMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Healer: { set: 'summer2019ConchHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2019Rogue: { set: 'fall2019OperaticSpecterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Warrior: { set: 'fall2019RavenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Mage: { set: 'fall2019CyclopsSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Healer: { set: 'fall2019LichSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, ks2019: { text: t('headSpecialKS2019Text'), @@ -1823,19 +1541,15 @@ const head = { }, winter2020Rogue: { set: 'winter2020LanternSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Warrior: { set: 'winter2020EvergreenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Mage: { set: 'winter2020CarolOfTheMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Healer: { set: 'winter2020WinterSpiceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2019: { text: t('headSpecialNye2019Text'), @@ -1845,67 +1559,51 @@ const head = { }, spring2020Rogue: { set: 'spring2020LapisLazuliRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Warrior: { set: 'spring2020BeetleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Mage: { set: 'spring2020PuddleMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Healer: { set: 'spring2020IrisHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2020Rogue: { set: 'summer2020CrocodileRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Warrior: { set: 'summer2020RainbowTroutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Mage: { set: 'summer2020OarfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Healer: { set: 'summer2020SeaGlassHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2020Rogue: { set: 'fall2020TwoHeadedRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Warrior: { set: 'fall2020WraithWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Mage: { set: 'fall2020ThirdEyeMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Healer: { set: 'fall2020DeathsHeadMothHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2021Rogue: { set: 'winter2021HollyIvyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Warrior: { set: 'winter2021IceFishingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Mage: { set: 'winter2021WinterMoonMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Healer: { set: 'winter2021ArcticExplorerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2020: { text: t('headSpecialNye2020Text'), @@ -1915,67 +1613,51 @@ const head = { }, spring2021Rogue: { set: 'spring2021TwinFlowerRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Warrior: { set: 'spring2021SunstoneWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Mage: { set: 'spring2021SwanMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Healer: { set: 'spring2021WillowHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2021Rogue: { set: 'summer2021ClownfishRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Warrior: { set: 'summer2021FlyingFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Mage: { set: 'summer2021NautilusMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Healer: { set: 'summer2021ParrotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2021Rogue: { set: 'fall2021OozeRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Warrior: { set: 'fall2021HeadlessWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Mage: { set: 'fall2021BrainEaterMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Healer: { set: 'fall2021FlameSummonerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2022Rogue: { set: 'winter2022FireworksRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Warrior: { set: 'winter2022StockingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Mage: { set: 'winter2022PomegranateMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Healer: { set: 'winter2022IceCrystalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2021: { text: t('headSpecialNye2021Text'), @@ -1985,67 +1667,51 @@ const head = { }, spring2022Rogue: { set: 'spring2022MagpieRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Warrior: { set: 'spring2022RainstormWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Mage: { set: 'spring2022ForsythiaMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Healer: { set: 'spring2022PeridotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2022Rogue: { set: 'summer2022CrabRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Warrior: { set: 'summer2022WaterspoutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Mage: { set: 'summer2022MantaRayMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Healer: { set: 'summer2022AngelfishHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2022Rogue: { set: 'fall2022KappaRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Warrior: { set: 'fall2022OrcWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Mage: { set: 'fall2022HarpyMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Healer: { set: 'fall2022WatcherHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2023Rogue: { set: 'winter2023RibbonRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Warrior: { set: 'winter2023WalrusWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Mage: { set: 'winter2023FairyLightsMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Healer: { set: 'winter2023CardinalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, nye2022: { text: t('headSpecialNye2022Text'), @@ -2055,51 +1721,39 @@ const head = { }, spring2023Rogue: { set: 'spring2023CaterpillarRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Warrior: { set: 'spring2023HummingbirdWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Mage: { set: 'spring2023MoonstoneMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Healer: { set: 'spring2023LilyHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2023Rogue: { set: 'summer2023GuppyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Warrior: { set: 'summer2023GoldfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Mage: { set: 'summer2023CoralMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Healer: { set: 'summer2023KelpHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2023Healer: { set: 'fall2023BogCreatureHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Mage: { set: 'fall2023ScarletWarlockMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Rogue: { set: 'fall2023WitchsBrewRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Warrior: { set: 'fall2023ScaryMovieWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2024Healer: { set: 'winter2024FrozenHealerSet', @@ -2156,9 +1810,6 @@ Object.keys(gearEvents).forEach(event => { notes: t(`${textString}Notes`, headStats[klass]), value: 60, }, headStats[klass]); - if (head[eventString].canBuy && head[eventString].canBuy()) { - head[eventString].event = CURRENT_EVENT; - } }); }); @@ -2170,7 +1821,6 @@ const headAccessory = { text: t('headAccessorySpecialSpringRogueText'), notes: t('headAccessorySpecialSpringRogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springWarrior: { specialClass: 'warrior', @@ -2178,7 +1828,6 @@ const headAccessory = { text: t('headAccessorySpecialSpringWarriorText'), notes: t('headAccessorySpecialSpringWarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springMage: { specialClass: 'wizard', @@ -2186,7 +1835,6 @@ const headAccessory = { text: t('headAccessorySpecialSpringMageText'), notes: t('headAccessorySpecialSpringMageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springHealer: { specialClass: 'healer', @@ -2194,7 +1842,6 @@ const headAccessory = { text: t('headAccessorySpecialSpringHealerText'), notes: t('headAccessorySpecialSpringHealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Rogue: { specialClass: 'rogue', @@ -2202,7 +1849,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2015RogueText'), notes: t('headAccessorySpecialSpring2015RogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Warrior: { specialClass: 'warrior', @@ -2210,7 +1856,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2015WarriorText'), notes: t('headAccessorySpecialSpring2015WarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Mage: { specialClass: 'wizard', @@ -2218,7 +1863,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2015MageText'), notes: t('headAccessorySpecialSpring2015MageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Healer: { specialClass: 'healer', @@ -2226,7 +1870,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2015HealerText'), notes: t('headAccessorySpecialSpring2015HealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, bearEars: { gearSet: 'animal', @@ -2234,7 +1877,6 @@ const headAccessory = { notes: t('headAccessoryBearEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_bearEars'), - canBuy: () => true, }, cactusEars: { gearSet: 'animal', @@ -2242,7 +1884,6 @@ const headAccessory = { notes: t('headAccessoryCactusEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_cactusEars'), - canBuy: () => true, }, foxEars: { gearSet: 'animal', @@ -2250,7 +1891,6 @@ const headAccessory = { notes: t('headAccessoryFoxEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_foxEars'), - canBuy: () => true, }, lionEars: { gearSet: 'animal', @@ -2258,7 +1898,6 @@ const headAccessory = { notes: t('headAccessoryLionEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_lionEars'), - canBuy: () => true, }, pandaEars: { gearSet: 'animal', @@ -2266,7 +1905,6 @@ const headAccessory = { notes: t('headAccessoryPandaEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_pandaEars'), - canBuy: () => true, }, pigEars: { gearSet: 'animal', @@ -2274,7 +1912,6 @@ const headAccessory = { notes: t('headAccessoryPigEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_pigEars'), - canBuy: () => true, }, tigerEars: { gearSet: 'animal', @@ -2282,7 +1919,6 @@ const headAccessory = { notes: t('headAccessoryTigerEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_tigerEars'), - canBuy: () => true, }, wolfEars: { gearSet: 'animal', @@ -2290,7 +1926,6 @@ const headAccessory = { notes: t('headAccessoryWolfEarsNotes'), value: 20, canOwn: ownsItem('headAccessory_special_wolfEars'), - canBuy: () => true, }, spring2016Rogue: { specialClass: 'rogue', @@ -2298,7 +1933,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2016RogueText'), notes: t('headAccessorySpecialSpring2016RogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Warrior: { specialClass: 'warrior', @@ -2306,7 +1940,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2016WarriorText'), notes: t('headAccessorySpecialSpring2016WarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Mage: { specialClass: 'wizard', @@ -2314,7 +1947,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2016MageText'), notes: t('headAccessorySpecialSpring2016MageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Healer: { specialClass: 'healer', @@ -2322,7 +1954,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2016HealerText'), notes: t('headAccessorySpecialSpring2016HealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Rogue: { specialClass: 'rogue', @@ -2330,7 +1961,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2017RogueText'), notes: t('headAccessorySpecialSpring2017RogueNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Warrior: { specialClass: 'warrior', @@ -2338,7 +1968,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2017WarriorText'), notes: t('headAccessorySpecialSpring2017WarriorNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Mage: { specialClass: 'wizard', @@ -2346,7 +1975,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2017MageText'), notes: t('headAccessorySpecialSpring2017MageNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Healer: { specialClass: 'healer', @@ -2354,7 +1982,6 @@ const headAccessory = { text: t('headAccessorySpecialSpring2017HealerText'), notes: t('headAccessorySpecialSpring2017HealerNotes'), value: 20, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, blackHeadband: { gearSet: 'headband', @@ -2475,7 +2102,6 @@ const shield = { notes: t('shieldSpecialYetiNotes', { con: 7 }), con: 7, value: 70, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, ski: { specialClass: 'rogue', @@ -2484,7 +2110,6 @@ const shield = { notes: t('weaponSpecialSkiNotes', { str: 8 }), str: 8, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, snowflake: { specialClass: 'healer', @@ -2493,249 +2118,188 @@ const shield = { notes: t('shieldSpecialSnowflakeNotes', { con: 9 }), con: 9, value: 70, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, springRogue: { set: 'stealthyKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springWarrior: { set: 'mightyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springHealer: { set: 'lovingPupSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summerRogue: { set: 'roguishPirateSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerWarrior: { set: 'daringSwashbucklerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerHealer: { set: 'reefSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fallRogue: { set: 'vampireSmiterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallWarrior: { set: 'monsterOfScienceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallHealer: { set: 'mummyMedicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2015Rogue: { set: 'icicleDrakeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Warrior: { set: 'gingerbreadSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Healer: { set: 'soothingSkaterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2015Rogue: { set: 'sneakySqueakerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Warrior: { set: 'bewareDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Healer: { set: 'comfortingKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2015Rogue: { set: 'reefRenegadeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Warrior: { set: 'sunfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Healer: { set: 'strappingSailorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2015Rogue: { set: 'battleRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Warrior: { set: 'scarecrowWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Healer: { set: 'potionerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2016Rogue: { set: 'cocoaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Warrior: { set: 'snowDaySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Healer: { set: 'festiveFairySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2016Rogue: { set: 'cleverDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Warrior: { set: 'braveMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Healer: { set: 'springingBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2016Rogue: { set: 'summer2016EelSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Warrior: { set: 'summer2016SharkWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Healer: { set: 'summer2016SeahorseHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2016Rogue: { set: 'fall2016BlackWidowSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Warrior: { set: 'fall2016SwampThingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Healer: { set: 'fall2016GorgonHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2017Rogue: { set: 'winter2017FrostyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Warrior: { set: 'winter2017IceHockeySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Healer: { set: 'winter2017SugarPlumSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2017Rogue: { set: 'spring2017SneakyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Warrior: { set: 'spring2017FelineWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Healer: { set: 'spring2017FloralMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2017Rogue: { set: 'summer2017SeaDragonSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Warrior: { set: 'summer2017SandcastleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Healer: { set: 'summer2017SeashellSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2017Rogue: { set: 'fall2017TrickOrTreatSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Warrior: { set: 'fall2017HabitoweenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Healer: { set: 'fall2017HauntedHouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2018Rogue: { set: 'winter2018ReindeerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Warrior: { set: 'winter2018GiftWrappedSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Healer: { set: 'winter2018MistletoeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2018Rogue: { set: 'spring2018DucklingRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Warrior: { set: 'spring2018SunriseWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Healer: { set: 'spring2018GarnetHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2018Rogue: { set: 'summer2018FisherRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Warrior: { set: 'summer2018BettaFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Healer: { set: 'summer2018MerfolkMonarchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2018Rogue: { set: 'fall2018AlterEgoSet', text: t('shieldSpecialFall2018RogueText'), notes: t('shieldSpecialFall2018RogueNotes', { str: 8 }), - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Warrior: { set: 'fall2018MinotaurWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Healer: { set: 'fall2018CarnivorousPlantSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2019Rogue: { set: 'winter2019PoinsettiaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Warrior: { set: 'winter2019BlizzardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Healer: { set: 'winter2019WinterStarSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, piDay: { text: t('shieldSpecialPiDayText'), @@ -2745,27 +2309,21 @@ const shield = { }, spring2019Rogue: { set: 'spring2019CloudRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Warrior: { set: 'spring2019OrchidWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Healer: { set: 'spring2019RobinHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2019Rogue: { set: 'summer2019HammerheadRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Warrior: { set: 'summer2019SeaTurtleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Healer: { set: 'summer2019ConchHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Mage: { specialClass: 'wizard', @@ -2774,19 +2332,15 @@ const shield = { notes: t('shieldSpecialSummer2019MageNotes', { per: 7 }), value: 70, per: 7, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2019Rogue: { set: 'fall2019OperaticSpecterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Warrior: { set: 'fall2019RavenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Healer: { set: 'fall2019LichSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, ks2019: { text: t('shieldSpecialKS2019Text'), @@ -2797,199 +2351,151 @@ const shield = { }, winter2020Rogue: { set: 'winter2020LanternSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Warrior: { set: 'winter2020EvergreenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Healer: { set: 'winter2020WinterSpiceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2020Rogue: { set: 'spring2020LapisLazuliRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Warrior: { set: 'spring2020BeetleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Healer: { set: 'spring2020IrisHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2020Warrior: { set: 'summer2020RainbowTroutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Healer: { set: 'summer2020SeaGlassHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Rogue: { set: 'summer2020CrocodileRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2020Rogue: { set: 'fall2020TwoHeadedRogueSet', text: t('shieldSpecialFall2020RogueText'), notes: t('shieldSpecialFall2020RogueNotes', { str: 8 }), - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Warrior: { set: 'fall2020WraithWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Healer: { set: 'fall2020DeathsHeadMothHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2021Rogue: { set: 'winter2021HollyIvyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Warrior: { set: 'winter2021IceFishingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Healer: { set: 'winter2021ArcticExplorerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2021Rogue: { set: 'spring2021TwinFlowerRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Warrior: { set: 'spring2021SunstoneWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Healer: { set: 'spring2021WillowHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2021Rogue: { set: 'summer2021ClownfishRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Warrior: { set: 'summer2021FlyingFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Healer: { set: 'summer2021ParrotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2021Rogue: { set: 'fall2021OozeRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Warrior: { set: 'fall2021HeadlessWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Healer: { set: 'fall2021FlameSummonerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2022Rogue: { set: 'winter2022FireworksRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Warrior: { set: 'winter2022StockingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Healer: { set: 'winter2022IceCrystalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2022Rogue: { set: 'spring2022MagpieRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Warrior: { set: 'spring2022RainstormWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Healer: { set: 'spring2022PeridotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2022Rogue: { set: 'summer2022CrabRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Warrior: { set: 'summer2022WaterspoutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Healer: { set: 'summer2022AngelfishHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2022Rogue: { set: 'fall2022KappaRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Warrior: { set: 'fall2022OrcWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Healer: { set: 'fall2022WatcherHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2023Rogue: { set: 'winter2023RibbonRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Warrior: { set: 'winter2023WalrusWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Healer: { set: 'winter2023CardinalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2023Rogue: { set: 'spring2023CaterpillarRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Warrior: { set: 'spring2023HummingbirdWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Healer: { set: 'spring2023LilyHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2023Rogue: { set: 'summer2023GuppyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Warrior: { set: 'summer2023GoldfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Healer: { set: 'summer2023KelpHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2023Rogue: { set: 'fall2023WitchsBrewRogueSet', text: t('shieldSpecialFall2023RogueText'), notes: t('shieldSpecialFall2023RogueNotes', { str: 8 }), - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Warrior: { set: 'fall2023ScaryMovieWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Healer: { set: 'fall2023BogCreatureHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2024Warrior: { set: 'winter2024PeppermintBarkWarriorSet', @@ -3035,9 +2541,6 @@ Object.keys(gearEvents).forEach(event => { notes: t(`${textString}Notes`, shieldStats[klass]), value: klass === 'rogue' ? 80 : 70, }, shieldStats[klass]); - if (shield[eventString].canBuy && shield[eventString].canBuy()) { - shield[eventString].event = CURRENT_EVENT; - } }); }); @@ -3149,7 +2652,6 @@ const weapon = { notes: t('weaponSpecialYetiNotes', { str: 15 }), str: 15, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, ski: { specialClass: 'rogue', @@ -3158,7 +2660,6 @@ const weapon = { notes: t('weaponSpecialSkiNotes', { str: 8 }), str: 8, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, candycane: { specialClass: 'wizard', @@ -3169,7 +2670,6 @@ const weapon = { int: 15, per: 7, value: 160, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, snowflake: { specialClass: 'healer', @@ -3178,351 +2678,264 @@ const weapon = { notes: t('weaponSpecialSnowflakeNotes', { int: 9 }), int: 9, value: 90, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, springRogue: { set: 'stealthyKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springWarrior: { set: 'mightyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springMage: { set: 'magicMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, springHealer: { set: 'lovingPupSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summerRogue: { set: 'roguishPirateSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerWarrior: { set: 'daringSwashbucklerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerMage: { set: 'emeraldMermageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summerHealer: { set: 'reefSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fallRogue: { set: 'vampireSmiterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallWarrior: { set: 'monsterOfScienceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallMage: { set: 'witchyWizardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fallHealer: { set: 'mummyMedicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2015Rogue: { set: 'icicleDrakeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Warrior: { set: 'gingerbreadSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Mage: { set: 'northMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2015Healer: { set: 'soothingSkaterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2015Rogue: { set: 'sneakySqueakerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Warrior: { set: 'bewareDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Mage: { set: 'magicianBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2015Healer: { set: 'comfortingKittySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2015Rogue: { set: 'reefRenegadeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Warrior: { set: 'sunfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Mage: { set: 'shipSoothsayerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2015Healer: { set: 'strappingSailorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2015Rogue: { set: 'battleRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Warrior: { set: 'scarecrowWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Mage: { set: 'stitchWitchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2015Healer: { set: 'potionerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2016Rogue: { set: 'cocoaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Warrior: { set: 'snowDaySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Mage: { set: 'snowboardingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2016Healer: { set: 'festiveFairySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2016Rogue: { set: 'cleverDogSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Warrior: { set: 'braveMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Mage: { set: 'grandMalkinSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2016Healer: { set: 'springingBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2016Rogue: { set: 'summer2016EelSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Warrior: { set: 'summer2016SharkWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Mage: { set: 'summer2016DolphinMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2016Healer: { set: 'summer2016SeahorseHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2016Rogue: { set: 'fall2016BlackWidowSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Warrior: { set: 'fall2016SwampThingSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Mage: { set: 'fall2016WickedSorcererSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2016Healer: { set: 'fall2016GorgonHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2017Rogue: { set: 'winter2017FrostyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Warrior: { set: 'winter2017IceHockeySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Mage: { set: 'winter2017WinterWolfSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2017Healer: { set: 'winter2017SugarPlumSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2017Rogue: { set: 'spring2017SneakyBunnySet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Warrior: { set: 'spring2017FelineWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Mage: { set: 'spring2017CanineConjurorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2017Healer: { set: 'spring2017FloralMouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2017Rogue: { set: 'summer2017SeaDragonSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Warrior: { set: 'summer2017SandcastleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Mage: { set: 'summer2017WhirlpoolMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2017Healer: { set: 'summer2017SeashellSeahealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2017Rogue: { set: 'fall2017TrickOrTreatSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Warrior: { set: 'fall2017HabitoweenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Mage: { set: 'fall2017MasqueradeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2017Healer: { set: 'fall2017HauntedHouseSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2018Rogue: { set: 'winter2018ReindeerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Warrior: { set: 'winter2018GiftWrappedSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Mage: { set: 'winter2018ConfettiSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2018Healer: { set: 'winter2018MistletoeSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2018Rogue: { set: 'spring2018DucklingRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Warrior: { set: 'spring2018SunriseWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Mage: { set: 'spring2018TulipMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2018Healer: { set: 'spring2018GarnetHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2018Rogue: { set: 'summer2018FisherRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Warrior: { set: 'summer2018BettaFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Mage: { set: 'summer2018LionfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2018Healer: { set: 'summer2018MerfolkMonarchSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2018Rogue: { set: 'fall2018AlterEgoSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Warrior: { set: 'fall2018MinotaurWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Mage: { set: 'fall2018CandymancerMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2018Healer: { set: 'fall2018CarnivorousPlantSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2019Rogue: { set: 'winter2019PoinsettiaSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Warrior: { set: 'winter2019BlizzardSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Mage: { set: 'winter2019PyrotechnicSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2019Healer: { set: 'winter2019WinterStarSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2019Rogue: { set: 'spring2019CloudRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Warrior: { set: 'spring2019OrchidWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Mage: { set: 'spring2019AmberMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2019Healer: { set: 'spring2019RobinHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2019Rogue: { set: 'summer2019HammerheadRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Warrior: { set: 'summer2019SeaTurtleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Mage: { specialClass: 'wizard', @@ -3533,27 +2946,21 @@ const weapon = { int: 15, per: 0, twoHanded: false, - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2019Healer: { set: 'summer2019ConchHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2019Rogue: { set: 'fall2019OperaticSpecterSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Warrior: { set: 'fall2019RavenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Mage: { set: 'fall2019CyclopsSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2019Healer: { set: 'fall2019LichSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, ks2019: { text: t('weaponSpecialKS2019Text'), @@ -3564,259 +2971,195 @@ const weapon = { }, winter2020Rogue: { set: 'winter2020LanternSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Warrior: { set: 'winter2020EvergreenSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Mage: { set: 'winter2020CarolOfTheMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2020Healer: { set: 'winter2020WinterSpiceSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2020Rogue: { set: 'spring2020LapisLazuliRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Warrior: { set: 'spring2020BeetleWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Mage: { set: 'spring2020PuddleMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2020Healer: { set: 'spring2020IrisHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2020Rogue: { set: 'summer2020CrocodileRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Warrior: { set: 'summer2020RainbowTroutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Mage: { set: 'summer2020OarfishMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2020Healer: { set: 'summer2020SeaGlassHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2020Rogue: { set: 'fall2020TwoHeadedRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Warrior: { set: 'fall2020WraithWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Mage: { set: 'fall2020ThirdEyeMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2020Healer: { set: 'fall2020DeathsHeadMothHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2021Rogue: { set: 'winter2021HollyIvyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Warrior: { set: 'winter2021IceFishingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Mage: { set: 'winter2021WinterMoonMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2021Healer: { set: 'winter2021ArcticExplorerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2021Rogue: { set: 'spring2021TwinFlowerRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Warrior: { set: 'spring2021SunstoneWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Mage: { set: 'spring2021SwanMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2021Healer: { set: 'spring2021WillowHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2021Rogue: { set: 'summer2021ClownfishRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Warrior: { set: 'summer2021FlyingFishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Mage: { set: 'summer2021NautilusMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2021Healer: { set: 'summer2021ParrotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2021Rogue: { set: 'fall2021OozeRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Warrior: { set: 'fall2021HeadlessWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Mage: { set: 'fall2021BrainEaterMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2021Healer: { set: 'fall2021FlameSummonerHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2022Rogue: { set: 'winter2022FireworksRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Warrior: { set: 'winter2022StockingWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Mage: { set: 'winter2022PomegranateMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2022Healer: { set: 'winter2022IceCrystalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2022Rogue: { set: 'spring2022MagpieRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Warrior: { set: 'spring2022RainstormWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Mage: { set: 'spring2022ForsythiaMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2022Healer: { set: 'spring2022PeridotHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2022Rogue: { set: 'summer2022CrabRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Warrior: { set: 'summer2022WaterspoutWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Mage: { set: 'summer2022MantaRayMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2022Healer: { set: 'summer2022AngelfishHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2022Rogue: { set: 'fall2022KappaRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Warrior: { set: 'fall2022OrcWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Mage: { set: 'fall2022HarpyMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2022Healer: { set: 'fall2022WatcherHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2023Rogue: { set: 'winter2023RibbonRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Warrior: { set: 'winter2023WalrusWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Mage: { set: 'winter2023FairyLightsMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, winter2023Healer: { set: 'winter2023CardinalHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'winter', }, spring2023Rogue: { set: 'spring2023CaterpillarRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Warrior: { set: 'spring2023HummingbirdWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Mage: { set: 'spring2023MoonstoneMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, spring2023Healer: { set: 'spring2023LilyHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'spring', }, summer2023Rogue: { set: 'summer2023GuppyRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Warrior: { set: 'summer2023GoldfishWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Mage: { set: 'summer2023CoralMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, summer2023Healer: { set: 'summer2023KelpHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'summer', }, fall2023Rogue: { set: 'fall2023WitchsBrewRogueSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Healer: { set: 'fall2023BogCreatureHealerSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Warrior: { set: 'fall2023ScaryMovieWarriorSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, fall2023Mage: { set: 'fall2023ScarletWarlockMageSet', - canBuy: () => CURRENT_EVENT && CURRENT_EVENT.season === 'fall', }, winter2024Rogue: { set: 'winter2024SnowyOwlRogueSet', @@ -3875,9 +3218,6 @@ Object.keys(gearEvents).forEach(event => { value: weaponCosts[klass], twoHanded: klass === 'wizard', }, weaponStats[klass]); - if (weapon[eventString].canBuy && weapon[eventString].canBuy()) { - weapon[eventString].event = CURRENT_EVENT; - } }); }); diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index 10fb2957fc..e4184126ca 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -1,9 +1,7 @@ import assign from 'lodash/assign'; import defaults from 'lodash/defaults'; import each from 'lodash/each'; -import moment from 'moment'; import t from './translation'; -import { EVENTS } from './constants'; function hasQuestAchievementFunction (key) { return user => user.achievements.quests && user.achievements.quests[key] > 0; @@ -62,106 +60,70 @@ const premium = { value: 2, text: t('hatchingPotionCupid'), limited: true, - event: EVENTS.potions202402, _addlNotes: t('eventAvailability', { date: t('dateEndFebruary'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202402.start, EVENTS.potions202402.end); - }, }, Shimmer: { value: 2, text: t('hatchingPotionShimmer'), limited: true, - event: EVENTS.spring2024, _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBetween(EVENTS.spring2024.start, EVENTS.spring2024.end); - }, }, Fairy: { value: 2, text: t('hatchingPotionFairy'), limited: true, - event: EVENTS.potions202305, _addlNotes: t('eventAvailability', { date: t('dateEndMay'), }), - canBuy () { - return moment().isBefore(EVENTS.potions202305.end); - }, }, Floral: { value: 2, text: t('hatchingPotionFloral'), limited: true, - event: EVENTS.potions202305, _addlNotes: t('eventAvailability', { date: t('dateEndMay'), }), - canBuy () { - return moment().isBefore(EVENTS.potions202305.end); - }, }, Aquatic: { value: 2, text: t('hatchingPotionAquatic'), limited: true, - event: EVENTS.birthday10, _addlNotes: t('eventAvailability', { date: t('dateEndFebruary'), }), - canBuy () { - return moment().isBetween(EVENTS.birthday10.start, EVENTS.birthday10.end); - }, }, Ember: { value: 2, text: t('hatchingPotionEmber'), limited: true, - event: EVENTS.potions202311, _addlNotes: t('eventAvailability', { date: t('dateEndNovember'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202311.start, EVENTS.potions202311.end); - }, }, Thunderstorm: { value: 2, text: t('hatchingPotionThunderstorm'), limited: true, - event: EVENTS.potions202308, _addlNotes: t('eventAvailability', { date: t('dateEndAugust'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end); - }, }, Spooky: { value: 2, text: t('hatchingPotionSpooky'), limited: true, - event: EVENTS.fall2023, _addlNotes: t('eventAvailability', { date: t('dateEndOctober'), }), - canBuy () { - return moment().isBetween(EVENTS.fall2023.start, EVENTS.fall2023.end); - }, }, Ghost: { value: 2, text: t('hatchingPotionGhost'), limited: true, - event: EVENTS.fall2022, - canBuy () { - return moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end); - }, _addlNotes: t('eventAvailability', { date: t('dateEndOctober'), }), @@ -173,10 +135,6 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), - event: EVENTS.winter2023, - canBuy () { - return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); - }, }, Peppermint: { value: 2, @@ -185,19 +143,11 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), - event: EVENTS.winter2024, - canBuy () { - return moment().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end); - }, }, StarryNight: { value: 2, text: t('hatchingPotionStarryNight'), limited: true, - event: EVENTS.winter2023, - canBuy () { - return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); - }, _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), @@ -209,10 +159,6 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - event: EVENTS.spring2024, - canBuy () { - return moment().isBetween(EVENTS.spring2024.start, EVENTS.spring2024.end); - }, }, Glass: { value: 2, @@ -221,82 +167,54 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndJuly'), }), - event: EVENTS.summer2023, - canBuy () { - return moment().isBetween(EVENTS.summer2023.start, EVENTS.summer2023.end); - }, }, Glow: { value: 2, text: t('hatchingPotionGlow'), limited: true, - event: EVENTS.fall2023, _addlNotes: t('eventAvailability', { date: t('dateEndOctober'), }), - canBuy () { - return moment().isBetween(EVENTS.fall2023.start, EVENTS.fall2023.end); - }, }, Frost: { value: 2, text: t('hatchingPotionFrost'), limited: true, - event: EVENTS.potions202311, _addlNotes: t('eventAvailability', { date: t('dateEndNovember'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202311.start, EVENTS.potions202311.end); - }, }, IcySnow: { value: 2, text: t('hatchingPotionIcySnow'), limited: true, - event: EVENTS.winter2024, _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), - canBuy () { - return moment().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end); - }, }, RoseQuartz: { value: 2, text: t('hatchingPotionRoseQuartz'), limited: true, - event: EVENTS.potions202302, _addlNotes: t('eventAvailability', { date: t('dateEndFebruary'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202302.start, EVENTS.potions202302.end); - }, }, Celestial: { value: 2, text: t('hatchingPotionCelestial'), limited: true, - event: EVENTS.spring2024, _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBetween(EVENTS.spring2024.start, EVENTS.spring2024.end); - }, }, Sunshine: { value: 2, text: t('hatchingPotionSunshine'), limited: true, - event: EVENTS.potions202205, _addlNotes: t('eventAvailability', { date: t('dateEndMay'), }), - canBuy () { - return moment().isBefore(EVENTS.potions202205.end); - }, }, Bronze: { value: 2, @@ -309,13 +227,9 @@ const premium = { value: 2, text: t('hatchingPotionWatery'), limited: true, - event: EVENTS.summer2022, _addlNotes: t('eventAvailability', { date: t('dateEndJuly'), }), - canBuy () { - return moment().isBetween(EVENTS.summer2022.start, EVENTS.summer2022.end); - }, }, Silver: { value: 2, @@ -328,10 +242,6 @@ const premium = { value: 2, text: t('hatchingPotionShadow'), limited: true, - event: EVENTS.fall2022, - canBuy () { - return moment().isBetween(EVENTS.fall2022.start, EVENTS.fall2022.end); - }, _addlNotes: t('eventAvailability', { date: t('dateEndOctober'), }), @@ -350,10 +260,6 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), - event: EVENTS.winter2023, - canBuy () { - return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); - }, }, Ruby: { value: 2, @@ -366,13 +272,9 @@ const premium = { value: 2, text: t('hatchingPotionBirchBark'), limited: true, - event: EVENTS.spring2023, _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBefore(EVENTS.spring2023.end); - }, }, Fluorite: { value: 2, @@ -385,13 +287,9 @@ const premium = { value: 2, text: t('hatchingPotionSandSculpture'), limited: true, - event: EVENTS.summer2023, date: t('eventAvailability', { date: t('dateEndJuly'), }), - canBuy () { - return moment().isBetween(EVENTS.summer2023.start, EVENTS.summer2023.end); - }, }, Windup: { value: 2, @@ -411,25 +309,17 @@ const premium = { value: 2, text: t('hatchingPotionVampire'), limited: true, - event: EVENTS.fall2023, _addlNotes: t('eventAvailability', { date: t('dateEndOctober'), }), - canBuy () { - return moment().isBetween(EVENTS.fall2023.start, EVENTS.fall2023.end); - }, }, AutumnLeaf: { value: 2, text: t('hatchingPotionAutumnLeaf'), limited: true, - event: EVENTS.potions202311, _addlNotes: t('eventAvailability', { date: t('dateEndNovember'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202311.start, EVENTS.potions202311.end); - }, }, BlackPearl: { value: 2, @@ -445,22 +335,14 @@ const premium = { _addlNotes: t('eventAvailability', { date: t('dateEndJanuary'), }), - event: EVENTS.winter2024, - canBuy () { - return moment().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end); - }, }, PolkaDot: { value: 2, text: t('hatchingPotionPolkaDot'), limited: true, - event: EVENTS.spring2023, _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBefore(EVENTS.spring2023.end); - }, }, MossyStone: { value: 2, @@ -473,25 +355,17 @@ const premium = { value: 2, text: t('hatchingPotionSunset'), limited: true, - event: EVENTS.summer2023, _addlNotes: t('premiumPotionAddlNotes', { date: t('dateEndJuly'), }), - canBuy () { - return moment().isBetween(EVENTS.summer2023.start, EVENTS.summer2023.end); - }, }, Moonglow: { value: 2, text: t('hatchingPotionMoonglow'), limited: true, - event: EVENTS.potions202208, _addlNotes: t('premiumPotionAddlNotes', { date: t('dateEndAugust'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end); - }, }, SolarSystem: { value: 2, @@ -511,13 +385,9 @@ const premium = { value: 2, text: t('hatchingPotionPorcelain'), limited: true, - event: EVENTS.potions202308, _addlNotes: t('eventAvailability', { date: t('dateEndAugust'), }), - canBuy () { - return moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end); - }, }, PinkMarble: { value: 2, @@ -544,13 +414,9 @@ const wacky = { Veggie: { text: t('hatchingPotionVeggie'), limited: true, - event: EVENTS.spring2023, _addlNotes: t('eventAvailability', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBetween('2023-04-06T08:00-04:00', EVENTS.spring2023.end); - }, }, Dessert: { text: t('hatchingPotionDessert'), @@ -567,13 +433,9 @@ const wacky = { TeaShop: { text: t('hatchingPotionTeaShop'), limited: true, - event: EVENTS.spring2023, _addlNotes: t('premiumPotionAddlNotes', { date: t('dateEndApril'), }), - canBuy () { - return moment().isBetween('2023-04-06T08:00-04:00', EVENTS.spring2023.end); - }, }, }; diff --git a/website/common/script/content/index.js b/website/common/script/content/index.js index 559caf82d7..67fcda98f1 100644 --- a/website/common/script/content/index.js +++ b/website/common/script/content/index.js @@ -211,105 +211,62 @@ api.food = { textA: t('foodMeatA'), textThe: t('foodMeatThe'), target: 'Base', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Milk: { text: t('foodMilk'), textA: t('foodMilkA'), textThe: t('foodMilkThe'), target: 'White', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Potatoe: { text: t('foodPotatoe'), textA: t('foodPotatoeA'), textThe: t('foodPotatoeThe'), target: 'Desert', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Strawberry: { text: t('foodStrawberry'), textA: t('foodStrawberryA'), textThe: t('foodStrawberryThe'), target: 'Red', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Chocolate: { text: t('foodChocolate'), textA: t('foodChocolateA'), textThe: t('foodChocolateThe'), target: 'Shade', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Fish: { text: t('foodFish'), textA: t('foodFishA'), textThe: t('foodFishThe'), target: 'Skeleton', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, RottenMeat: { text: t('foodRottenMeat'), textA: t('foodRottenMeatA'), textThe: t('foodRottenMeatThe'), target: 'Zombie', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, CottonCandyPink: { text: t('foodCottonCandyPink'), textA: t('foodCottonCandyPinkA'), textThe: t('foodCottonCandyPinkThe'), target: 'CottonCandyPink', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, CottonCandyBlue: { text: t('foodCottonCandyBlue'), textA: t('foodCottonCandyBlueA'), textThe: t('foodCottonCandyBlueThe'), target: 'CottonCandyBlue', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Honey: { text: t('foodHoney'), textA: t('foodHoneyA'), textThe: t('foodHoneyThe'), target: 'Golden', - canBuy () { - return FOOD_SEASON === 'Normal'; - }, - canDrop: FOOD_SEASON === 'Normal', }, Saddle: { - canBuy () { - return true; - }, sellWarningNote: t('foodSaddleSellWarningNote'), text: t('foodSaddleText'), value: 5, @@ -321,313 +278,201 @@ api.food = { textA: t('foodCakeSkeletonA'), textThe: t('foodCakeSkeletonThe'), target: 'Skeleton', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Base: { text: t('foodCakeBase'), textA: t('foodCakeBaseA'), textThe: t('foodCakeBaseThe'), target: 'Base', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_CottonCandyBlue: { text: t('foodCakeCottonCandyBlue'), textA: t('foodCakeCottonCandyBlueA'), textThe: t('foodCakeCottonCandyBlueThe'), target: 'CottonCandyBlue', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_CottonCandyPink: { text: t('foodCakeCottonCandyPink'), textA: t('foodCakeCottonCandyPinkA'), textThe: t('foodCakeCottonCandyPinkThe'), target: 'CottonCandyPink', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Shade: { text: t('foodCakeShade'), textA: t('foodCakeShadeA'), textThe: t('foodCakeShadeThe'), target: 'Shade', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_White: { text: t('foodCakeWhite'), textA: t('foodCakeWhiteA'), textThe: t('foodCakeWhiteThe'), target: 'White', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Golden: { text: t('foodCakeGolden'), textA: t('foodCakeGoldenA'), textThe: t('foodCakeGoldenThe'), target: 'Golden', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Zombie: { text: t('foodCakeZombie'), textA: t('foodCakeZombieA'), textThe: t('foodCakeZombieThe'), target: 'Zombie', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Desert: { text: t('foodCakeDesert'), textA: t('foodCakeDesertA'), textThe: t('foodCakeDesertThe'), target: 'Desert', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Cake_Red: { text: t('foodCakeRed'), textA: t('foodCakeRedA'), textThe: t('foodCakeRedThe'), target: 'Red', - canBuy () { - return FOOD_SEASON === 'Cake'; - }, - canDrop: FOOD_SEASON === 'Cake', }, Candy_Skeleton: { text: t('foodCandySkeleton'), textA: t('foodCandySkeletonA'), textThe: t('foodCandySkeletonThe'), target: 'Skeleton', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Base: { text: t('foodCandyBase'), textA: t('foodCandyBaseA'), textThe: t('foodCandyBaseThe'), target: 'Base', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_CottonCandyBlue: { text: t('foodCandyCottonCandyBlue'), textA: t('foodCandyCottonCandyBlueA'), textThe: t('foodCandyCottonCandyBlueThe'), target: 'CottonCandyBlue', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_CottonCandyPink: { text: t('foodCandyCottonCandyPink'), textA: t('foodCandyCottonCandyPinkA'), textThe: t('foodCandyCottonCandyPinkThe'), target: 'CottonCandyPink', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Shade: { text: t('foodCandyShade'), textA: t('foodCandyShadeA'), textThe: t('foodCandyShadeThe'), target: 'Shade', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_White: { text: t('foodCandyWhite'), textA: t('foodCandyWhiteA'), textThe: t('foodCandyWhiteThe'), target: 'White', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Golden: { text: t('foodCandyGolden'), textA: t('foodCandyGoldenA'), textThe: t('foodCandyGoldenThe'), target: 'Golden', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Zombie: { text: t('foodCandyZombie'), textA: t('foodCandyZombieA'), textThe: t('foodCandyZombieThe'), target: 'Zombie', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Desert: { text: t('foodCandyDesert'), textA: t('foodCandyDesertA'), textThe: t('foodCandyDesertThe'), target: 'Desert', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Candy_Red: { text: t('foodCandyRed'), textA: t('foodCandyRedA'), textThe: t('foodCandyRedThe'), target: 'Red', - canBuy () { - return FOOD_SEASON === 'Candy'; - }, - canDrop: FOOD_SEASON === 'Candy', }, Pie_Skeleton: { text: t('foodPieSkeleton'), textA: t('foodPieSkeletonA'), textThe: t('foodPieSkeletonThe'), target: 'Skeleton', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Base: { text: t('foodPieBase'), textA: t('foodPieBaseA'), textThe: t('foodPieBaseThe'), target: 'Base', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_CottonCandyBlue: { text: t('foodPieCottonCandyBlue'), textA: t('foodPieCottonCandyBlueA'), textThe: t('foodPieCottonCandyBlueThe'), target: 'CottonCandyBlue', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_CottonCandyPink: { text: t('foodPieCottonCandyPink'), textA: t('foodPieCottonCandyPinkA'), textThe: t('foodPieCottonCandyPinkThe'), target: 'CottonCandyPink', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Shade: { text: t('foodPieShade'), textA: t('foodPieShadeA'), textThe: t('foodPieShadeThe'), target: 'Shade', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_White: { text: t('foodPieWhite'), textA: t('foodPieWhiteA'), textThe: t('foodPieWhiteThe'), target: 'White', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Golden: { text: t('foodPieGolden'), textA: t('foodPieGoldenA'), textThe: t('foodPieGoldenThe'), target: 'Golden', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Zombie: { text: t('foodPieZombie'), textA: t('foodPieZombieA'), textThe: t('foodPieZombieThe'), target: 'Zombie', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Desert: { text: t('foodPieDesert'), textA: t('foodPieDesertA'), textThe: t('foodPieDesertThe'), target: 'Desert', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, Pie_Red: { text: t('foodPieRed'), textA: t('foodPieRedA'), textThe: t('foodPieRedThe'), target: 'Red', - canBuy () { - return FOOD_SEASON === 'Pie'; - }, - canDrop: FOOD_SEASON === 'Pie', }, /* eslint-enable camelcase */ }; -each(api.food, (food, key) => defaults(food, { - value: 1, - key, - notes: t('foodNotes'), - canBuy () { - return false; - }, - canDrop: false, -})); +each(api.food, (food, key) => { + let foodType = 'Normal'; + if (key.startsWith('Cake_')) { + foodType = 'Cake'; + } else if (key.startsWith('Candy_')) { + foodType = 'Candy'; + } else if (key.startsWith('Pie_')) { + foodType = 'Pie'; + } + defaults(food, { + value: 1, + key, + notes: t('foodNotes'), + canBuy: () => FOOD_SEASON === foodType, + canDrop: FOOD_SEASON === foodType, + }); +}); api.appearances = appearances; diff --git a/website/common/script/content/quests/seasonal.js b/website/common/script/content/quests/seasonal.js index d74a41b418..90f49eb152 100644 --- a/website/common/script/content/quests/seasonal.js +++ b/website/common/script/content/quests/seasonal.js @@ -1,18 +1,8 @@ -import find from 'lodash/find'; -import moment from 'moment'; -import { EVENTS } from '../constants/events'; import t from '../translation'; -const CURRENT_EVENT = find(EVENTS, event => moment() - .isBetween(event.start, event.end) && Boolean(event.season)); - const QUEST_SEASONAL = { // winter evilsanta: { - event: CURRENT_EVENT && CURRENT_EVENT.season === 'winter' ? CURRENT_EVENT : null, - canBuy () { - return this.event && moment().isBetween(this.event.start, this.event.end); - }, text: t('questEvilSantaText'), notes: t('questEvilSantaNotes'), addlNotes: t('evilSantaAddlNotes'), @@ -37,10 +27,6 @@ const QUEST_SEASONAL = { }, }, evilsanta2: { - event: CURRENT_EVENT && CURRENT_EVENT.season === 'winter' ? CURRENT_EVENT : null, - canBuy () { - return this.event && moment().isBetween(this.event.start, this.event.end); - }, text: t('questEvilSanta2Text'), notes: t('questEvilSanta2Notes'), addlNotes: t('evilSantaAddlNotes'), @@ -71,10 +57,6 @@ const QUEST_SEASONAL = { }, // spring egg: { - event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null, - canBuy () { - return this.event && moment().isBetween('2024-03-26T08:00-04:00', this.event.end); - }, text: t('questEggHuntText'), notes: t('questEggHuntNotes'), completion: t('questEggHuntCompletion'), @@ -135,10 +117,6 @@ const QUEST_SEASONAL = { }, }, waffle: { - event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null, - canBuy () { - return this.event && moment().isBetween(this.event.start, this.event.end); - }, text: t('questWaffleText'), notes: t('questWaffleNotes'), completion: t('questWaffleCompletion'), @@ -178,10 +156,6 @@ const QUEST_SEASONAL = { }, }, virtualpet: { - event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null, - canBuy () { - return this.event && moment().isBetween(this.event.start, this.event.end); - }, text: t('questVirtualPetText'), notes: t('questVirtualPetNotes'), completion: t('questVirtualPetCompletion'),