Skip to content

Commit 1f9bfe4

Browse files
authored
Fix issues with gems socketed in Ring slot 3 (#9686)
* FIX: dynamic SlotName replacement not handling slotNum 3 Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com> * FIX: only run gsub if slotNum is not 1 Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com> --------- Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
1 parent 80671e8 commit 1f9bfe4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Classes/Item.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,11 +1371,11 @@ 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)
13761376
local slotName = self:GetPrimarySlot()
1377-
if slotNum == 2 then
1378-
slotName = slotName:gsub("1", "2")
1377+
if slotNum ~= 1 then
1378+
slotName = slotName:gsub("1", tostring(slotNum))
13791379
end
13801380
local modList = new("ModList")
13811381
for _, baseMod in ipairs(baseList) do

0 commit comments

Comments
 (0)