winter event! npcs, snowball=>snowman, new hairs/beards

This commit is contained in:
Tyler Renelle
2013-12-20 10:21:24 -07:00
parent a46c09f0d1
commit b9f2599f9c
87 changed files with 1927 additions and 1050 deletions
+14
View File
@@ -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
+1 -1
View File
@@ -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]