maxHEalth uses new shared.maxHealth

This commit is contained in:
Will
2015-07-03 13:16:43 -07:00
parent f3829c8ce4
commit b3ae6eef17

View File

@@ -121,7 +121,7 @@ api.score = function(req, res, next) {
// Select character data to send
var userData = _.pick(user.toJSON(), ['_id', '_tmp', 'stats', 'profile']); // user.toJSON to copy-by-value
userData.stats.toNextLevel = shared.tnl(user.stats.lvl);
userData.stats.maxHealth = 50;
userData.stats.maxHealth = shared.maxHealth;
userData.stats.maxMP = user._statsComputed.maxMP;
// for each webhook