feat(event): Valentine's 2020

This commit is contained in:
Sabe Jones
2020-02-07 14:16:25 -06:00
parent ff87a346d6
commit 6f7243c049
13 changed files with 96 additions and 90 deletions

View File

@@ -6,7 +6,7 @@
} }
.promo_mystery_022020 { .promo_mystery_022020 {
background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png'); background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: 0px -277px; background-position: 0px -425px;
width: 282px; width: 282px;
height: 147px; height: 147px;
} }
@@ -16,6 +16,18 @@
width: 96px; width: 96px;
height: 69px; height: 69px;
} }
.promo_valentines_2020 {
background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -421px -277px;
width: 309px;
height: 147px;
}
.promo_valentines_potions {
background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: 0px -277px;
width: 420px;
height: 147px;
}
.scene_cake { .scene_cake {
background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png'); background-image: url('~@/assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -328px -148px; background-position: -328px -148px;

View File

@@ -756,31 +756,31 @@
} }
.Pet_Currency_Gem1x { .Pet_Currency_Gem1x {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1796px -542px; background-position: -1796px -536px;
width: 15px; width: 15px;
height: 13px; height: 13px;
} }
.Pet_Currency_Gem2x { .Pet_Currency_Gem2x {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -954px; background-position: -1744px -948px;
width: 30px; width: 30px;
height: 26px; height: 26px;
} }
.PixelPaw-Gold { .PixelPaw-Gold {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -594px; background-position: -1744px -588px;
width: 51px; width: 51px;
height: 51px; height: 51px;
} }
.PixelPaw { .PixelPaw {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -646px; background-position: -1744px -640px;
width: 51px; width: 51px;
height: 51px; height: 51px;
} }
.PixelPaw002 { .PixelPaw002 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -542px; background-position: -1744px -536px;
width: 51px; width: 51px;
height: 51px; height: 51px;
} }
@@ -834,7 +834,7 @@
} }
.empty_bottles { .empty_bottles {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -487px; background-position: -1744px -481px;
width: 64px; width: 64px;
height: 54px; height: 54px;
} }
@@ -1044,141 +1044,141 @@
} }
.zzz { .zzz {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -739px; background-position: -1744px -733px;
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
.zzz_light { .zzz_light {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -698px; background-position: -1744px -692px;
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
.notif_inventory_present_01 { .notif_inventory_present_01 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -867px; background-position: -1773px -861px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_02 { .notif_inventory_present_02 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -925px; background-position: -1773px -919px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_03 { .notif_inventory_present_03 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -780px; background-position: -1744px -774px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_04 { .notif_inventory_present_04 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -925px; background-position: -1744px -919px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_05 { .notif_inventory_present_05 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -896px; background-position: -1773px -890px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_06 { .notif_inventory_present_06 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -896px; background-position: -1744px -890px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_07 { .notif_inventory_present_07 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -780px; background-position: -1773px -774px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_08 { .notif_inventory_present_08 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -867px; background-position: -1744px -861px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_09 { .notif_inventory_present_09 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -838px; background-position: -1773px -832px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_10 { .notif_inventory_present_10 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -838px; background-position: -1744px -832px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_11 { .notif_inventory_present_11 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1773px -809px; background-position: -1773px -803px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_present_12 { .notif_inventory_present_12 {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -809px; background-position: -1744px -803px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.notif_inventory_special_birthday { .notif_inventory_special_birthday {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1775px -954px; background-position: -1775px -948px;
width: 20px; width: 20px;
height: 24px; height: 24px;
} }
.notif_inventory_special_congrats { .notif_inventory_special_congrats {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1765px -1006px; background-position: -1765px -1000px;
width: 20px; width: 20px;
height: 22px; height: 22px;
} }
.notif_inventory_special_getwell { .notif_inventory_special_getwell {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1786px -981px; background-position: -1786px -975px;
width: 20px; width: 20px;
height: 22px; height: 22px;
} }
.notif_inventory_special_goodluck { .notif_inventory_special_goodluck {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1785px -739px; background-position: -1785px -733px;
width: 20px; width: 20px;
height: 26px; height: 26px;
} }
.notif_inventory_special_greeting { .notif_inventory_special_greeting {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -1006px; background-position: -1744px -1000px;
width: 20px; width: 20px;
height: 22px; height: 22px;
} }
.notif_inventory_special_nye { .notif_inventory_special_nye {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1785px -698px; background-position: -1785px -692px;
width: 24px; width: 24px;
height: 26px; height: 26px;
} }
.notif_inventory_special_thankyou { .notif_inventory_special_thankyou {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -981px; background-position: -1744px -975px;
width: 20px; width: 20px;
height: 24px; height: 24px;
} }
.notif_inventory_special_valentine { .notif_inventory_special_valentine {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1765px -981px; background-position: -1765px -975px;
width: 20px; width: 20px;
height: 24px; height: 24px;
} }
.npc_bailey { .npc_bailey {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');
background-position: -1744px -414px; background-position: -1744px -414px;
width: 60px; width: 63px;
height: 72px; height: 66px;
} }
.npc_justin { .npc_justin {
background-image: url('~@/assets/images/sprites/spritesmith-main-12.png'); background-image: url('~@/assets/images/sprites/spritesmith-main-12.png');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 299 KiB

View File

@@ -2,11 +2,11 @@
// possible values are: normal, fall, habitoween, thanksgiving, winter, nye, birthday, valentines, spring, summer // possible values are: normal, fall, habitoween, thanksgiving, winter, nye, birthday, valentines, spring, summer
// more to be added on future seasons // more to be added on future seasons
$npc_market_flavor: 'normal'; $npc_market_flavor: 'valentines';
$npc_quests_flavor: 'normal'; $npc_quests_flavor: 'normal';
$npc_seasonal_flavor: 'normal'; $npc_seasonal_flavor: 'normal';
$npc_timetravelers_flavor: 'normal'; $npc_timetravelers_flavor: 'normal';
$npc_tavern_flavor: 'normal'; $npc_tavern_flavor: 'valentines';
$restingToolbarHeight: 40px; $restingToolbarHeight: 40px;
$menuToolbarHeight: 56px; $menuToolbarHeight: 56px;

View File

@@ -166,7 +166,7 @@
"dateEndOctober": "October 31", "dateEndOctober": "October 31",
"dateEndNovember": "November 30", "dateEndNovember": "November 30",
"dateEndJanuary": "January 31", "dateEndJanuary": "January 31",
"dateEndFebruary": "February 28", "dateEndFebruary": "February 29",
"winterPromoGiftHeader": "GIFT A SUBSCRIPTION AND GET ONE FREE!", "winterPromoGiftHeader": "GIFT A SUBSCRIPTION AND GET ONE FREE!",
"winterPromoGiftDetails1": "Until January 6th only, when you gift somebody a subscription, you get the same subscription for yourself for free!", "winterPromoGiftDetails1": "Until January 6th only, when you gift somebody a subscription, you get the same subscription for yourself for free!",
"winterPromoGiftDetails2": "Please note that if you or your gift recipient already have a recurring subscription, the gifted subscription will only start after that subscription is cancelled or has expired. Thanks so much for your support! <3", "winterPromoGiftDetails2": "Please note that if you or your gift recipient already have a recurring subscription, the gifted subscription will only start after that subscription is cancelled or has expired. Thanks so much for your support! <3",

View File

@@ -62,6 +62,9 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionCupid'), text: t('hatchingPotionCupid'),
limited: true, limited: true,
canBuy () {
return moment().isBefore('2020-03-02');
},
}, },
Shimmer: { Shimmer: {
value: 2, value: 2,
@@ -187,6 +190,9 @@ const premium = {
value: 2, value: 2,
text: t('hatchingPotionRoseQuartz'), text: t('hatchingPotionRoseQuartz'),
limited: true, limited: true,
canBuy () {
return moment().isBefore('2020-03-02');
},
}, },
Celestial: { Celestial: {
value: 2, value: 2,
@@ -273,7 +279,7 @@ each(premium, (pot, key) => {
potText: pot.text, potText: pot.text,
}), }),
_addlNotes: t('eventAvailability', { _addlNotes: t('eventAvailability', {
date: t(`dateEnd${pot._season}`), date: t('dateEndFebruary'),
}), }),
premium: true, premium: true,
limited: false, limited: false,

View File

@@ -128,6 +128,7 @@ api.cardTypes = {
valentine: { valentine: {
key: 'valentine', key: 'valentine',
messageOptions: 4, messageOptions: 4,
yearRound: moment().isBefore('2020-03-02'),
}, },
birthday: { birthday: {
key: 'birthday', key: 'birthday',

View File

@@ -5,43 +5,23 @@ import moment from 'moment';
// path: 'premiumHatchingPotions.Rainbow', // path: 'premiumHatchingPotions.Rainbow',
const featuredItems = { const featuredItems = {
market () { market () {
if (moment().isBetween('2019-12-19', '2020-01-02')) { if (moment().isBefore('2020-03-02')) {
return [ return [
{ {
type: 'card', type: 'card',
path: 'cardTypes.nye', path: 'cardTypes.valentine',
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aurora', path: 'premiumHatchingPotions.Cupid',
}, },
{ {
type: 'premiumHatchingPotion', type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Holly', path: 'premiumHatchingPotions.RoseQuartz',
}, },
{ {
type: 'premiumHatchingPotion', type: 'eggs',
path: 'premiumHatchingPotions.StarryNight', path: 'eggs.Fox',
},
];
}
if (moment().isBetween('2019-12-19', '2020-02-02')) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aurora',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Holly',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.StarryNight',
}, },
]; ];
} }
@@ -52,11 +32,11 @@ const featuredItems = {
}, },
{ {
type: 'hatchingPotions', type: 'hatchingPotions',
path: 'hatchingPotions.White', path: 'hatchingPotions.Golden',
}, },
{ {
type: 'eggs', type: 'eggs',
path: 'eggs.PandaCub', path: 'eggs.Wolf',
}, },
{ {
type: 'food', type: 'food',
@@ -65,22 +45,6 @@ const featuredItems = {
]; ];
}, },
quests () { quests () {
if (moment().isBetween('2019-12-19', '2020-02-02')) {
return [
{
type: 'bundles',
path: 'bundles.winterQuests',
},
{
type: 'quests',
path: 'quests.evilsanta',
},
{
type: 'quests',
path: 'quests.evilsanta2',
},
];
}
return [ return [
{ {
type: 'quests', type: 'quests',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -4,7 +4,7 @@ const api = {};
// @TODO export this const, cannot export it from here because only routes are exported from // @TODO export this const, cannot export it from here because only routes are exported from
// controllers // controllers
const LAST_ANNOUNCEMENT_TITLE = 'BLOG POST: PET FOOD PREFERENCES'; const LAST_ANNOUNCEMENT_TITLE = 'VALENTINES WEEK: NPCS, VALENTINE CARDS, AND MAGIC HATCHING POTIONS!';
const worldDmg = { // @TODO const worldDmg = { // @TODO
bailey: false, bailey: false,
}; };
@@ -31,21 +31,44 @@ api.getNews = {
<div class="mr-3 ${baileyClass}"></div> <div class="mr-3 ${baileyClass}"></div>
<div class="media-body"> <div class="media-body">
<h1 class="align-self-center">${res.t('newStuff')}</h1> <h1 class="align-self-center">${res.t('newStuff')}</h1>
<h2>2/6/2020 - ${LAST_ANNOUNCEMENT_TITLE}</h2> <h2>2/11/2020 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
</div> </div>
</div> </div>
<hr/> <hr/>
<div class="scene_cake center-block"></div> <div class="promo_valentines_2020 center-block"></div>
<h3>Habitica Celebrates Valentine's Day!</h3>
<p> <p>
This month's <a href='https://habitica.wordpress.com/2020/02/05/food-preferences/' In honor of Habitica's holiday celebrating all forms of love, whether it's friendship,
target='_blank'>featured Wiki article</a> is about Pet Food Preferences! We hope that it familial, or romantic, some of the shopkeepers are dressed up! Take a look around to
will help you as you hatch and raise your own Habitican menagerie. Be sure to check it enjoy their new festive decorations.
out, and let us know what you think by reaching out on <a
href='https://twitter.com/habitica' target='_blank'>Twitter</a>, <a
href='http://blog.habitrpg.com' target='_blank'>Tumblr</a>, and <a
href='https://facebook.com/habitica' target='_blank'>Facebook</a>.
</p> </p>
<div class="small mb-3">by shanaqui and the Wiki Wizards</div> <div class="small mb-3">by Beffymaroo and Lemoness</div>
<h3>Cupid and Rose Quartz Hatching Potions</h3>
<p>
We're excited to announce the return of Rose Quartz and Cupid Magic Hatching Potions!
Between now and February 29, you can buy these potions from <a href='/shops/market'>the
Market</a> and use them to hatch any standard pet egg. (Magic Hatching Potions do not
work on Quest Pet eggs.) Magic Potion Pets aren't picky, so they'll happily eat any kind
of food that you feed them!
</p>
<p>
After they're gone, it will be at least a year before the Cupid or Rose Quartz Hatching
Potions are available again, so be sure to get them now!
</p>
<div class="small mb-3">by Vampitch, Willow the Witty, and SabreCat</div>
<div class="promo_valentines_potions center-block"></div>
<h3>Send a Valentine</h3>
<p>
Help motivate all of the lovely people in your life by sending them a caring Valentine.
Valentines can be purchased for 10 Gold from the <a href='/shops/market'>Market</a> until
February 18. For spreading love and joy throughout the community, both the giver AND the
receiver get a coveted "Adoring Friends" badge. Hooray!
</p>
<p>
While you're there, why not check out the other cards that are available to send to your
party? Each one gives a special achievement of its own...
</p>
<div class="small mb-3">by Lemoness and SabreCat</div>
</div> </div>
`, `,
}); });