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
17 changes: 17 additions & 0 deletions src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,23 @@ function ImportTabClass:ImportItem(itemData, slotName)
for _, property in pairs(itemData.properties) do
if property.name == "Quality" then
item.quality = tonumber(property.values[1][1]:match("%d+"))
elseif property.name:match("Quality %(") then
local catalystMap = {
["Attack"] = 1,
["Speed"] = 2,
["Suffix"] = 3,
["Life and Mana"] = 4,
["Caster"] = 5,
["Attribute"] = 6,
["Physical and Chaos Damage"] = 7,
["Resistance"] = 8,
["Prefix"] = 9,
["Defense"] = 10,
["Elemental Damage"] = 11,
["Critical"] = 12,
}
item.catalyst = catalystMap[property.name:match("Quality %((.*) Modifiers%)")]
item.catalystQuality = tonumber(property.values[1][1]:match("%d+"))
elseif property.name == "Radius" then
item.jewelRadiusLabel = property.values[1][1]
elseif property.name == "Limited to" then
Expand Down
Loading