diff --git a/src/Classes/ImportTab.lua b/src/Classes/ImportTab.lua index ef26f786b..c550318da 100644 --- a/src/Classes/ImportTab.lua +++ b/src/Classes/ImportTab.lua @@ -1033,6 +1033,7 @@ function ImportTabClass:ImportItem(itemData, slotName) end item.mirrored = itemData.mirrored item.corrupted = itemData.corrupted + item.sanctified = itemData.sanctified item.doubleCorrupted = itemData.doubleCorrupted item.fractured = itemData.fractured item.desecrated = itemData.desecrated diff --git a/src/Classes/Item.lua b/src/Classes/Item.lua index b7ab53a36..31619c5ee 100644 --- a/src/Classes/Item.lua +++ b/src/Classes/Item.lua @@ -380,6 +380,9 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) charmBuffLines[line] = nil elseif line == "--------" then self.checkSection = true + elseif line == "Sanctified" then + self.sanctified = true + self.corruptible = false elseif line == "Mirrored" then self.mirrored = true elseif line == "Corrupted" then @@ -713,7 +716,6 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) or data.itemMods[self.base.type] or data.itemMods.Item self.corruptible = self.base.type ~= "Flask" and self.base.type ~= "Charm" and self.base.type ~= "Rune" and self.base.type ~= "SoulCore" and self.base.type ~= "Transcendent Limb" - self.clusterJewel = data.clusterJewels and data.clusterJewels.jewels[self.baseName] self.requirements.str = self.base.req.str or 0 self.requirements.dex = self.base.req.dex or 0 self.requirements.int = self.base.req.int or 0 @@ -1297,6 +1299,9 @@ function ItemClass:BuildRaw() if self.mirrored then t_insert(rawLines, "Mirrored") end + if self.sanctified then + t_insert(rawLines, "Sanctified") + end if self.doubleCorrupted then t_insert(rawLines, "Twice Corrupted") elseif self.corrupted then diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index f5a39764b..2913c65db 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -3055,13 +3055,16 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode) end -- Corrupted item label - if item.corrupted or item.mirrored or item.doubleCorrupted then + if item.corrupted or item.mirrored or item.doubleCorrupted or item.sanctified 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.sanctified then + tooltip:AddLine(fontSizeBig, colorCodes.FRACTURED.."Sanctified", "FONTIN SC") + end if item.doubleCorrupted then tooltip:AddLine(fontSizeBig, colorCodes.NEGATIVE.."Twice Corrupted", "FONTIN SC") elseif item.corrupted then diff --git a/src/Classes/TradeQueryRequests.lua b/src/Classes/TradeQueryRequests.lua index 103e00327..b0cdf8632 100644 --- a/src/Classes/TradeQueryRequests.lua +++ b/src/Classes/TradeQueryRequests.lua @@ -413,10 +413,14 @@ function TradeQueryRequestsClass:FetchResultBlock(url, callback) if item.mirrored then t_insert(rawLines, "Mirrored") end - if item.corrupted then + if item.doubleCorrupted then + t_insert(rawLines, "Twice Corrupted") + elseif item.corrupted then t_insert(rawLines, "Corrupted") end - + if item.sanctified then + t_insert(rawLines, "Sanctified") + end table.insert(items, { amount = trade_entry.listing.price.amount,