message: Compute D1 loadout builder bonuses correctly
diff: @@ -356,15 +356,15 @@ function getBuckets(items: D1Item[]): ItemBucket {
  function normalizeStats(item: D1ItemWithNormalStats) {
  item.normalStats = {};
  - _.forIn(item.stats!, (stat: any) => {
  - item.normalStats![stat.statHash] = {
  + for (const stat of item.stats!) {
  + item.normalStats[stat.statHash] = {
  statHash: stat.statHash,
  base: stat.base,
  scaled: stat.scaled ? stat.scaled.min : 0,
  - bonus: stat.bonus,
  - split: stat.split,
  + bonus: stat.value - stat.base,
  + split: stat.split || 0,
  qualityPercentage: stat.qualityPercentage ? stat.qualityPercentage.min : 0
  };
  - });
  + }
  return item;
  }
  