fix API toNextLvl & maxHealth

This commit is contained in:
Tyler Renelle 2013-09-04 10:19:55 -04:00
parent 6e33878d07
commit 53fdca2f5c

View file

@ -396,8 +396,7 @@ api.buy = function(req, res, next) {
api.getUser = function(req, res, next) {
var user;
user = res.locals.user;
var user = res.locals.user.toJSON();
user.stats.toNextLevel = algos.tnl(user.stats.lvl);
user.stats.maxHealth = 50;
delete user.apiToken;