feat(content): Armoire and Backgrounds Jan 2019

This commit is contained in:
Sabe Jones
2019-01-04 13:58:51 -06:00
parent aaebd4da77
commit d22b4bb2f7
36 changed files with 73 additions and 21 deletions

View File

@@ -8,6 +8,7 @@ ENV BASE_URL https://habitica.com
ENV FACEBOOK_KEY 128307497299777
ENV GA_ID UA-33510635-1
ENV GOOGLE_CLIENT_ID 1035232791481-32vtplgnjnd1aufv3mcu1lthf31795fq.apps.googleusercontent.com
ENV LOGGLY_CLIENT_TOKEN ab5663bf-241f-4d14-8783-7d80db77089a
ENV NODE_ENV production
ENV STRIPE_PUB_KEY pk_85fQ0yMECHNfHTSsZoxZXlPSwSNfA

View File

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

View File

@@ -81,7 +81,7 @@
hr
.row
.col-12.col-md-5
| © 2018 Habitica. All rights reserved.
| © 2019 Habitica. All rights reserved.
.debug.float-left(v-if="!IS_PRODUCTION && isUserLoaded")
button.btn.btn-primary(@click="debugMenuShown = !debugMenuShown") Toggle Debug Menu
.debug-group(v-if="debugMenuShown")

View File

@@ -32,7 +32,7 @@ b-modal#avatar-modal(title="", :size='editing ? "lg" : "md"', :hide-header='true
.menu-item
.svg-icon(v-html='icons.accessoriesIcon')
strong(v-once) {{$t('extra')}}
.menu-container.col-2(@click='changeTopPage("backgrounds", "2018")', v-if='editing', :class='{active: activeTopPage === "backgrounds"}')
.menu-container.col-2(@click='changeTopPage("backgrounds", "2019")', v-if='editing', :class='{active: activeTopPage === "backgrounds"}')
.menu-item
.svg-icon(v-html='icons.backgroundsIcon')
strong(v-once) {{$t('backgrounds')}}
@@ -274,9 +274,11 @@ b-modal#avatar-modal(title="", :size='editing ? "lg" : "md"', :hide-header='true
.incentive-background(:class='[`background_${bg.key}`]')
.small-rectangle
.row.sub-menu.col-10.offset-1(v-if='!filterBackgrounds')
.col-3.text-center.sub-menu-item(@click='changeSubPage("2018")', :class='{active: activeSubPage === "2018"}')
.col-2.text-center.sub-menu-item(@click='changeSubPage("2019")', :class='{active: activeSubPage === "2019"}')
strong(v-once) 2019
.col-2.text-center.sub-menu-item(@click='changeSubPage("2018")', :class='{active: activeSubPage === "2018"}')
strong(v-once) 2018
.col-3.text-center.sub-menu-item(@click='changeSubPage("2017")', :class='{active: activeSubPage === "2017"}')
.col-2.text-center.sub-menu-item(@click='changeSubPage("2017")', :class='{active: activeSubPage === "2017"}')
strong(v-once) 2017
.col-2.text-center.sub-menu-item(@click='changeSubPage("2016")', :class='{active: activeSubPage === "2016"}')
strong(v-once) 2016
@@ -1297,6 +1299,7 @@ export default {
2016: [],
2017: [],
2018: [],
2019: [],
};
// Hack to force update for now until we restructure the data

View File

@@ -11,7 +11,7 @@ menu-dropdown.item-user(:right="true")
a.nav-link.dropdown-item.dropdown-separated.d-flex.justify-content-between.align-items-center(@click.prevent='showInbox()')
div {{ $t('messages') }}
message-count(v-if='user.inbox.newMessages > 0', :count="user.inbox.newMessages")
a.dropdown-item(@click='showAvatar("backgrounds", "2018")') {{ $t('backgrounds') }}
a.dropdown-item(@click='showAvatar("backgrounds", "2019")') {{ $t('backgrounds') }}
a.dropdown-item(@click='showProfile("stats")') {{ $t('stats') }}
a.dropdown-item(@click='showProfile("achievements")') {{ $t('achievements') }}
a.dropdown-item.dropdown-separated(@click='showProfile("profile")') {{ $t('profile') }}

View File

@@ -457,5 +457,13 @@
"backgroundFrostyForestText": "Frosty Forest",
"backgroundFrostyForestNotes": "Bundle up to hike through a Frosty Forest.",
"backgroundSnowyDayFireplaceText": "Snowy Day Fireplace",
"backgroundSnowyDayFireplaceNotes": "Snuggle up next to a Fireplace on a Snowy Day."
"backgroundSnowyDayFireplaceNotes": "Snuggle up next to a Fireplace on a Snowy Day.",
"backgrounds012019": "SET 56: Released January 2019",
"backgroundAvalancheText": "Avalanche",
"backgroundAvalancheNotes": "Flee the thundering might of an Avalanche.",
"backgroundArchaeologicalDigText": "Archaeological Dig",
"backgroundArchaeologicalDigNotes": "Unearth secrets of the ancient past at an Archaeological Dig.",
"backgroundScribesWorkshopText": "Scribe's Workshop",
"backgroundScribesWorkshopNotes": "Write your next great scroll in a Scribe's Workshop."
}

View File

@@ -403,6 +403,8 @@
"weaponArmoireNeedleOfBookbindingNotes": "You'd be surprised at how tough books can be. This needle can pierce right to the heart of your chores. Increases Strength by <%= str %>. Enchanted Armoire: Bookbinder Set (Item 3 of 4).",
"weaponArmoireSpearOfSpadesText": "Spear of Spades",
"weaponArmoireSpearOfSpadesNotes": "This knightly lance is perfect for attacking your reddest Habits and Dailies. Increases Constitution by <%= con %>. Enchanted Armoire: Ace of Spades Set (Item 3 of 3).",
"weaponArmoireArcaneScrollText": "Arcane Scroll",
"weaponArmoireArcaneScrollNotes": "This ancient To-Do list is filled with strange symbols and spells from a forgotten age. Increases Intelligence by <%= int %>. Enchanted Armoire: Scribe Set (Item 3 of 3).",
"armor": "armor",
"armorCapitalized": "Armor",
@@ -872,6 +874,8 @@
"armorArmoireSoftGreenSuitNotes": "Green is the most refreshing color! Ideal for resting those tired eyes... mmm, or even a nap... Increases Constitution and Intelligence by <%= attrs %> each. Enchanted Armoire: Green Loungewear Set (Item 2 of 3).",
"armorArmoireSoftRedSuitText": "Soft Red Suit",
"armorArmoireSoftRedSuitNotes": "Red is such an invigorating color. If you need to wake up bright and early, this suit could make the perfect pajamas... Increases Intelligence by <%= int %> and Strength by <%= str %>. Enchanted Armoire: Red Loungewear Set (Item 2 of 3).",
"armorArmoireScribesRobeText": "Scribe's Robes",
"armorArmoireScribesRobeNotes": "These velvety robes are woven with inspirational and motivational magic. Increases Perception and Intelligence by <%= attrs %> each. Enchanted Armoire: Scribe Set (Item 1 of 3).",
"headgear": "helm",
"headgearCapitalized": "Headgear",
@@ -1615,6 +1619,8 @@
"shieldArmoireSoftRedPillowNotes": "The prepared warrior packs a pillow for any expedition. Protect yourself from those tough tasks... even while you nap. Increases Constitution and Strength by <%= attrs %> each. Enchanted Armoire: Red Loungewear Set (Item 3 of 3).",
"shieldArmoireSoftGreenPillowText": "Soft Green Pillow",
"shieldArmoireSoftGreenPillowNotes": "The practical warrior packs a pillow for any expedition. Ward off those pesky chores... even while you nap. Increases Constitution by <%= con %> and Intelligence by <%= int %>. Enchanted Armoire: Green Loungewear Set (Item 3 of 3).",
"shieldArmoireMightyQuillText": "Mighty Quill",
"shieldArmoireMightyQuillNotes": "Mightier than the sword, they say! Increases Perception by <%= per %>. Enchanted Armoire: Scribe Set (Item 2 of 3). ",
"back": "Back Accessory",
"backCapitalized": "Back Accessory",

View File

@@ -773,6 +773,20 @@ let backgrounds = {
notes: t('backgroundSnowyDayFireplaceNotes'),
},
},
backgrounds012019: {
avalanche: {
text: t('backgroundAvalancheText'),
notes: t('backgroundAvalancheNotes'),
},
archaeological_dig: {
text: t('backgroundArchaeologicalDigText'),
notes: t('backgroundArchaeologicalDigNotes'),
},
scribes_workshop: {
text: t('backgroundScribesWorkshopText'),
notes: t('backgroundScribesWorkshopNotes'),
},
},
incentiveBackgrounds: {
violet: {
text: t('backgroundVioletText'),

View File

@@ -427,6 +427,15 @@ let armor = {
set: 'redLoungewear',
canOwn: ownsItem('armor_armoire_softRedSuit'),
},
scribesRobe: {
text: t('armorArmoireScribesRobeText'),
notes: t('armorArmoireScribesRobeNotes', { attrs: 7 }),
value: 100,
int: 7,
per: 7,
set: 'scribe',
canOwn: ownsItem('armor_armoire_scribesRobe'),
},
};
let body = {
@@ -1121,6 +1130,14 @@ let shield = {
set: 'redLoungewear',
canOwn: ownsItem('shield_armoire_softRedPillow'),
},
mightyQuill: {
text: t('shieldArmoireMightyQuillText'),
notes: t('shieldArmoireMightyQuillNotes', { per: 9 }),
value: 100,
per: 9,
set: 'scribe',
canOwn: ownsItem('shield_armoire_mightyQuill'),
},
};
let headAccessory = {
@@ -1471,6 +1488,14 @@ let weapon = {
set: 'aceOfSpades',
canOwn: ownsItem('weapon_armoire_spearOfSpades'),
},
arcaneScroll: {
text: t('weaponArmoireArcaneScrollText'),
notes: t('weaponArmoireArcaneScrollNotes', { int: 9 }),
value: 100,
int: 9,
set: 'scribe',
canOwn: ownsItem('weapon_armoire_arcaneScroll'),
},
};
let armoireSet = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -3,7 +3,7 @@ import { authWithHeaders } from '../../middlewares/auth';
let api = {};
// @TODO export this const, cannot export it from here because only routes are exported from controllers
const LAST_ANNOUNCEMENT_TITLE = 'JANUARY RESOLUTION SUCCESS CHALLENGE AND NEW TAKE THIS CHALLENGE';
const LAST_ANNOUNCEMENT_TITLE = 'JANUARY BACKGROUNDS AND ARMOIRE ITEMS!';
const worldDmg = { // @TODO
bailey: false,
};
@@ -30,19 +30,14 @@ api.getNews = {
<div class="mr-3 ${baileyClass}"></div>
<div class="media-body">
<h1 class="align-self-center">${res.t('newStuff')}</h1>
<h2>1/2/2019 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<h2>1/4/2019 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
</div>
</div>
<hr/>
<div class="scene_todo_list center-block"></div>
<p>The Habitica team has launched a special official Challenge series hosted in the <a href='/groups/guild/6e6a8bd3-9f5f-4351-9188-9f11fcd80a99' target='_blank'>Official New Year's Resolution Guild</a>. These Challenges are designed to help you build and maintain goals that are destined for success and then stick with them as 2019 progresses.</p>
<p>Check out the first New Year's Resolution Challenge of the year to start your path to resolution success! In <a href='/challenges/9205ad32-cd89-4f5c-a1e7-e2b54a1149f8'>Begin Your Quest</a>, we're focusing on choosing realistic and achievable resolutions! Five lucky winners will get a 15 gem prize when it closes on February 1st.</p>
<p>Congratulations to the winners of December's Challenge: Drosera, Dan O'Dea, StefanieFreige, N5t5lie, and DeLauraen!</p>
<div class="promo_take_this center-block"></div>
<p>The next Take This Challenge has also launched, "<a href='/challenges/cae96e0a-e9db-4461-90e3-ec54267f6920'>Feed Me, Seymour!</a>", with a focus on developing healthy food habits. Be sure to check it out to earn additional pieces of the Take This armor set!</p>
<p><a href='http://www.takethis.org/' target='_blank'>Take This</a> is a nonprofit that seeks to inform the gamer community about mental health issues, to provide education about mental disorders and mental illness prevention, and to reduce the stigma of mental illness.</p>
<p>Congratulations to the winners of the last Take This Challenge, "<a href='/challenges/9836deb1-181b-44fd-9571-3d5a9e50e091'>Don't Be a Completionist!</a>": grand prize winner grand prize winner Hoofter, and runners-up mvchelle, Phosphor, agentdwib, KSPanda, and fghberius. Plus, all participants in that Challenge have received a piece of the <a href='http://habitica.wikia.com/wiki/Event_Item_Sequences#Take_This_Armor_Set' target='_blank'>Take This item set</a> if they hadn't completed it already. It is located in your Rewards column. Enjoy!</p>
<div class="small mb-3">by Doctor B, the Take This team, Lemoness, Beffymaroo, and SabreCat</div>
<div class="promo_armoire_backgrounds_201901 center-block"></div>
<p>Weve added three new backgrounds to the Background Shop! Now your avatar can excavate an Archaeological Dig, write in a Scribe's Workshop, or brave a powerful Avalanche. Check them out under User Icon > Backgrounds!</p>
<p>Plus, theres new Gold-purchasable equipment in the Enchanted Armoire, including the Scribe Set. Better work hard on your real-life tasks to earn all the pieces! Enjoy :)</p>
<div class="small mb-3">by Lt. Cabel, KusSv, Snowdeath, Timsh, Vampitch, mewrose, GeraldThePixel, and SabreCat</div>
</div>
`,
});