@@ -31,7 +31,7 @@ function CalcBreakdownClass:IsMouseOver()
3131 if not self :IsShown () then
3232 return
3333 end
34- return self :IsMouseInBounds () or self :GetMouseOverControl ()
34+ return self :IsMouseInBounds () or self :GetMouseOverControl ()
3535end
3636
3737function CalcBreakdownClass :SetBreakdownData (displayData , pinned )
@@ -87,7 +87,7 @@ function CalcBreakdownClass:SetBreakdownData(displayData, pinned)
8787 local _ , num = string.gsub (row [col .key ], " %d%d%d%d" , " " ) -- count how many commas will be added
8888 if main .showThousandsSeparators and num > 0 then
8989 col .width = m_max (col .width or 0 , DrawStringWidth (16 , " VAR" , col .label ) + 6 , DrawStringWidth (12 , " VAR" , row [col .key ]) + 6 + (4 * num ))
90- else
90+ else
9191 col .width = m_max (col .width or 0 , DrawStringWidth (16 , " VAR" , col .label ) + 6 , DrawStringWidth (12 , " VAR" , row [col .key ]) + 6 )
9292 end
9393 end
@@ -176,7 +176,7 @@ function CalcBreakdownClass:AddBreakdownSection(sectionData)
176176 local section = {
177177 type = " TABLE" ,
178178 rowList = breakdown .reservations ,
179- colList = {
179+ colList = {
180180 { label = " Skill" , key = " skillName" },
181181 { label = " Base" , key = " base" },
182182 { label = " MCM" , key = " mult" },
@@ -195,7 +195,7 @@ function CalcBreakdownClass:AddBreakdownSection(sectionData)
195195 local section = {
196196 type = " TABLE" ,
197197 rowList = breakdown .damageTypes ,
198- colList = {
198+ colList = {
199199 { label = " From" , key = " source" , right = true },
200200 { label = " Base" , key = " base" },
201201 { label = " Inc/red" , key = " inc" },
@@ -242,8 +242,8 @@ function CalcBreakdownClass:AddBreakdownSection(sectionData)
242242 table.sort (rowList , function (a , b )
243243 return a [' base' ] > b [' base' ]
244244 end )
245-
246- local section = {
245+
246+ local section = {
247247 type = " TABLE" ,
248248 rowList = rowList ,
249249 colList = colList ,
@@ -297,7 +297,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
297297 type = " TABLE" ,
298298 label = sectionData .label ,
299299 rowList = rowList ,
300- colList = {
300+ colList = {
301301 { label = " Value" , key = " displayValue" },
302302 { label = " Stat" , key = " name" },
303303 { label = " Skill types" , key = " flags" },
@@ -340,7 +340,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
340340 local sourceType = row .mod .source :match (" [^:]+" )
341341 if not sourceTotals [sourceType ] then
342342 sourceTotals [sourceType ] = { }
343- end
343+ end
344344 end
345345 for sourceType , lines in pairs (sourceTotals ) do
346346 cfg .source = sourceType
@@ -402,7 +402,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
402402 row .sourceNameTooltip = function (tooltip )
403403 local args = row .mod .sourceSlot
404404 if row .mod .sourceSlot == " Jewel" and row .mod .sourceSlotNum ~= nil and build .spec .nodes [row .mod .sourceSlotNum ] and build .spec .nodes [row .mod .sourceSlotNum ].containJewelSocket then
405- args = { nodeId = row .mod .sourceSlotNum }
405+ args = build . itemsTab . sockets [ row .mod .sourceSlotNum ]
406406 end
407407 build .itemsTab :AddItemTooltip (tooltip , item , args )
408408 end
@@ -546,7 +546,7 @@ function CalcBreakdownClass:FormatModValue(value, modType)
546546 return " ?"
547547 end
548548 else
549- return value
549+ return value
550550 end
551551end
552552
0 commit comments