feat(mystery): add mystery items to spritesmith, so 3rd parties can use them too.
2732
dist/customizer.css
vendored
2
dist/habitrpg-shared.css
vendored
37
dist/habitrpg-shared.js
vendored
|
|
@ -9168,7 +9168,7 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
|
|||
|
||||
},{}],5:[function(require,module,exports){
|
||||
(function() {
|
||||
var api, classes, diminishingReturns, events, gear, gearTypes, moment, repeat, _;
|
||||
var api, classes, diminishingReturns, events, gear, gearTypes, moment, mystery, repeat, _;
|
||||
|
||||
_ = require('lodash');
|
||||
|
||||
|
|
@ -9199,6 +9199,13 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
|
|||
}
|
||||
};
|
||||
|
||||
mystery = {
|
||||
201402: {
|
||||
start: '2014-02-22',
|
||||
end: '2014-02-28'
|
||||
}
|
||||
};
|
||||
|
||||
gear = {
|
||||
weapon: {
|
||||
base: {
|
||||
|
|
@ -9729,6 +9736,14 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
|
|||
notes: "As part of the festivities, Absurd Party Robes are available free of charge in the Item Store! Swath yourself in those silly garbs and don your matching hats to celebrate this momentous day.",
|
||||
value: 0
|
||||
}
|
||||
},
|
||||
mystery: {
|
||||
201402: {
|
||||
text: 'Messenger Robes',
|
||||
notes: "Shimmering and strong, these robes have many pockets to carry letters.",
|
||||
mystery: mystery['201402'],
|
||||
value: 10
|
||||
}
|
||||
}
|
||||
},
|
||||
head: {
|
||||
|
|
@ -9955,6 +9970,14 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
|
|||
int: 7,
|
||||
value: 60
|
||||
}
|
||||
},
|
||||
mystery: {
|
||||
201402: {
|
||||
text: 'Winged Helm',
|
||||
notes: "This winged circlet imbues the wearer with the speed of the wind!",
|
||||
mystery: mystery['201402'],
|
||||
value: 10
|
||||
}
|
||||
}
|
||||
},
|
||||
shield: {
|
||||
|
|
@ -10143,6 +10166,14 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
|
|||
value: 0,
|
||||
last: true
|
||||
}
|
||||
},
|
||||
mystery: {
|
||||
201402: {
|
||||
text: 'Golden Wings',
|
||||
notes: "These shining wings have feathers that glitter in the sun!",
|
||||
mystery: mystery['201402'],
|
||||
value: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -12694,7 +12725,7 @@ var process=require("__browserify_process");(function() {
|
|||
user.markModified('party.quest.progress');
|
||||
}
|
||||
}
|
||||
if ((api.daysSince(user.items.lastDrop.date, user.preferences) === 0) && (user.items.lastDrop.count >= 5 + Math.floor(user._statsComputed.per / 10))) {
|
||||
if ((api.daysSince(user.items.lastDrop.date, user.preferences) === 0) && (user.items.lastDrop.count >= 5 + Math.floor(user._statsComputed.per / 25))) {
|
||||
return;
|
||||
}
|
||||
if (((_ref1 = user.flags) != null ? _ref1.dropsEnabled : void 0) && user.fns.predictableRandom(user.stats.exp) < chance) {
|
||||
|
|
@ -12720,7 +12751,7 @@ var process=require("__browserify_process");(function() {
|
|||
drop.type = 'Egg';
|
||||
drop.dialog = "You've found a " + drop.text + " Egg! " + drop.notes;
|
||||
} else {
|
||||
acceptableDrops = rarity < .03 ? ['Golden'] : rarity < .09 ? ['Zombie', 'CottonCandyPink', 'CottonCandyBlue'] : rarity < .18 ? ['Red', 'Shade', 'Skeleton'] : ['Base', 'White', 'Desert'];
|
||||
acceptableDrops = rarity < .02 ? ['Golden'] : rarity < .09 ? ['Zombie', 'CottonCandyPink', 'CottonCandyBlue'] : rarity < .18 ? ['Red', 'Shade', 'Skeleton'] : ['Base', 'White', 'Desert'];
|
||||
drop = user.fns.randomVal(_.pick(content.hatchingPotions, (function(v, k) {
|
||||
return __indexOf.call(acceptableDrops, k) >= 0;
|
||||
})));
|
||||
|
|
|
|||
2580
dist/spritesmith.css
vendored
BIN
dist/spritesmith.png
vendored
|
Before Width: | Height: | Size: 512 KiB After Width: | Height: | Size: 512 KiB |
BIN
img/sprites/spritesmith/armor/broad_armor_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
img/sprites/spritesmith/armor/slim_armor_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
img/sprites/spritesmith/back/back_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
img/sprites/spritesmith/head/head_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
img/sprites/spritesmith/shop/shop_armor_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/shop/shop_back_base_0.png
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
img/sprites/spritesmith/shop/shop_back_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/shop/shop_head_mystery_201402.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -16,6 +16,9 @@ events =
|
|||
winter: {start:'2013-12-31',end:'2014-02-01'}
|
||||
birthday: {start:'2013-01-30',end:'2014-02-01'}
|
||||
|
||||
mystery =
|
||||
201402: {start:'2014-02-22',end:'2014-02-28'}
|
||||
|
||||
gear =
|
||||
weapon:
|
||||
base:
|
||||
|
|
@ -108,13 +111,14 @@ gear =
|
|||
0: text: "Shade Armor", notes:'Screams when struck, for it feels pain in its wearer\'s place. Increases CON by 20.', con: 20, value:150, canOwn: ((u)-> +u.backer?.tier >= 45)
|
||||
1: text: "Crystal Armor", notes:'Its tireless power inures the wearer to mundane discomfort. Increases all attributes by 6.', con: 6, str: 6, per: 6, int: 6, value:170, canOwn: ((u)-> +u.contributor?.level >= 2)
|
||||
2: text: "Jean Chalard's Noble Tunic", notes:'Makes you extra fluffy! Increases CON and INT by 25 each.', int: 25, con: 25, value:200, canOwn: ((u)-> +u.backer?.tier >= 300)
|
||||
|
||||
#Winter event
|
||||
# Winter event
|
||||
yeti: event: events.winter, canOwn: ((u)->u.stats.class is 'warrior' ), text: "Yeti-Tamer Robe", notes:'Limited Edition 2013 Winter Gear! Fuzzy and fierce. Increases CON by 9.', con: 9, value:90
|
||||
ski: event: events.winter, canOwn: ((u)->u.stats.class is 'rogue' ), text: "Ski-sassin Parka", notes:'Limited Edition 2013 Winter Gear! Full of secret daggers and ski trail maps. Increases PER by 15.', per: 15, value:90
|
||||
candycane: event: events.winter, canOwn: ((u)->u.stats.class is 'wizard' ), text: "Candy Cane Robe", notes:'Limited Edition 2013 Winter Gear! Spun from sugar and silk. Increases INT by 9.', int: 9, value:90
|
||||
snowflake: event: events.winter, canOwn: ((u)->u.stats.class is 'healer' ), text: "Snowflake Robe", notes:'Limited Edition 2013 Winter Gear! A robe to keep you warm, even in a blizzard. Increases CON by 15.', con: 15, value:90
|
||||
birthday: event: events.birthday, text: "Absurd Party Robes", notes:"As part of the festivities, Absurd Party Robes are available free of charge in the Item Store! Swath yourself in those silly garbs and don your matching hats to celebrate this momentous day.", value: 0
|
||||
mystery:
|
||||
201402: text: 'Messenger Robes', notes: "Shimmering and strong, these robes have many pockets to carry letters.", mystery:mystery['201402'], value: 10
|
||||
|
||||
head:
|
||||
base:
|
||||
|
|
@ -159,6 +163,9 @@ gear =
|
|||
candycane: event: events.winter, canOwn: ((u)->u.stats.class is 'wizard' ), text: "Candy Cane Hat", notes:"Limited Edition 2013 Winter Gear! This is the most delicious hat in the world. It's also known to appear and disappear mysteriously. Increases PER by 7.", per: 7, value:60
|
||||
snowflake: event: events.winter, canOwn: ((u)->u.stats.class is 'healer' ), text: "Snowflake Crown", notes:'Limited Edition 2013 Winter Gear! The wearer of this crown is never cold. Increases INT by 7.', int: 7, value:60
|
||||
|
||||
mystery:
|
||||
201402: text: 'Winged Helm', notes: "This winged circlet imbues the wearer with the speed of the wind!", mystery:mystery['201402'], value: 10
|
||||
|
||||
shield:
|
||||
base:
|
||||
0: text: "No Off-Hand Equipment", notes:'No shield or second weapon.', value:0
|
||||
|
|
@ -199,7 +206,8 @@ gear =
|
|||
back:
|
||||
base:
|
||||
0: text: "No Back Accessory", notes:'No Back Accessory.', value:0, last:true
|
||||
|
||||
mystery:
|
||||
201402: text: 'Golden Wings', notes: "These shining wings have feathers that glitter in the sun!", mystery:mystery['201402'], value: 10
|
||||
|
||||
###
|
||||
The gear is exported as a tree (defined above), and a flat list (eg, {weapon_healer_1: .., shield_special_0: ...}) since
|
||||
|
|
|
|||