Simplify enchant handling by removing base enchant detection logic

This commit is contained in:
2025-12-08 15:52:55 +01:00
parent 3b272c47c8
commit c5031a06ea
+2 -8
View File
@@ -252,17 +252,11 @@ function AE:GenerateMarkdownGear()
if s then
itemCell = md_link(s.name, s.itemId)
local base = s.enchant and s.enchant.name or nil
-- Only show mystic enchants now (removed base enchant parsing)
local myst = mystPer[slotId]
if base and base ~= "" then
enchantCell = base
end
if myst and myst ~= "" then
enchantCell = (enchantCell ~= "-" and enchantCell ~= nil and enchantCell ~= "")
and (enchantCell .. " / Mystic: " .. myst)
or ("Mystic: " .. myst)
enchantCell = "Mystic: " .. myst
end
if not enchantCell or enchantCell == "" then enchantCell = "-" end
end
local row = string.format("| **%s** | %s | - | %s | - |", label, itemCell, enchantCell)