Simplify enchant handling by removing base enchant detection logic
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user