feat(content): May Subscriber Items

This commit is contained in:
SabreCat
2018-05-24 18:25:36 +00:00
parent 724e1240a3
commit 42d7744d12
13 changed files with 42 additions and 8 deletions

View File

@@ -1,11 +1,11 @@
const migrationName = 'mystery-items-201802.js'; // Update per month
const migrationName = 'mystery-items-201805.js'; // Update per month
const authorName = 'Sabe'; // in case script author needs to know when their ...
const authorUuid = '7f14ed62-5408-4e1b-be83-ada62d504931'; // ... own data is done
/*
* Award this month's mystery items to subscribers
*/
const MYSTERY_ITEMS = ['back_mystery_201804', 'headAccessory_mystery_201804'];
const MYSTERY_ITEMS = ['back_mystery_201805', 'head_mystery_201805'];
const connectionString = 'mongodb://localhost:27017/habitrpg?auto_reconnect=true'; // FOR TEST DATABASE
let monk = require('monk');

View File

@@ -1105,6 +1105,8 @@
"headMystery201802Notes": "The antennae on this helm act as cute dowsing rods, detecting feelings of love and support nearby. Confers no benefit. February 2018 Subscriber Item.",
"headMystery201803Text": "Daring Dragonfly Circlet",
"headMystery201803Notes": "Although its appearance is quite decorative, you can engage the wings on this circlet for extra lift! Confers no benefit. March 2018 Subscriber Item.",
"headMystery201805Text": "Phenomenal Peacock Helm",
"headMystery201805Notes": "This helm will make you the proudest and prettiest (possibly also the loudest) bird in town. Confers no benefit. May 2018 Subscriber Item.",
"headMystery301404Text": "Fancy Top Hat",
"headMystery301404Notes": "A fancy top hat for the finest of gentlefolk! January 3015 Subscriber Item. Confers no benefit.",
"headMystery301405Text": "Basic Top Hat",
@@ -1473,6 +1475,8 @@
"backMystery201803Notes": "These bright and shiny wings will carry you through soft spring breezes and across lily ponds with ease. Confers no benefit. March 2018 Subscriber Item.",
"backMystery201804Text": "Squirrel Tail",
"backMystery201804Notes": "Sure, it helps you balance while you jump on branches, but the most important thing is MAXIMUM FLUFF. Confers no benefit. April 2018 Subscriber Item.",
"backMystery201805Text": "Phenomenal Peacock Tail",
"backMystery201805Notes": "This gorgeous feathery tail is perfect for a strut down a lovely garden path! Confers no benefit. May 2018 Subscriber Item.",
"backSpecialWonderconRedText": "Mighty Cape",
"backSpecialWonderconRedNotes": "Swishes with strength and beauty. Confers no benefit. Special Edition Convention Item.",

View File

@@ -144,6 +144,7 @@
"mysterySet201802": "Love Bug Set",
"mysterySet201803": "Daring Dragonfly Set",
"mysterySet201804": "Spiffy Squirrel Set",
"mysterySet201805": "Phenomenal Peacock Set",
"mysterySet301404": "Steampunk Standard Set",
"mysterySet301405": "Steampunk Accessories Set",
"mysterySet301703": "Peacock Steampunk Set",

View File

@@ -304,6 +304,12 @@ let back = {
mystery: '201804',
value: 0,
},
201805: {
text: t('backMystery201805Text'),
notes: t('backMystery201805Notes'),
mystery: '201805',
value: 0,
},
};
let body = {
@@ -571,6 +577,12 @@ let head = {
mystery: '201803',
value: 0,
},
201805: {
text: t('headMystery201805Text'),
notes: t('headMystery201805Notes'),
mystery: '201805',
value: 0,
},
301404: {
text: t('headMystery301404Text'),
notes: t('headMystery301404Notes'),

View File

@@ -206,6 +206,10 @@ let mysterySets = {
start: '2018-04-24',
end: '2018-05-02',
},
201805: {
start: '2018-05-24',
end: '2018-06-02',
},
301404: {
start: '3014-03-24',
end: '3014-04-02',

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 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 = 'FAIRY HATCHING POTIONS RETURN!';
const LAST_ANNOUNCEMENT_TITLE = 'MAY SUBSCRIBER ITEMS AND USER SPOTLIGHT!';
const worldDmg = { // @TODO
bailey: false,
};
@@ -32,12 +32,25 @@ api.getNews = {
<h1 class="align-self-center">${res.t('newStuff')}</h1>
</div>
</div>
<h2>5/15/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<h2>5/24/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<hr/>
<p>They're back! Between now and May 31, you can buy Fairy Hatching Potions from <a href='/shops/market' target='_blank'>the Market</a> and use them to hatch any standard pet egg. (Magic Hatching Potions do not work on Quest Pet eggs.) Fairy 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 Fairy Hatching Potions are available again, so be sure to get them now!</p>
<div class="small mb-3">by Edge, Willow the Witty, and SabreCat</div>
<div class="promo_fairy_potions center-block"></div>
<div class="media">
<div class="media-body">
<h3>May Subscriber Items Revealed!</h3>
<p>The May Subscriber Item Set has been revealed: the Phenomenal Peacock Item Set! You only have until May 31 to receive the item set when you <a href="/user/settings/subscription" target="_blank">subscribe</a>. If you're already an active subscriber, reload the site and then head to Inventory > Items to claim your gear!</p>
</div>
<div class="promo_mystery_201805 ml-3"></div>
</div>
<p>Subscribers also receive the ability to buy Gems for Gold -- the longer you subscribe, the more Gems you can buy per month! There are other perks as well, such as longer access to uncompressed data and a cute Jackalope pet. Best of all, subscriptions let us keep Habitica running. Thank you very much for your support -- it means a lot to us.</p>
<div class="small mb-3">by Beffymaroo</div>
<div class="media">
<div class="promo_take_this mr-3"></div>
<div class="media-body">
<h3>User Spotlight: Dr. B of Take This!</h3>
<p>There's a new User Spotlight on the blog! We've interviewed Dr.B of Take This about his Habitica setup, gaming, mental health + more! <a href="https://habitica.wordpress.com/2018/05/24/user-spotlight-dr-b-of-take-this/" target="_blank">Check it out</a>.</p>
<div class="small mb-3">by Dr. B and Beffymaroo</div>
</div>
</div>
</div>
`,
});