Merge branch 'develop' of github.com:lefnire/habitrpg into develop

This commit is contained in:
Tyler Renelle 2013-03-05 14:23:00 -05:00
commit 26a26b5344

View file

@ -143,8 +143,10 @@ updateStats = (model, newStats, batch) ->
if newStats.exp >= tnl
silent = true
user.set('stats.exp', newStats.exp)
newStats.exp -= tnl
obj.stats.lvl++
while newStats.exp >= tnl # keep levelling up
newStats.exp -= tnl
obj.stats.lvl++
tnl = algos.tnl(obj.stats.lvl)
obj.stats.hp = 50
obj.stats.exp = newStats.exp