feat(event): enable Shiny Seeds

Plus Bailey news and fix for bulk purchasing transformation items
This commit is contained in:
SabreCat
2018-04-03 18:42:24 +00:00
parent 73a7c0eebc
commit f4fb90013d
11 changed files with 26 additions and 29 deletions

View File

@@ -12,7 +12,7 @@
}
.promo_mystery_201803 {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -674px -335px;
background-position: -915px -148px;
width: 114px;
height: 90px;
}
@@ -24,10 +24,16 @@
}
.promo_seasonalshop_spring {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -674px -196px;
background-position: -674px -344px;
width: 162px;
height: 138px;
}
.promo_shiny_seeds {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -674px 0px;
width: 360px;
height: 147px;
}
.promo_spring_fling_2018 {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: 0px -244px;
@@ -36,7 +42,7 @@
}
.promo_take_this {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -789px -335px;
background-position: -915px -239px;
width: 114px;
height: 87px;
}
@@ -48,7 +54,7 @@
}
.scene_todos {
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
background-position: -674px 0px;
background-position: -674px -148px;
width: 240px;
height: 195px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

@@ -47,7 +47,7 @@
strong {{ $t('howManyToBuy') }}
div(v-if='showAmountToBuy(item)')
.box
input(type='number', min='0', v-model='selectedAmountToBuy')
input(type='number', min='0', v-model.number='selectedAmountToBuy')
span(:class="{'notEnough': notEnoughCurrency}")
span.svg-icon.inline.icon-32(aria-hidden="true", v-html="icons[getPriceClass()]")
span.cost(:class="getPriceClass()") {{ item.value }}

View File

@@ -65,6 +65,7 @@
"messageUserOperationProtected": "path `<%= operation %>` was not saved, as it's a protected path.",
"messageUserOperationNotFound": "<%= operation %> operation not found",
"messageNotificationNotFound": "Notification not found.",
"messageNotAbleToBuyInBulk": "This item cannot be purchased in quantities above 1.",
"notificationsRequired": "Notification ids are required.",
"unallocatedStatsPoints": "You have <span class=\"notification-bold-blue\"><%= points %> unallocated Stat Points</span>",

View File

@@ -31,8 +31,8 @@ const featuredItems = {
path: 'quests.egg',
},
{
type: 'bundles',
path: 'bundles.hugabug',
type: 'quests',
path: 'quests.bunny',
},
],
seasonal: 'springHealer',

View File

@@ -164,7 +164,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
type: 'special',
currency: 'gold',
locked: false,
purchaseType: 'spells',
purchaseType: 'special',
class: `inventory_special_${item.key}`,
path: `spells.special.${item.key}`,
pinType: 'seasonalSpell',

View File

@@ -19,6 +19,7 @@ module.exports = {
},
availableSpells: [
'shinySeed',
],
availableQuests: [

View File

@@ -110,7 +110,7 @@ export class AbstractGoldItemOperation extends AbstractBuyOperation {
}
}
substractCurrency (user, item, quantity = 1) {
subtractCurrency (user, item, quantity = 1) {
let itemValue = this.getItemValue(item);
user.stats.gp -= itemValue * quantity;

View File

@@ -60,7 +60,7 @@ export class BuyMarketGearOperation extends AbstractGoldItemOperation {
if (item.last) ultimateGear(user);
this.substractCurrency(user, item);
this.subtractCurrency(user, item);
if (!message) {
message = this.i18n('messageBought', {

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 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 = 'BACKGROUNDS, ARMOIRE ITEMS, AND OFFICIAL CHALLENGES FOR APRIL';
const LAST_ANNOUNCEMENT_TITLE = 'SHINY SEEDS';
const worldDmg = { // @TODO
bailey: false,
};
@@ -32,25 +32,14 @@ api.getNews = {
<h1 class="align-self-center">${res.t('newStuff')}</h1>
</div>
</div>
<h2>4/2/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<h2>4/3/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<hr/>
<div class="media align-items-center">
<div class="media-body">
<h3>April Backgrounds and Armoire Items!</h3>
<p>Weve added three new backgrounds to the Background Shop! Now your avatar can fly over an Ancient Forest, soar above a Field of Wildflowers, and dally in a pretty Tulip Garden. Check them out under User Icon > Backgrounds!</p>
<p>Plus, theres new gold-purchasable equipment in the Enchanted Armoire, including some fun joke props in honor of April Fool's Day! Better work hard on your real-life tasks to earn all the pieces! Enjoy :)</p>
<div class="small mb-3">by BanthaFett, Podcod, virginiamoon, Vikte and Kiwibot</div>
<h3>April 2018 Resolution Success Challenge and Take This Challenge</h3>
<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 the year progresses. For this month's Challenge, <a href='/challenges/1db268f0-9be3-4f34-9c68-ae63b3a4c7d4' target='_blank'>Rally Your Allies</a>, we're focusing on building accountability by reaching out to supportive people in your life ! It has a 15 gem prize, which will be awarded to five lucky winners on May 1st.</p>
<p>Congratulations to the winners of March's Challenge, LuxInWonderland, kheftel, Midnight Reverie, bookishninja, and VeganValerie!</p>
</div>
<div class="promo_armoire_background_201804 ml-3"></div>
</div>
<div class="scene_positivity center-block"></div>
<p>The next Take This Challenge has also launched, "<a href='/challenges/f817901f-86eb-4bbd-afd9-d3e2396d9ae5' target='_blank'>Test Thy Courage!</a>, with a focus on initiating positive social interactions. 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, "I Am the Night!": grand prize winner Jon Johnson, and runners-up valosin, ninaninet, awcward, Jackie Stack, and SaphirSoleil. 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 didn't have the full set 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_shiny_seeds center-block"></div>
<h3>Shiny Seeds</h3>
<p>Throw a Shiny Seed at your friends and they will turn into a cheerful flower until their next cron! You can buy the Seeds in the <a href='/shops/seasonal' target='_blank'>Seasonal Shop</a> for gold. Plus, if you get transformed by a Shiny Seed, you'll receive the Agricultural Friends badge!</p>
<p>Don't want to be a flower? Just buy some Petal-Free Potion from your Rewards column to reverse it.</p>
<p>Shiny Seeds will be available in the <a href='/shops/seasonal' target='_blank'>Seasonal Shop</a> until April 30th!</p>
<div class="small mb-3">by Lemoness</div>
</div>
`,
});