Skip to content

Commit

Permalink
Recurse BonusArmor instead of duplicating
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Mar 24, 2024
1 parent b7ade90 commit a1a61e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1553,9 +1553,7 @@ do
if id == StatLogic.Stats.Armor then
local base, bonus = StatLogic:GetArmorDistribution(statTable.link, value, currentColor)
value = base
local bonusID = StatLogic.Stats.BonusArmor
statTable[bonusID] = (statTable[bonusID] or 0) + bonus
table.insert(currentStats, tostring(bonusID) .. "=" .. tostring(bonus))
AddStat(StatLogic.Stats.BonusArmor, bonus, currentStats)
end
statTable[id] = (statTable[id] or 0) + tonumber(value)
table.insert(currentStats, tostring(id) .. "=" .. tostring(value))
Expand Down

0 comments on commit a1a61e1

Please sign in to comment.