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:
2025-12-08 15:25:07 +01:00
parent 06704f628f
commit 94f6f55fb6
7 changed files with 121 additions and 14 deletions
@@ -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