fix #2163 add stats.maxMP in GET /api/v2/user. @russtaylor let me know

if you need it in other locations
This commit is contained in:
Tyler Renelle 2013-12-29 17:13:39 -07:00
parent fd324fc220
commit 2f4fd2faca

View file

@ -144,6 +144,7 @@ api.getUser = function(req, res, next) {
var user = res.locals.user.toJSON();
user.stats.toNextLevel = shared.tnl(user.stats.lvl);
user.stats.maxHealth = 50;
user.stats.maxMP = res.locals.user._statsComputed.maxMP;
delete user.apiToken;
if (user.auth) {
delete user.auth.hashed_password;