Skip to content

Commit

Permalink
feat(event): Jack-O'-Lantern mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Oct 12, 2015
1 parent 0213360 commit dcf17b5
Show file tree
Hide file tree
Showing 15 changed files with 1,059 additions and 959 deletions.
2 changes: 1 addition & 1 deletion common/dist/sprites/habitrpg-shared.css

Large diffs are not rendered by default.

496 changes: 248 additions & 248 deletions common/dist/sprites/spritesmith-main-6.css

Large diffs are not rendered by default.

Binary file modified common/dist/sprites/spritesmith-main-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
488 changes: 244 additions & 244 deletions common/dist/sprites/spritesmith-main-7.css

Large diffs are not rendered by default.

Binary file modified common/dist/sprites/spritesmith-main-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
528 changes: 261 additions & 267 deletions common/dist/sprites/spritesmith-main-8.css

Large diffs are not rendered by default.

Binary file modified common/dist/sprites/spritesmith-main-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
376 changes: 197 additions & 179 deletions common/dist/sprites/spritesmith-main-9.css

Large diffs are not rendered by default.

Binary file modified common/dist/sprites/spritesmith-main-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions common/script/content/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@ api.specialMounts =
'Orca-Base': 'orca'
'Gryphon-RoyalPurple': 'royalPurpleGryphon'
'Phoenix-Base': 'phoenix'
'JackOLantern-Base': 'jackolantern'

api.timeTravelStable =
pets:
Expand Down
3 changes: 2 additions & 1 deletion common/script/src/content/pets-mounts/special-mounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ let specialMounts = {
'Mammoth-Base': 'mammoth',
'Orca-Base': 'orca',
'Gryphon-RoyalPurple': 'royalPurpleGryphon',
'Phoenix-Base': 'phoenix'
'Phoenix-Base': 'phoenix',
'JackOLantern-Base': 'jackolantern'
}

export default specialMounts;
67 changes: 67 additions & 0 deletions migrations/20151013_jackolanterns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
var migrationName = 'new_stuff.js';
var authorName = 'Sabe'; // in case script author needs to know when their ...
var authorUuid = '7f14ed62-5408-4e1b-be83-ada62d504931'; //... own data is done

/*
* Award Jack-O'-Lantern mounts to users who already have the pet version, award pet if they don't
*/

var dbserver = 'localhost:27017'; // FOR TEST DATABASE
// var dbserver = 'username:password@ds031379-a0.mongolab.com:31379'; // FOR PRODUCTION DATABASE
var dbname = 'habitrpg';

var mongo = require('mongoskin');
var _ = require('lodash');

var dbUsers = mongo.db(dbserver + '/' + dbname + '?auto_reconnect').collection('users');

// specify a query to limit the affected users (empty for all users):
var query = {
};

// specify fields we are interested in to limit retrieved data (empty if we're not reading data):
var fields = {
'items.pets.JackOLantern-Base':1
};

console.warn('Updating users...');
var progressCount = 1000;
var count = 0;
dbUsers.findEach(query, fields, {batchSize:250}, function(err, user) {
if (err) { return exiting(1, 'ERROR! ' + err); }
if (!user) {
console.warn('All appropriate users found and modified.');
return displayData();
}
count++;

// specify user data to change:
var set = {};
if (user.items.pets['JackOLantern-Base']) {
set = {'migration':migrationName, 'items.mounts.JackOLantern-Base':true};
} else {
set = {'migration':migrationName, 'items.pets.JackOLantern-Base':5};
}

dbUsers.update({_id:user._id}, {$set:set});

if (count%progressCount == 0) console.warn(count + ' ' + user._id);
if (user._id == authorUuid) console.warn(authorName + ' processed');
});


function displayData() {
console.warn('\n' + count + ' users processed\n');
return exiting(0);
}


function exiting(code, msg) {
code = code || 0; // 0 = success
if (code && !msg) { msg = 'ERROR!'; }
if (msg) {
if (code) { console.error(msg); }
else { console.log( msg); }
}
process.exit(code);
}
57 changes: 38 additions & 19 deletions website/views/shared/new-stuff.jade
Original file line number Diff line number Diff line change
@@ -1,34 +1,53 @@
h2 10/8/2015 - WORLD BOSS REVEALED: BURNOUT!
h2 10/13/2015 - JACK O'LANTERN PETS AND MOUNTS! WORLD BOSS EXHAUST STRIKE!
hr
tr
td
.promo_burnout.pull-right
h3 Burnout, Scourge of the Flourishing Fields
p It is well past midnight, still and stiflingly hot, when Redphoenix and scout captain Kiwibot abruptly burst through the city gates. "We need to evacuate all the wooden buildings!" Redphoenix shouts. "Hurry!"
.Pet-JackOLantern-Base.pull-right
h3 Jack O'Lantern Pets and Mounts
p The Flourishing Fields are full of cute carved pumpkins - and it looks like one has followed you home!
br
p Kiwibot grips the wall as she catches her breath."It's draining people and turning them into Exhaust Spirits! That's why everything was delayed. That's where the missing people have gone. It's been stealing their energy!"
br
p "'It'?'" asks Lemoness.
br
p And then the heat takes form.
br
p It rises from the earth in a billowing, twisting mass, and the air chokes with the scent of smoke and sulphur. Flames lick across the molten ground and contort into limbs, writhing to horrific heights. Smoldering eyes snap open, and the creature lets out a deep and crackling cackle.
br
p Kiwibot whispers a single word.
br
p "Burnout."
hr
p Quickly, Habiticans, we have to save the Flourishing Fields from incineration! All of us will battle this World Boss together by completing tasks, but it won't attack us individually. However, the more Dailies we skip, the closer we get to triggering its fearsome Exhaust Strike, which will target our NPCs!
p Those of you who weren't around last Fall Festival have received an adorable pet Jack-O'-Lantern, and those of you who got one last year have received a cheerful Jack-O'-Lantern Mount! Thank you for using Habitica - we really love you all <3
p.small.muted by Lemoness
tr
td
.npc_ian_broken.pull-right
h3 World Boss: Burnout Uses Exhaust Strike!
p Oh no! Despite our best efforts, we've let some Dailies get away from us, and now Burnout is inflamed with energy! With a crackling snarl, it engulfs Ian the Quest Master in a surge of spectral fire. As fallen quest scrolls smolder, the smoke clears, and you see that Ian has been drained of energy and turned into a drifting Exhaust Spirit!
br
p Knowing your enemy is the first step to defeating it. <a href='http://habitica.wikia.com/wiki/Boss#World_Bosses' target='_blank'>Read more about World Bosses here</a>.
p Only defeating Burnout can break the spell and save our beloved Quest Master. Let's keep our Dailies in check and defeat this monster before it attacks again!
br
p.small.muted by Lemoness, SabreCat, and Kiwibot
p Late to the fight? Learn about Burnout and how to defeat World Bosses <a href='http://habitica.wikia.com/wiki/Boss#World_Bosses' target='_blank'>here</a>.

if menuItem !== 'oldNews'
hr
a(href='/static/old-news', target='_blank') Read older news

mixin oldNews
h2 10/8/2015 - WORLD BOSS REVEALED: BURNOUT!
tr
td
.promo_burnout.pull-right
h3 Burnout, Scourge of the Flourishing Fields
p It is well past midnight, still and stiflingly hot, when Redphoenix and scout captain Kiwibot abruptly burst through the city gates. "We need to evacuate all the wooden buildings!" Redphoenix shouts. "Hurry!"
br
p Kiwibot grips the wall as she catches her breath."It's draining people and turning them into Exhaust Spirits! That's why everything was delayed. That's where the missing people have gone. It's been stealing their energy!"
br
p "'It'?'" asks Lemoness.
br
p And then the heat takes form.
br
p It rises from the earth in a billowing, twisting mass, and the air chokes with the scent of smoke and sulphur. Flames lick across the molten ground and contort into limbs, writhing to horrific heights. Smoldering eyes snap open, and the creature lets out a deep and crackling cackle.
br
p Kiwibot whispers a single word.
br
p "Burnout."
hr
p Quickly, Habiticans, we have to save the Flourishing Fields from incineration! All of us will battle this World Boss together by completing tasks, but it won't attack us individually. However, the more Dailies we skip, the closer we get to triggering its fearsome Exhaust Strike, which will target our NPCs!
br
p Knowing your enemy is the first step to defeating it. <a href='http://habitica.wikia.com/wiki/Boss#World_Bosses' target='_blank'>Read more about World Bosses here</a>.
br
p.small.muted by Lemoness, SabreCat, and Kiwibot

h2 10/5/2015 - OCTOBER BACKGROUNDS REVEALED, COSTUME CHALLENGE BEGINS, AND FALL PLOT-LINE CONTINUES
tr
td
Expand Down

0 comments on commit dcf17b5

Please sign in to comment.