Round of fixes of the new breakdown

This commit is contained in:
Tercio Jose
2023-05-03 23:33:31 -03:00
parent 3bc8ba7940
commit 773ec4342d
8 changed files with 150 additions and 79 deletions
+1 -1
View File
@@ -1104,7 +1104,7 @@ end
thisLine.icone_classe:SetTexture(spellIcon)
thisLine.icone_classe:SetTexCoord(0.078125, 0.921875, 0.078125, 0.921875)
thisLine.icone_classe:SetVertexColor(1, 1, 1)
if(thisLine.mouse_over and not instancia.baseframe.isMoving) then
if(thisLine.mouse_over and not instance.baseframe.isMoving) then
local classIcon = thisLine:GetClassIcon()
thisLine.iconHighlight:SetTexture(classIcon:GetTexture())
thisLine.iconHighlight:SetTexCoord(classIcon:GetTexCoord())
+14 -4
View File
@@ -28,6 +28,11 @@ local spellTable_FieldsToSum = {
["absorbed"] = true,
["overheal"] = true,
["totaldenied"] = true,
["e_amt"] = true,
["e_dmg"] = true,
["e_heal"] = true,
["e_lvl"] = true,
["e_total"] = true,
}
---@class spelltablemixin
@@ -90,16 +95,21 @@ Details.SpellTableMixin = {
local spellTable = spellTables[i]
if (spellTable) then
for key, value in pairs(spellTable) do
---@cast key string
---@cast value number
if (spellTable_FieldsToSum[key]) then
targetTable[key] = (targetTable[key] or 0) + value
--evoker empowerment levels
if (key == "e_lvl" or key == "e_heal" or key == "e_dmg") then
targetTable[key] = targetTable[key] or {}
for level, amount in pairs(value) do
targetTable[key][level] = (targetTable[key][level] or 0) + amount
end
else
targetTable[key] = (targetTable[key] or 0) + value
end
end
end
end
end
end,
}
--detailsFramework:Mixin(Details, Details.SpellTableMixin)