Skip to content

Commit 8821891

Browse files
authored
Show "Twice Corrupted" text for imported items (#1674)
1 parent a53cccf commit 8821891

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/Classes/ImportTab.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ function ImportTabClass:ImportItem(itemData, slotName)
10331033
end
10341034
item.mirrored = itemData.mirrored
10351035
item.corrupted = itemData.corrupted
1036+
item.doubleCorrupted = itemData.doubleCorrupted
10361037
item.fractured = itemData.fractured
10371038
item.desecrated = itemData.desecrated
10381039
item.mutated = itemData.mutated

src/Classes/Item.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
384384
self.mirrored = true
385385
elseif line == "Corrupted" then
386386
self.corrupted = true
387+
elseif line == "Twice Corrupted" then
388+
self.corrupted = true
389+
self.doubleCorrupted = true
387390
elseif line == "Desecrated Prefix" or line == "Desecrated Suffix" then
388391
self.desecrated = true
389392
elseif line == "Requirements:" then
@@ -1294,7 +1297,9 @@ function ItemClass:BuildRaw()
12941297
if self.mirrored then
12951298
t_insert(rawLines, "Mirrored")
12961299
end
1297-
if self.corrupted then
1300+
if self.doubleCorrupted then
1301+
t_insert(rawLines, "Twice Corrupted")
1302+
elseif self.corrupted then
12981303
t_insert(rawLines, "Corrupted")
12991304
end
13001305
return table.concat(rawLines, "\n")

src/Classes/ItemsTab.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,14 +3048,16 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
30483048
end
30493049

30503050
-- Corrupted item label
3051-
if item.corrupted or item.mirrored then
3051+
if item.corrupted or item.mirrored or item.doubleCorrupted then
30523052
if #item.explicitModLines == 0 then
30533053
tooltip:AddSeparator(10)
30543054
end
30553055
if item.mirrored then
30563056
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Mirrored", "FONTIN SC")
30573057
end
3058-
if item.corrupted then
3058+
if item.doubleCorrupted then
3059+
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Twice Corrupted", "FONTIN SC")
3060+
elseif item.corrupted then
30593061
tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Corrupted", "FONTIN SC")
30603062
end
30613063
tooltip:AddSeparator(10)

0 commit comments

Comments
 (0)