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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user