From 3eb255dff25e054d5ef3f3b1a02a169d89f8ff90 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Tue, 13 Dec 2022 16:58:40 -0500 Subject: [PATCH] chore(content): add winter wonderland items --- .../assets/css/sprites/spritesmith-main.css | 175 ++++++++++++++++++ website/common/locales/en/gear.json | 34 ++++ website/common/locales/en/limited.json | 4 + .../common/script/content/appearance/sets.js | 2 +- .../common/script/content/constants/events.js | 11 +- .../script/content/constants/seasonalSets.js | 5 + .../script/content/gear/sets/special/index.js | 105 +++++++++++ .../common/script/content/hatching-potions.js | 17 +- .../script/content/shop-featuredItems.js | 10 +- .../script/libs/shops-seasonal.config.js | 14 +- 10 files changed, 354 insertions(+), 23 deletions(-) diff --git a/website/client/src/assets/css/sprites/spritesmith-main.css b/website/client/src/assets/css/sprites/spritesmith-main.css index 4302329360..1f4657bda7 100644 --- a/website/client/src/assets/css/sprites/spritesmith-main.css +++ b/website/client/src/assets/css/sprites/spritesmith-main.css @@ -293,6 +293,11 @@ width: 48px; height: 52px; } +.achievement-polarPro2x { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/achievement-polarPro2x.png'); + width: 68px; + height: 68px; +} .achievement-primedForPainting2x { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/achievement-primedForPainting2x.png'); width: 48px; @@ -31275,6 +31280,26 @@ width: 117px; height: 120px; } +.broad_armor_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/broad_armor_special_winter2023Healer.png'); + width: 117px; + height: 120px; +} +.broad_armor_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/broad_armor_special_winter2023Mage.png'); + width: 114px; + height: 90px; +} +.broad_armor_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/broad_armor_special_winter2023Rogue.png'); + width: 116px; + height: 119px; +} +.broad_armor_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/broad_armor_special_winter2023Warrior.png'); + width: 114px; + height: 117px; +} .broad_armor_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/broad_armor_special_yeti.png'); width: 90px; @@ -31500,6 +31525,26 @@ width: 117px; height: 120px; } +.head_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/head_special_winter2023Healer.png'); + width: 117px; + height: 120px; +} +.head_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/head_special_winter2023Mage.png'); + width: 114px; + height: 90px; +} +.head_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/head_special_winter2023Rogue.png'); + width: 116px; + height: 119px; +} +.head_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/head_special_winter2023Warrior.png'); + width: 114px; + height: 117px; +} .head_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/head_special_yeti.png'); width: 90px; @@ -31635,6 +31680,21 @@ width: 117px; height: 120px; } +.shield_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shield_special_winter2023Healer.png'); + width: 117px; + height: 120px; +} +.shield_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shield_special_winter2023Rogue.png'); + width: 116px; + height: 119px; +} +.shield_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shield_special_winter2023Warrior.png'); + width: 114px; + height: 117px; +} .shield_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shield_special_yeti.png'); width: 90px; @@ -31815,6 +31875,26 @@ width: 68px; height: 68px; } +.shop_armor_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_armor_special_winter2023Healer.png'); + width: 68px; + height: 68px; +} +.shop_armor_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_armor_special_winter2023Mage.png'); + width: 68px; + height: 68px; +} +.shop_armor_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_armor_special_winter2023Rogue.png'); + width: 68px; + height: 68px; +} +.shop_armor_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_armor_special_winter2023Warrior.png'); + width: 68px; + height: 68px; +} .shop_armor_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_armor_special_yeti.png'); width: 68px; @@ -32040,6 +32120,26 @@ width: 68px; height: 68px; } +.shop_head_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_head_special_winter2023Healer.png'); + width: 68px; + height: 68px; +} +.shop_head_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_head_special_winter2023Mage.png'); + width: 68px; + height: 68px; +} +.shop_head_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_head_special_winter2023Rogue.png'); + width: 68px; + height: 68px; +} +.shop_head_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_head_special_winter2023Warrior.png'); + width: 68px; + height: 68px; +} .shop_head_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_head_special_yeti.png'); width: 68px; @@ -32175,6 +32275,21 @@ width: 68px; height: 68px; } +.shop_shield_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_shield_special_winter2023Healer.png'); + width: 68px; + height: 68px; +} +.shop_shield_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_shield_special_winter2023Rogue.png'); + width: 68px; + height: 68px; +} +.shop_shield_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_shield_special_winter2023Warrior.png'); + width: 68px; + height: 68px; +} .shop_shield_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_shield_special_yeti.png'); width: 68px; @@ -32355,6 +32470,26 @@ width: 68px; height: 68px; } +.shop_weapon_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_weapon_special_winter2023Healer.png'); + width: 68px; + height: 68px; +} +.shop_weapon_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_weapon_special_winter2023Mage.png'); + width: 68px; + height: 68px; +} +.shop_weapon_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_weapon_special_winter2023Rogue.png'); + width: 68px; + height: 68px; +} +.shop_weapon_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_weapon_special_winter2023Warrior.png'); + width: 68px; + height: 68px; +} .shop_weapon_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/shop_weapon_special_yeti.png'); width: 68px; @@ -32535,6 +32670,26 @@ width: 117px; height: 120px; } +.slim_armor_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/slim_armor_special_winter2023Healer.png'); + width: 117px; + height: 120px; +} +.slim_armor_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/slim_armor_special_winter2023Mage.png'); + width: 114px; + height: 90px; +} +.slim_armor_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/slim_armor_special_winter2023Rogue.png'); + width: 116px; + height: 119px; +} +.slim_armor_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/slim_armor_special_winter2023Warrior.png'); + width: 114px; + height: 117px; +} .slim_armor_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/slim_armor_special_yeti.png'); width: 90px; @@ -32715,6 +32870,26 @@ width: 117px; height: 120px; } +.weapon_special_winter2023Healer { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/weapon_special_winter2023Healer.png'); + width: 117px; + height: 120px; +} +.weapon_special_winter2023Mage { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/weapon_special_winter2023Mage.png'); + width: 114px; + height: 90px; +} +.weapon_special_winter2023Rogue { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/weapon_special_winter2023Rogue.png'); + width: 116px; + height: 119px; +} +.weapon_special_winter2023Warrior { + background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/weapon_special_winter2023Warrior.png'); + width: 114px; + height: 117px; +} .weapon_special_yeti { background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/weapon_special_yeti.png'); width: 90px; diff --git a/website/common/locales/en/gear.json b/website/common/locales/en/gear.json index 766e6754ef..038aaad516 100644 --- a/website/common/locales/en/gear.json +++ b/website/common/locales/en/gear.json @@ -456,6 +456,15 @@ "weaponSpecialFall2022HealerText": "Right Peeker Eye", "weaponSpecialFall2022HealerNotes": "To claim victory, hold it forth and utter the words of command: 'Eye One!' Increases Intelligence by <%= int %>. Limited Edition 2022 Fall Gear.", + "weaponSpecialWinter2023RogueText": "Awesome Rogue Weapon", + "weaponSpecialWinter2023RogueNotes": "Incrases Strength by <%= str %>. Limited Edition 2023 Winter Gear.", + "weaponSpecialWinter2023WarriorText": "Awesome Warrior", + "weaponSpecialWinter2023WarriorNotes": "Increases Strength by <%= str %>. Limited Edition 2023 Winter Gear.", + "weaponSpecialWinter2023MageText": "Awesome Mage Weapon", + "weaponSpecialWinter2023MageNotes": "Increases Intelligence by <%= int %> and Perception by <%= per %>. Limited Edition 2023 Winter Gear.", + "weaponSpecialWinter2023HealerText": "Awesome Healer Weapon", + "weaponSpecialWinter2023HealerNotes": "Increases Intelligence by <%= int %>. Limited Edition 2923 Winter Gear.", + "weaponMystery201411Text": "Pitchfork of Feasting", "weaponMystery201411Notes": "Stab your enemies or dig in to your favorite foods - this versatile pitchfork does it all! Confers no benefit. November 2014 Subscriber Item.", "weaponMystery201502Text": "Shimmery Winged Staff of Love and Also Truth", @@ -1109,6 +1118,15 @@ "armorSpecialFall2022HealerText": "Profusion of Peeker Pods", "armorSpecialFall2022HealerNotes": "How many peeps could a Peeker peep, if a Peeker could peep peeps? Increases Constitution by <%= con %>. Limited Edition 2022 Fall Gear.", + "armorSpecialWinter2023RogueText": "Awesome Rogue Armor", + "armorSpecialWinter2023RogueNotes": "Increases Perception by <%= per %>. Limited Edition 2023 Winter Gear.", + "armorSpecialWinter2023WarriorText": "Awesome Warrior Armor", + "armorSpecialWinter2023WarriorNotes": "Increases Constitution by <%= con %>. Limited Edition 2023 Winter Gear.", + "armorSpecialWinter2023MageText": "Awesome Mage Armor", + "armorSpecialWinter2023MageNotes": "Increases Intelligence by <%= int %>. Limited Edition 2023 Winter Gear.", + "armorSpecialWinter2023HealerText": "Awesome Healer Armor", + "armorSpecialWinter2023HealerNotes": "Increases Constitution by <%= con %>. Limited Edition 2023 Winter Gear.", + "armorMystery201402Text": "Messenger Robes", "armorMystery201402Notes": "Shimmering and strong, these robes have many pockets to carry letters. Confers no benefit. February 2014 Subscriber Item.", "armorMystery201403Text": "Forest Walker Armor", @@ -1835,6 +1853,15 @@ "headSpecialFall2022MageNotes": "Entrance and lure others close with this magical maiden mask. Increases Perception by <%= per %>. Limited Edition 2022 Fall Gear.", "headSpecialFall2022HealerText": "Peeker Mask", "headSpecialFall2022HealerNotes": "Beauty is in there. Somewhere! Increases Intelligence by <%= int %>. Limited Edition 2022 Fall Gear.", + + "headSpecialWinter2023RogueText": "Awesome Rogue Hat", + "headSpecialWinter2023RogueNotes": "Increases Perception by <%= per %>. Limited Edition 2023 Winter Gear.", + "headSpecialWinter2023WarriorText": "Awesome Warrior Hat", + "headSpecialWinter2023WarriorNotes": "Increases Strength by <%= str %>. Limited Edition 2023 Winter Gear.", + "headSpecialWinter2023MageText": "Awesome Mage Hat", + "headSpecialWinter2023MageNotes": "Increases Perception by <%= per %>. Limited Edition 2023 Winter Gear.", + "headSpecialWinter2023HealerText": "Awesome Healer Hat", + "headSpecialWinter2023HealerNotes": "Increases Intelligence by <%= int %>. Limited Edition 2023 Winter Gear.", "headSpecialGaymerxText": "Rainbow Warrior Helm", "headSpecialGaymerxNotes": "In celebration of the GaymerX Conference, this special helmet is decorated with a radiant, colorful rainbow pattern! GaymerX is a game convention celebrating LGTBQ and gaming and is open to everyone.", @@ -2396,6 +2423,13 @@ "shieldSpecialFall2022HealerText": "Left Peeker Eye", "shieldSpecialFall2022HealerNotes": "Eye Two, look upon this costume and tremble. Increases Constitution by <%= con %>. Limited Edition 2022 Fall Gear.", + "shieldSpecialWinter2023WarriorText": "Awesome Warrior Shield", + "shieldSpecialWinter2023WarriorNotes": "Increases Constitution by <%= con %>. Limited Edition 2023 Winter Gear.", + "shieldSpecialWinter2023HealerText": "Awesome Healer Shield", + "shieldSpecialWinter2023HealerNotes": "Increases Constitution by <%= con %>. Limited Edition 2023 Winter Gear.", + "shieldSpecialWinter2023RogueText": "Awesome Rogue Shield", + "shieldSpecialWinter2023RogueNotes": "Increases Constitution by <%= con %>. Limited Edition 2023 Winter Gear.", + "shieldMystery201601Text": "Resolution Slayer", "shieldMystery201601Notes": "This blade can be used to parry away all distractions. Confers no benefit. January 2016 Subscriber Item.", "shieldMystery201701Text": "Time-Freezer Shield", diff --git a/website/common/locales/en/limited.json b/website/common/locales/en/limited.json index 658227ca49..1898a3a041 100644 --- a/website/common/locales/en/limited.json +++ b/website/common/locales/en/limited.json @@ -191,6 +191,10 @@ "fall2022OrcWarriorSet": "Orc (Warrior)", "fall2022HarpyMageSet": "Harpy (Mage)", "fall2022WatcherHealerSet": "Peeker (Healer)", + "winter2023WalrusWarriorSet": "Walrus (Warrior)", + "winter2023FairyLightsMageSet": "Fairy Lights (Mage)", + "winter2023CardinalHealerSet": "Cardinal (Healer)", + "spring2023RibbonRogueSet": "Ribbon (Rogue)", "eventAvailability": "Available for purchase until <%= date(locale) %>.", "eventAvailabilityReturning": "Available for purchase until <%= availableDate(locale) %>. This potion was last available in <%= previousDate(locale) %>.", "dateEndJanuary": "January 31", diff --git a/website/common/script/content/appearance/sets.js b/website/common/script/content/appearance/sets.js index 65152186c0..22d99fa5c9 100644 --- a/website/common/script/content/appearance/sets.js +++ b/website/common/script/content/appearance/sets.js @@ -33,6 +33,6 @@ export default prefill({ setPrice: 5, availableFrom: '2022-07-05T08:00-05:00', availableUntil: EVENTS.summer2022.end, text: t('splashySkins'), }, winterySkins: { - setPrice: 5, availableFrom: '2021-12-23T08:00-05:00', availableUntil: '2022-01-31T20:00-05:00', text: t('winterySkins'), + setPrice: 5, availableFrom: '2023-01-17T08:00-05:00', availableUntil: EVENTS.winter2023.end, text: t('winterySkins'), }, }); diff --git a/website/common/script/content/constants/events.js b/website/common/script/content/constants/events.js index f561d44bd5..603b892043 100644 --- a/website/common/script/content/constants/events.js +++ b/website/common/script/content/constants/events.js @@ -10,11 +10,18 @@ const gemsPromo = { export const EVENTS = { noEvent: { - start: '2022-11-27T20:00-05:00', - end: '2022-12-20T08:00-05:00', + start: '2023-01-31T20:00-05:00', + end: '2023-02-14T08:00-05:00', season: 'normal', npcImageSuffix: '', }, + winter2023: { + start: '2022-12-13T08:00-04:00', + end: '2023-01-31T20:00-04:00', + npcImageSuffix: '_winter', + season: 'winter', + gear: true, + }, harvestFeast2022: { start: '2022-11-22T08:00-05:00', end: '2022-11-27T20:00-05:00', diff --git a/website/common/script/content/constants/seasonalSets.js b/website/common/script/content/constants/seasonalSets.js index 009ee62321..9af7043ce5 100644 --- a/website/common/script/content/constants/seasonalSets.js +++ b/website/common/script/content/constants/seasonalSets.js @@ -47,6 +47,11 @@ const SEASONAL_SETS = { 'winter2022StockingWarriorSet', 'winter2022PomegranateMageSet', 'winter2022IceCrystalHealerSet', + + 'winter2023RibbonRogueSet', + 'winter2023WalrusWarriorSet', + 'winter2023FairyLightsMageSet', + 'winter2023CardinalHealerSet', ], spring: [ // spring 2014 diff --git a/website/common/script/content/gear/sets/special/index.js b/website/common/script/content/gear/sets/special/index.js index 55f9c2d7a6..7fb6936f2c 100644 --- a/website/common/script/content/gear/sets/special/index.js +++ b/website/common/script/content/gear/sets/special/index.js @@ -718,27 +718,35 @@ const armor = { }, 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'), @@ -748,27 +756,47 @@ 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', + }, + winter2023Warrior: { + set: 'winter2023WalrusWarriorSet', + }, + winter2023Mage: { + set: 'winter2023FairyLightsMageSet', + }, + winter2023Healer: { + set: 'winter2023CardinalHealerSet', }, }; @@ -1824,15 +1852,19 @@ const head = { }, 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'), @@ -1842,39 +1874,63 @@ 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', + }, + winter2023Warrior: { + set: 'winter2023WalrusWarriorSet', + }, + winter2023Mage: { + set: 'winter2023FairyLightsMageSet', + }, + winter2023Healer: { + set: 'winter2023CardinalHealerSet', }, }; @@ -2636,39 +2692,60 @@ const shield = { }, 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 === 'summer', }, 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', + }, + winter2023Warrior: { + set: 'winter2023WalrusWarriorSet', + }, + winter2023Healer: { + set: 'winter2023CardinalHealerSet', }, }; @@ -3348,51 +3425,79 @@ const weapon = { }, 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', + }, + winter2023Warrior: { + set: 'winter2023WalrusWarriorSet', + }, + winter2023Mage: { + set: 'winter2023FairyLightsMageSet', + }, + winter2023Healer: { + set: 'winter2023CardinalHealerSet', }, }; diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index a2e40396c2..9ba437243d 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -176,11 +176,11 @@ const premium = { limited: true, _addlNotes: t('eventAvailabilityReturning', { availableDate: t('dateEndJanuary'), - previousDate: t('januaryYYYY', { year: 2020 }), + previousDate: t('januaryYYYY', { year: 2022 }), }), - event: EVENTS.winter2022, + event: EVENTS.winter2023, canBuy () { - return moment().isBetween(EVENTS.winter2022.start, EVENTS.winter2022.end); + return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); }, }, Peppermint: { @@ -200,12 +200,13 @@ const premium = { value: 2, text: t('hatchingPotionStarryNight'), limited: true, + event: EVENTS.winter2023, canBuy () { - return moment().isBetween('2019-12-19', '2020-02-02'); + return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); }, _addlNotes: t('eventAvailabilityReturning', { availableDate: t('dateEndJanuary'), - previousDate: t('decemberYYYY', { year: 2017 }), + previousDate: t('decemberYYYY', { year: 2019 }), }), }, Rainbow: { @@ -360,11 +361,11 @@ const premium = { limited: true, _addlNotes: t('eventAvailabilityReturning', { availableDate: t('dateEndJanuary'), - previousDate: t('decemberYYYY', { year: 2019 }), + previousDate: t('decemberYYYY', { year: 2020 }), }), - event: EVENTS.winter2021, + event: EVENTS.winter2023, canBuy () { - return moment().isBetween('2020-12-22T08:00-04:00', '2021-01-31T20:00-04:00'); + return moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end); }, }, Ruby: { diff --git a/website/common/script/content/shop-featuredItems.js b/website/common/script/content/shop-featuredItems.js index 031d7d3a9c..5c83a39200 100644 --- a/website/common/script/content/shop-featuredItems.js +++ b/website/common/script/content/shop-featuredItems.js @@ -5,7 +5,7 @@ import { EVENTS } from './constants'; // path: 'premiumHatchingPotions.Rainbow', const featuredItems = { market () { - if (moment().isBetween(EVENTS.bundle202211.start, EVENTS.bundle202211.end)) { + if (moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end)) { return [ { type: 'armoire', @@ -13,15 +13,15 @@ const featuredItems = { }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Frost', + path: 'premiumHatchingPotions.StarryNight', }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Ember', + path: 'premiumHatchingPotions.Holly', }, { type: 'premiumHatchingPotion', - path: 'premiumHatchingPotions.Thunderstorm', + path: 'premiumHatchingPotions.Aurora', }, ]; } @@ -76,7 +76,7 @@ const featuredItems = { }, ]; }, - seasonal: 'spring2021Healer', + seasonal: 'winter2022Healer', timeTravelers: [ // TODO ], diff --git a/website/common/script/libs/shops-seasonal.config.js b/website/common/script/libs/shops-seasonal.config.js index 077a011288..4e02b76bc9 100644 --- a/website/common/script/libs/shops-seasonal.config.js +++ b/website/common/script/libs/shops-seasonal.config.js @@ -30,15 +30,15 @@ export default { pinnedSets: SHOP_OPEN ? { - healer: 'fall2022WatcherHealerSet', - rogue: 'fall2022KappaRogueSet', - warrior: 'fall2022OrcWarriorSet', - wizard: 'fall2022HarpyMageSet', + rogue: 'winter2023RibbonRogueSet', + warrior: 'winter2023WalrusWarriorSet', + wizard: 'winter2023FairyLightsMageSet', + healer: 'winter2023CardinalHealerSet', } : {}, - availableSpells: SHOP_OPEN && moment().isBetween('2022-10-04T08:00-05:00', CURRENT_EVENT.end) + availableSpells: SHOP_OPEN && moment().isBetween('2022-12-13T08:00-05:00', CURRENT_EVENT.end) ? [ - 'spookySparkles', + 'snowballs', ] : [], @@ -48,5 +48,5 @@ export default { ] : [], - featuredSet: 'fall2021BrainEaterMageSet', + featuredSet: 'winter2022PomegranateMageSet', };