Add installation script and enhance addon functionality
- Introduced `install_addon_sub.sh` to automate addon installation. - Improved argument normalization with a new `Norm` helper function. - Added debug command for enhanced diagnostics and collector status visibility. - Ensured global addon table initialization for flexible load order. - Marked modules as loaded for better debug tracking. - Fixed TOC path formatting for Windows compatibility. - Updated `.gitignore` rules for IDE folders.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
-- AscensionExporter - Mystic Enchants collector (from equipped item tooltips)
|
||||
|
||||
-- Ensure global addon table exists even if load order varies
|
||||
AscensionExporter = _G.AscensionExporter or {}
|
||||
_G.AscensionExporter = AscensionExporter
|
||||
local AE = AscensionExporter
|
||||
|
||||
local SLOT_NAMES = {
|
||||
@@ -57,3 +60,6 @@ function AE.CollectMysticEnchants()
|
||||
table.sort(active, function(a,b) return a.name < b.name end)
|
||||
return { perSlot = perSlot, active = active }
|
||||
end
|
||||
|
||||
-- Mark module as loaded for debug visibility
|
||||
AE._loadedEnchants = true
|
||||
|
||||
Reference in New Issue
Block a user