Skip to content

Commit 0416e59

Browse files
committed
FIX: dynamic SlotName replacement not handling slotNum 3
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
1 parent b439e04 commit 0416e59

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/Classes/Item.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,12 +1371,9 @@ local function calcLocal(modList, name, type, flags)
13711371
return result
13721372
end
13731373

1374-
-- Build list of modifiers in a given slot number (1 or 2) while applying local modifiers and adding quality
1374+
-- Build list of modifiers in a given slot number while applying local modifiers and adding quality
13751375
function ItemClass:BuildModListForSlotNum(baseList, slotNum)
1376-
local slotName = self:GetPrimarySlot()
1377-
if slotNum == 2 then
1378-
slotName = slotName:gsub("1", "2")
1379-
end
1376+
local slotName = self:GetPrimarySlot():gsub("1", tostring(slotNum))
13801377
local modList = new("ModList")
13811378
for _, baseMod in ipairs(baseList) do
13821379
local mod = copyTable(baseMod)

0 commit comments

Comments
 (0)