File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2699,9 +2699,11 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
26992699 local sourceList = { }
27002700 local modList = { }
27012701 local sortList = { { label = " Default" , stat = nil } }
2702+ local sortTransforms = { }
27022703 for _ , entry in ipairs (data .powerStatList ) do
27032704 if entry .stat and not entry .ignoreForNodes then
27042705 t_insert (sortList , { label = entry .label , stat = entry .stat })
2706+ sortTransforms [entry .stat ] = entry .transform
27052707 end
27062708 end
27072709 local function setDefaultSortOrder ()
@@ -2741,6 +2743,9 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
27412743 item :BuildAndParseRaw ()
27422744 local output = calcFunc ({ repSlotName = slotName , repItem = item }, useFullDPS )
27432745 local value = getOutputStatValue (output , stat )
2746+ if sortTransforms [stat ] then
2747+ value = sortTransforms [stat ](value )
2748+ end
27442749 listMod .sortValues [stat ] = value
27452750 return value
27462751 end
You can’t perform that action at this time.
0 commit comments