Skip to content
Open
Show file tree
Hide file tree
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
28 changes: 14 additions & 14 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ local function getTagBasedModifiers(tagName, itemSlotName)
if data.itemTagSpecial[tagName] and data.itemTagSpecial[tagName][itemSlotName] then
for _, specialMod in ipairs(data.itemTagSpecial[tagName][itemSlotName]) do
if dv:lower():find(specialMod:lower()) then
exclude = true
excluded = true
break
end
end
end
if exclude then
if excluded then
found = true
break
end
Expand All @@ -131,12 +131,12 @@ local function getTagBasedModifiers(tagName, itemSlotName)
if data.itemTagSpecial[tagName] and data.itemTagSpecial[tagName][itemSlotName] then
for _, specialMod in ipairs(data.itemTagSpecial[tagName][itemSlotName]) do
if dv:lower():find(specialMod:lower()) then
exclude = true
excluded = true
break
end
end
end
if exclude then
if excluded then
found = true
break
end
Expand Down Expand Up @@ -444,16 +444,16 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
end
end
elseif specName == "Radius" and self.type == "Jewel" then
self.jewelRadiusLabel = specVal:match("^%a+")
if specVal:match("^%a+") == "Variable" then
-- Jewel radius is variable and must be read from it's mods instead after they are parsed
deferJewelRadiusIndexAssignment = true
else
for index, data in pairs(data.jewelRadius) do
if specVal:match("^%a+") == data.label then
self.jewelRadiusIndex = index
break
end
self.jewelRadiusLabel = specVal:match("^[%a ]+")
if specVal:match("^[%a ]+") == "Variable" then
-- Jewel radius is variable and must be read from it's mods instead after they are parsed
deferJewelRadiusIndexAssignment = true
else
for index, data in pairs(data.jewelRadius) do
if specVal:match("^[%a ]+") == data.label then
self.jewelRadiusIndex = index
break
end
end
end
elseif specName == "Limited to" and self.type == "Jewel" then
Expand Down
8,550 changes: 8,550 additions & 0 deletions src/Data/ModItemExclusive.lua

Large diffs are not rendered by default.

Loading