winter event! npcs, snowball=>snowman, new hairs/beards
1466
dist/customizer.css
vendored
2
dist/habitrpg-shared.css
vendored
27
dist/habitrpg-shared.js
vendored
|
|
@ -9780,6 +9780,14 @@ var global=self;/**
|
|||
var _ref;
|
||||
return +((_ref = u.backer) != null ? _ref.tier : void 0) >= 300;
|
||||
})
|
||||
},
|
||||
winter: {
|
||||
text: "Candy Cane Hat",
|
||||
notes: 'A hat adorned in candy, a wintery treat!',
|
||||
value: 10,
|
||||
canOwn: (function() {
|
||||
return true;
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -10245,6 +10253,19 @@ var global=self;/**
|
|||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
special: {
|
||||
snowball: {
|
||||
text: 'Snowball',
|
||||
mana: 0,
|
||||
value: 1,
|
||||
target: 'user',
|
||||
notes: 'Throw a snowball at a party member!',
|
||||
cast: function(user, target) {
|
||||
target.stats.buffs.snowball = true;
|
||||
return user.items.special.snowball--;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -10260,6 +10281,8 @@ var global=self;/**
|
|||
});
|
||||
});
|
||||
|
||||
api.special = api.spells.special;
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
Drops
|
||||
|
|
@ -11309,10 +11332,10 @@ var process=require("__browserify_process");(function() {
|
|||
purchase: function(req, cb) {
|
||||
var item, key, type, _ref;
|
||||
_ref = req.params, type = _ref.type, key = _ref.key;
|
||||
if (type !== 'eggs' && type !== 'hatchingPotions' && type !== 'food') {
|
||||
if (type !== 'eggs' && type !== 'hatchingPotions' && type !== 'food' && type !== 'special') {
|
||||
return cb({
|
||||
code: 404,
|
||||
message: ":type must be in [hatchingPotions,eggs,food]"
|
||||
message: ":type must be in [hatchingPotions,eggs,food,special]"
|
||||
}, req);
|
||||
}
|
||||
item = content[type][key];
|
||||
|
|
|
|||
1466
dist/spritesmith.css
vendored
BIN
dist/spritesmith.png
vendored
|
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 306 KiB |
BIN
img/project_files/npcs/winter/npc_alex.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
img/project_files/npcs/winter/npc_bailey1.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
img/project_files/npcs/winter/npc_bailey2.png
Normal file
|
After Width: | Height: | Size: 4 KiB |
BIN
img/project_files/npcs/winter/npc_daniel.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
img/project_files/npcs/winter/npc_justin.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
img/project_files/npcs/winter/npc_matt.png
Normal file
|
After Width: | Height: | Size: 6 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_1_candycane.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_1_frost.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_1_holly.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_1_winternight.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_2_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_2_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_2_holly.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_2_winternight.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_3_candycane.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_3_frost.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_3_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/beards/hair_beard_3_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_1_candycane.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_1_frost.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_1_holly.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_1_winternight.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_2_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_2_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_2_holly.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/beards/hair_mustache_2_winternight.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_1_candycane.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_1_frost.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_1_holly.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_1_winternight.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_2_candycane.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_2_frost.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_2_holly.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_2_winternight.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_3_candycane.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_3_frost.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_3_holly.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_bangs_3_winternight.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_1_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_1_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_1_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_1_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_2_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_2_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_2_holly.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_2_winternight.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_3_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_3_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_3_holly.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_3_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_4_candycane.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_4_frost.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_4_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_4_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_5_candycane.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_5_frost.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_5_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_5_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_6_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_6_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_6_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_6_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_7_candycane.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_7_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_7_holly.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_7_winternight.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_8_candycane.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_8_frost.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_8_holly.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/hair/hair_base_8_winternight.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/sprites/spritesmith/head/head_special_winter.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
img/sprites/spritesmith/misc/snowman.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 6 KiB |
BIN
img/sprites/spritesmith/shop/inventory_special_snowball.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
img/sprites/spritesmith/shop/shop_head_special_winter.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/sprites/spritesmith/shop/shop_snowball.png
Normal file
|
After Width: | Height: | Size: 3 KiB |
|
|
@ -130,6 +130,7 @@ gear =
|
|||
0: text: "Shade Helm", notes:'Blood and ash, lava and obsidian give this helm its imagery and power. Increases INT by 20.', int: 20, value:150, canOwn: ((u)-> +u.backer?.tier >= 45)
|
||||
1: text: "Crystal Helm", notes:'The favored crown of those who lead by example. Increases all attributes by 6.', con: 6, str: 6, per: 6, int: 6, value:170, canOwn: ((u)-> +u.contributor?.level >= 3)
|
||||
2: text: "Nameless Helm", notes:'A testament to those who gave of themselves while asking nothing in return. Increases INT and STR by 25 each.', int: 25, str: 25, value:200, canOwn: ((u)-> +u.backer?.tier >= 300)
|
||||
winter: text: "Candy Cane Hat", notes: 'A hat adorned in candy, a wintery treat!', value:10, canOwn: (-> true)
|
||||
|
||||
shield:
|
||||
base:
|
||||
|
|
@ -379,6 +380,17 @@ api.spells =
|
|||
member.stats.hp += (user._statsComputed.con + user._statsComputed.int + 10) * .3
|
||||
member.stats.hp = 50 if member.stats.hp > 50
|
||||
|
||||
special:
|
||||
snowball:
|
||||
text: 'Snowball'
|
||||
mana: 0
|
||||
value: 1
|
||||
target: 'user'
|
||||
notes: 'Throw a snowball at a party member!'
|
||||
cast: (user, target) ->
|
||||
target.stats.buffs.snowball = true
|
||||
user.items.special.snowball--
|
||||
|
||||
# Intercept all spells to reduce user.stats.mp after casting the spell
|
||||
_.each api.spells, (spellClass) ->
|
||||
_.each spellClass, (spell, k) ->
|
||||
|
|
@ -389,6 +401,8 @@ _.each api.spells, (spellClass) ->
|
|||
_cast(user,target)
|
||||
user.stats.mp -= spell.mana
|
||||
|
||||
api.special = api.spells.special
|
||||
|
||||
###
|
||||
---------------------------------------------------------------
|
||||
Drops
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ api.wrap = (user) ->
|
|||
# buy is for gear, purchase is for gem-purchaseables (i know, I know...)
|
||||
purchase: (req, cb) ->
|
||||
{type,key} = req.params
|
||||
return cb({code:404,message:":type must be in [hatchingPotions,eggs,food]"},req) unless type in ['eggs','hatchingPotions', 'food']
|
||||
return cb({code:404,message:":type must be in [hatchingPotions,eggs,food,special]"},req) unless type in ['eggs','hatchingPotions', 'food', 'special']
|
||||
item = content[type][key]
|
||||
return cb({code:404,message:":key not found for Content.#{type}"},req) unless item
|
||||
user.items[type][key] = 0 unless user.items[type][key]
|
||||
|
|
|
|||