fix(stats): back & body works

Also adds December Take This migration
This commit is contained in:
Sabe Jones
2016-12-01 18:49:40 +00:00
parent 6a63f080ad
commit eaaab35f31
2 changed files with 80 additions and 1 deletions

View File

@@ -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);