mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
maxHEalth uses new shared.maxHealth
This commit is contained in:
parent
f3829c8ce4
commit
b3ae6eef17
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue