feat(content): Mystery Items June 2018

This commit is contained in:
SabreCat
2018-06-21 18:44:18 +00:00
parent 122d147f07
commit 6a2a844e04
15 changed files with 42 additions and 28 deletions

View File

@@ -1,15 +1,17 @@
const migrationName = 'mystery-items-201805.js'; // Update per month import monk from 'monk';
import nconf from 'nconf';
const migrationName = 'mystery-items-201806.js'; // Update per month
const authorName = 'Sabe'; // in case script author needs to know when their ... const authorName = 'Sabe'; // in case script author needs to know when their ...
const authorUuid = '7f14ed62-5408-4e1b-be83-ada62d504931'; // ... own data is done const authorUuid = '7f14ed62-5408-4e1b-be83-ada62d504931'; // ... own data is done
/* /*
* Award this month's mystery items to subscribers * Award this month's mystery items to subscribers
*/ */
const MYSTERY_ITEMS = ['back_mystery_201805', 'head_mystery_201805']; const MYSTERY_ITEMS = ['armor_mystery_201806', 'head_mystery_201806'];
const connectionString = 'mongodb://localhost:27017/habitrpg?auto_reconnect=true'; // FOR TEST DATABASE const CONNECTION_STRING = nconf.get('MIGRATION_CONNECT_STRING');
let monk = require('monk'); let dbUsers = monk(CONNECTION_STRING).get('users', { castIds: false });
let dbUsers = monk(connectionString).get('users', { castIds: false });
let UserNotification = require('../../website/server/models/userNotification').model; let UserNotification = require('../../website/server/models/userNotification').model;
function processUsers (lastId) { function processUsers (lastId) {

View File

@@ -709,6 +709,8 @@
"armorMystery201712Notes": "The heat and light generated by this magic armor will warm your heart but never burn your skin! Confers no benefit. December 2017 Subscriber Item.", "armorMystery201712Notes": "The heat and light generated by this magic armor will warm your heart but never burn your skin! Confers no benefit. December 2017 Subscriber Item.",
"armorMystery201802Text": "Love Bug Armor", "armorMystery201802Text": "Love Bug Armor",
"armorMystery201802Notes": "This shiny armor reflects your strength of heart and infuses it into any Habiticans nearby who may need encouragement! Confers no benefit. February 2018 Subscriber Item.", "armorMystery201802Notes": "This shiny armor reflects your strength of heart and infuses it into any Habiticans nearby who may need encouragement! Confers no benefit. February 2018 Subscriber Item.",
"armorMystery201806Text": "Alluring Anglerfish Tail",
"armorMystery201806Notes": "This sinuous tail features glowing spots to light your way through the deep. Confers no benefit. June 2018 Subscriber Item.",
"armorMystery301404Text": "Steampunk Suit", "armorMystery301404Text": "Steampunk Suit",
"armorMystery301404Notes": "Dapper and dashing, wot! Confers no benefit. February 3015 Subscriber Item.", "armorMystery301404Notes": "Dapper and dashing, wot! Confers no benefit. February 3015 Subscriber Item.",
"armorMystery301703Text": "Steampunk Peacock Gown", "armorMystery301703Text": "Steampunk Peacock Gown",
@@ -1140,6 +1142,8 @@
"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.", "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", "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.", "headMystery201805Notes": "This helm will make you the proudest and prettiest (possibly also the loudest) bird in town. Confers no benefit. May 2018 Subscriber Item.",
"headMystery201806Text": "Alluring Anglerfish Helm",
"headMystery201806Notes": "The mesmerizing light atop this helm will call all the creatures of the sea to your side. We urge you to use your glowy powers of attraction for good! Confers no benefit. June 2018 Subscriber Item.",
"headMystery301404Text": "Fancy Top Hat", "headMystery301404Text": "Fancy Top Hat",
"headMystery301404Notes": "A fancy top hat for the finest of gentlefolk! January 3015 Subscriber Item. Confers no benefit.", "headMystery301404Notes": "A fancy top hat for the finest of gentlefolk! January 3015 Subscriber Item. Confers no benefit.",
"headMystery301405Text": "Basic Top Hat", "headMystery301405Text": "Basic Top Hat",

View File

@@ -145,6 +145,7 @@
"mysterySet201803": "Daring Dragonfly Set", "mysterySet201803": "Daring Dragonfly Set",
"mysterySet201804": "Spiffy Squirrel Set", "mysterySet201804": "Spiffy Squirrel Set",
"mysterySet201805": "Phenomenal Peacock Set", "mysterySet201805": "Phenomenal Peacock Set",
"mysterySet201806": "Alluring Anglerfish Set",
"mysterySet301404": "Steampunk Standard Set", "mysterySet301404": "Steampunk Standard Set",
"mysterySet301405": "Steampunk Accessories Set", "mysterySet301405": "Steampunk Accessories Set",
"mysterySet301703": "Peacock Steampunk Set", "mysterySet301703": "Peacock Steampunk Set",

View File

@@ -193,6 +193,12 @@ let armor = {
mystery: '201802', mystery: '201802',
value: 0, value: 0,
}, },
201806: {
text: t('armorMystery201806Text'),
notes: t('armorMystery201806Notes'),
mystery: '201806',
value: 0,
},
301404: { 301404: {
text: t('armorMystery301404Text'), text: t('armorMystery301404Text'),
notes: t('armorMystery301404Notes'), notes: t('armorMystery301404Notes'),
@@ -583,6 +589,12 @@ let head = {
mystery: '201805', mystery: '201805',
value: 0, value: 0,
}, },
201806: {
text: t('headMystery201806Text'),
notes: t('headMystery201806Notes'),
mystery: '201806',
value: 0,
},
301404: { 301404: {
text: t('headMystery301404Text'), text: t('headMystery301404Text'),
notes: t('headMystery301404Notes'), notes: t('headMystery301404Notes'),

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -3,7 +3,7 @@ import { authWithHeaders } from '../../middlewares/auth';
let api = {}; let api = {};
// @TODO export this const, cannot export it from here because only routes are exported from controllers // @TODO export this const, cannot export it from here because only routes are exported from controllers
const LAST_ANNOUNCEMENT_TITLE = 'SUMMER SPLASH BEGINS: SUMMER CLASS OUTFITS, SEASONAL SHOP, AND NPC DECORATIONS!'; const LAST_ANNOUNCEMENT_TITLE = 'JUNE SUBSCRIBER ITEMS AND HABIT HISTORY CHANGES';
const worldDmg = { // @TODO const worldDmg = { // @TODO
bailey: false, bailey: false,
}; };
@@ -32,33 +32,24 @@ api.getNews = {
<h1 class="align-self-center">${res.t('newStuff')}</h1> <h1 class="align-self-center">${res.t('newStuff')}</h1>
</div> </div>
</div> </div>
<h2>6/19/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2> <h2>6/21/2018 - ${LAST_ANNOUNCEMENT_TITLE}</h2>
<hr/> <hr/>
<p>To escape the summer heat in Habit City, everyone's moved down to the undersea city of Dilatory. The Summer Splash event has begun!</p>
<div class="media align-items-center"> <div class="media align-items-center">
<div class="media-body"> <div class="media-body">
<h3>Summer Class Outfits</h3> <h3>June Subscriber Items Revealed!</h3>
<p>From now until July 31st, limited edition outfits are available in the Rewards column. Depending on your class, you can be a Lionfish Mage, Fisher-Rogue, Betta Fish Warrior, or Merfolk Monarch Healer! You'd better get productive to earn enough gold before they disappear. Good luck!</p> <p>The June Subscriber Item Set has been revealed: the Alluring Anglerfish Item Set! You only have until June 30 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 class="small mb-3">by Vampitch, Vikte, TheDudeAbides, Lalaitha, and Beffymaroo</div>
<div class="media align-items-center">
<div class="promo_seasonal_shop_summer mr-3"></div>
<div class="media-body">
<h3>Seasonal Shop is Open!</h3>
<p>The <a href='/shops/seasonal' target='_blank'>Seasonal Shop</a> has opened! The Seasonal Sorceress is stocking the seasonal edition versions of previous summer outfits, now available for Gems instead of Gold. Plus, there will be more fun things in the shop as the event progresses. The Seasonal Shop will only be open until July 31st, so don't wait!</p>
<div class="small mb-3">by SabreCat, Lemoness, AnnDeLune, Vampitch, nonight, tricksy.fox, Giu09, JaizakAripaik, Teto Forever, and Kai</div>
</div>
</div>
<div class="media align-items-center">
<div class="media-body">
<h3>NPC Costumes and Shop Decorations</h3>
<p>Looks like the NPCs are really getting in to the cheery summer mood around the site. Who wouldn't? After all, there's plenty more celebration to come...</p>
<div class="small mb-3">by Lemoness and Beffymaroo</div>
</div>
<div class="npc_matt ml-3 mb-3"></div>
</div>
</div> </div>
<div class="promo_summer_splash_2018 ml-3"></div> <div class="promo_mystery_201806"></div>
</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>
<h3>Habit History Changes</h3>
<p>In a few days we're making a change to the way Habit history is stored in order to improve overall site performance and reduce errors and bugs for folks with lots of task activity.</p>
<p>If you view Habit history in a tool such as the <a href='https://oldgods.net/habitrpg/habitrpg_user_data_display.html' target='_blank'>Data Display Tool</a> you will no longer be able to see timestamps showing when you clicked a Habit. You will still see how many times you clicked it in a given day.</p>
<p>So, if you are using your Habits for any tasks where the timestamps are critical, just a heads-up and a note to save your data elsewhere as timestamp data will be lost when the change goes live!</p>
<p>If you have developed a third-party tool or extension for Habitica, please check out <a href='https://github.com/HabitRPG/habitica/pull/10442#issuecomment-396211978' target='_blank'>these notes on GitHub</a> so that you can update if needed.</p>
<p>Thanks for your understanding as we work to make Habitica better. <3</p>
<div class="small mb-3">by Paglias</div>
</div> </div>
`, `,
}); });