Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
-- Build socket group list
local itemSocketGroupList = { }
local abyssalSocketId = 1
for _, socketedItem in ipairs(socketedItems) do
for i, socketedItem in ipairs(socketedItems) do
if socketedItem.abyssJewel then
self:ImportItem(socketedItem, slotName .. " Abyssal Socket "..abyssalSocketId)
abyssalSocketId = abyssalSocketId + 1
Expand All @@ -1784,6 +1784,19 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
gemInstance.quality = tonumber(property.values[1][1]:match("%d+"))
end
end
-- gem colours have attribute names, sockets have colour names.
local colourMap = {
S = "R",
D = "G",
I = "B",
}
local socket = item.sockets and item.sockets[i]
if socket and socket.color and socketedItem.colour then
local mappedColour = colourMap[socketedItem.colour]
if mappedColour and mappedColour == socket.color then
gemInstance.quality = gemInstance.quality + 10
end
end
local groupID = item.sockets[socketedItem.socket + 1].group
if not itemSocketGroupList[groupID] then
itemSocketGroupList[groupID] = { label = "", enabled = true, gemList = { }, slot = slotName }
Expand Down
Loading