Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/Classes/SkillListControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ function SkillListClass:GetRowValue(column, index, socketGroup)
if socketGroup.includeInFullDPS then
label = label .. colorCodes.CUSTOM .. " (FullDPS)"
end

if not socketGroup.source then
local colorStr = ""
for _, gem in ipairs(socketGroup.gemList) do
if gem.gemData or gem.grantedEffect then
local grantedEffect = gem.grantedEffect or (gem.gemData and gem.gemData.grantedEffect)
if grantedEffect then
local char = grantedEffect.color == 1 and "R" or grantedEffect.color == 2 and "G" or grantedEffect.color == 3 and "B" or "W"
local colorCode = gem.color or ""
if colorStr:len() > 0 then
colorStr = colorStr .. "^7-"
end
colorStr = colorStr .. colorCode .. char
end
end
end
if colorStr:len() > 0 then
label = label .. " ^7" .. colorStr
end
end

return label
end
end
Expand Down