One more fix

This commit is contained in:
Openarl
2017-04-15 22:50:02 +10:00
parent 8fc76abca3
commit e9e8261555
2 changed files with 4 additions and 10 deletions

View File

@@ -755,14 +755,8 @@ function buildMode:CompareStatList(statList, actor, baseOutput, compareOutput, h
local count = 0
for _, statData in ipairs(statList) do
if statData.stat and (not statData.flag or actor.mainSkill.skillFlags[statData.flag]) then
local statVal1, statVal2
if statData.space then
statVal1 = compareOutput[statData.space] and compareOutput[statData.space][statData.stat] or 0
statVal2 = baseOutput[statData.space] and baseOutput[statData.space][statData.stat] or 0
else
statVal1 = compareOutput[statData.stat] or 0
statVal2 = baseOutput[statData.stat] or 0
end
local statVal1 = compareOutput[statData.stat] or 0
local statVal2 = baseOutput[statData.stat] or 0
local diff = statVal1 - statVal2
if diff > 0.001 or diff < -0.001 then
if count == 0 then
@@ -794,7 +788,7 @@ end
-- Returns the number of stat lines added
function buildMode:AddStatComparesToTooltip(baseOutput, compareOutput, header, nodeCount)
local count = 0
if baseOutput.Minion then
if baseOutput.Minion and compareOutput.Minion then
count = count + self:CompareStatList(self.minionDisplayStats, self.calcsTab.mainEnv.minion, baseOutput.Minion, compareOutput.Minion, header.."\n^7Minion:", nodeCount)
if count > 0 then
header = "^7Player:"

View File

@@ -43,7 +43,7 @@
<File sha1="a4f9cc96ba474d0a75c768a0eabec92837e027cf" name="Classes/TextListControl.lua" part="program"/>
<File sha1="64aa26df76dfbdd479db81580cbe9126541a1a43" name="Classes/TreeTab.lua" part="program"/>
<File sha1="4b7675c8b4fe71cade7dd3d70793df1ed8022d01" name="Classes/UndoHandler.lua" part="program"/>
<File sha1="b9375c7a32a0223833b8a160153b4d81828da7cf" name="Modules/Build.lua" part="program"/>
<File sha1="049e8a6bac5a4aa50d4aebedcd131e63e7be6f4c" name="Modules/Build.lua" part="program"/>
<File sha1="8a07fe01c53b785ebb6256236e781fbaabd36c0e" name="Modules/BuildList.lua" part="program"/>
<File sha1="3a1718db83c6c9ad09f939c3f80d7ccdb3a4ce4b" name="Modules/CalcActiveSkill.lua" part="program"/>
<File sha1="be5c20701be3c2cc39c4cc7201915abfb4af8a34" name="Modules/CalcBreakdown.lua" part="program"/>