Skip to content

Commit d662439

Browse files
author
LocalIdentity
committed
Use transform for stats
Some stats use transform functions and this was ignoring them
1 parent 95917b3 commit d662439

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)