Add Dragonflight mystics, for real

Fixes #4, fixes #6
This commit is contained in:
2023-01-01 17:27:22 -06:00
parent 9ac6b125a3
commit d5a1f01749
2 changed files with 13 additions and 2 deletions

View File

@ -1487,7 +1487,7 @@ function Breakables:FindBreakablesInSlot(bagId, slotId)
local shouldHideThisItem = (self.settings.hideEqManagerItems and isInEquipmentSet) or (self.settings.hideTabards and isTabard)
or equipSlot == nil or (equipSlot == "" and not IsArtifactRelicItem(itemLink))
if (not soulbound or self.settings.showSoulbound) and not shouldHideThisItem then
if self:IsForcedDisenchantable(itemId) or ((not soulbound or self.settings.showSoulbound) and not shouldHideThisItem) then
return {itemLink, itemCount, itemType, itemTexture, bagId, slotId, itemSubType, itemLevel, BREAKABLE_DE, soulbound, itemName, itemRarity}
else
return nil
@ -1683,6 +1683,10 @@ function Breakables:SortBreakables(foundBreakables)
end
function Breakables:BreakableIsDisenchantable(itemType, itemLevel, itemRarity, itemLink, itemId)
if not itemId and itemLink then
itemId = self:GetItemIdFromLink(itemLink)
end
for i=1,#DisenchantTypes do
if DisenchantTypes[i] == itemType or IsArtifactRelicItem(itemLink) then
-- bfa+ no longer has skill level requirements for disenchanting
@ -1794,6 +1798,10 @@ function Breakables:BreakableIsDisenchantable(itemType, itemLevel, itemRarity, i
end
end
return self:IsForcedDisenchantable(itemId)
end
function Breakables:IsForcedDisenchantable(itemId)
for i=1,#AdditionalDisenchantableItems do
if AdditionalDisenchantableItems[i] == itemId then
return true

View File

@ -1,10 +1,13 @@
v1.9.10:
- Add Dragonflight Mystic disenchantable items. (Fixed)
v1.9.9
- Fix issue with not updating or showing items in some cases.
v1.9.8:
- Add Dragonflight Mystic disenchantable items.
- Fix microstutter every time a modifier key, such as Alt, was pressed.
- Improve performance when scanning for new breakables (such as when items enter/leave bags, a lockbox is clicked, etc.).