mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix(stats): back & body works
Also adds December Take This migration
This commit is contained in:
@@ -4,7 +4,8 @@ import * as statHelpers from '../statHelpers';
|
||||
|
||||
module.exports = function statsComputed (user) {
|
||||
let paths = ['stats', 'stats.buffs', 'items.gear.equipped.weapon', 'items.gear.equipped.armor',
|
||||
'items.gear.equipped.head', 'items.gear.equipped.shield'];
|
||||
'items.gear.equipped.head', 'items.gear.equipped.shield', 'items.gear.equipped.body',
|
||||
'items.gear.equipped.back'];
|
||||
let computed = _.reduce(['per', 'con', 'str', 'int'], (m, stat) => {
|
||||
m[stat] = _.reduce(paths, (m2, path) => {
|
||||
let val = _.get(user, path);
|
||||
|
||||
Reference in New Issue
Block a user