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
1 change: 1 addition & 0 deletions src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ function ImportTabClass:ImportItem(itemData, slotName)
end
item.mirrored = itemData.mirrored
item.corrupted = itemData.corrupted
item.doubleCorrupted = itemData.doubleCorrupted
item.fractured = itemData.fractured
item.desecrated = itemData.desecrated
item.mutated = itemData.mutated
Expand Down
7 changes: 6 additions & 1 deletion src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
self.mirrored = true
elseif line == "Corrupted" then
self.corrupted = true
elseif line == "Twice Corrupted" then
self.corrupted = true
self.doubleCorrupted = true
elseif line == "Desecrated Prefix" or line == "Desecrated Suffix" then
self.desecrated = true
elseif line == "Requirements:" then
Expand Down Expand Up @@ -1294,7 +1297,9 @@ function ItemClass:BuildRaw()
if self.mirrored then
t_insert(rawLines, "Mirrored")
end
if self.corrupted then
if self.doubleCorrupted then
t_insert(rawLines, "Twice Corrupted")
elseif self.corrupted then
t_insert(rawLines, "Corrupted")
end
return table.concat(rawLines, "\n")
Expand Down
6 changes: 4 additions & 2 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3048,14 +3048,16 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
end

-- Corrupted item label
if item.corrupted or item.mirrored then
if item.corrupted or item.mirrored or item.doubleCorrupted then
if #item.explicitModLines == 0 then
tooltip:AddSeparator(10)
end
if item.mirrored then
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Mirrored", "FONTIN SC")
end
if item.corrupted then
if item.doubleCorrupted then
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Twice Corrupted", "FONTIN SC")
elseif item.corrupted then
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Corrupted", "FONTIN SC")
end
tooltip:AddSeparator(10)
Expand Down
Loading