Skip to content

Commit 6d571a1

Browse files
committed
comments, clean up
1 parent 494f835 commit 6d571a1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/Classes/ImportTab.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,12 +1265,10 @@ function ImportTabClass:ImportItem(itemData, slotName)
12651265
end
12661266
end
12671267

1268-
local jewelBases = { "Ruby", "Sapphire", "Emerald", "Diamond"}
1269-
12701268
function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
12711269
-- Build socket group list
12721270
for _, socketedItem in ipairs(socketedItems) do
1273-
if isValueInTable(jewelBases, socketedItem.baseType) then
1271+
if isValueInTable({ "Diamond", "Emerald", "Ruby", "Sapphire" }, socketedItem.baseType) then
12741272
self:ImportItem(socketedItem, slotName .. " Jewel Socket "..socketedItem.socket + 1)
12751273
else
12761274
t_insert(item.runes, socketedItem.baseType)

src/Classes/ItemsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ function ItemsTabClass:Load(xml, dbFileName)
964964
end
965965
end
966966
end
967-
-- backwards compat or fallback if the item doesn't have "Sockets: J ..."
967+
-- backwards compat or fallback if the item doesn't have "Sockets: J ..." on Load
968968
-- maybe at some point we won't need this at all
969969
local fallBackJewelSocketCount = {
970970
["Tabula Rasa"] = 6,

0 commit comments

Comments
 (0)