Renamed PROFESSION_INITS to PROFESSION_INIT_FUNCS for clarity.
James D. Callahan III [03-06-11 - 02:43]
Renamed PROFESSION_INITS to PROFESSION_INIT_FUNCS for clarity.
diff --git a/core.lua b/core.lua
index 6e3fd45..15d7003 100644
--- a/core.lua
+++ b/core.lua
@@ -71,7 +71,7 @@ local debugger = _G.tekDebug and _G.tekDebug:GetFrame(MODNAME)
------------------------------------------------------------------------------
-- Constants.
------------------------------------------------------------------------------
-local PROFESSION_INITS = {} -- Professions initialization functions.
+local PROFESSION_INIT_FUNCS = {}
------------------------------------------------------------------------------
-- Database tables
@@ -545,18 +545,18 @@ function addon:OnInitialize()
-------------------------------------------------------------------------------
-- Populate the profession initialization functions.
-------------------------------------------------------------------------------
- PROFESSION_INITS[GetSpellInfo(51304)] = addon.InitAlchemy
- PROFESSION_INITS[GetSpellInfo(51300)] = addon.InitBlacksmithing
- PROFESSION_INITS[GetSpellInfo(51296)] = addon.InitCooking
- PROFESSION_INITS[GetSpellInfo(51313)] = addon.InitEnchanting
- PROFESSION_INITS[GetSpellInfo(51306)] = addon.InitEngineering
- PROFESSION_INITS[GetSpellInfo(45542)] = addon.InitFirstAid
- PROFESSION_INITS[GetSpellInfo(51302)] = addon.InitLeatherworking
- PROFESSION_INITS[GetSpellInfo(32606)] = addon.InitSmelting
- PROFESSION_INITS[GetSpellInfo(51309)] = addon.InitTailoring
- PROFESSION_INITS[GetSpellInfo(51311)] = addon.InitJewelcrafting
- PROFESSION_INITS[GetSpellInfo(45363)] = addon.InitInscription
- PROFESSION_INITS[private.runeforging_name] = addon.InitRuneforging
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51304)] = addon.InitAlchemy
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51300)] = addon.InitBlacksmithing
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51296)] = addon.InitCooking
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51313)] = addon.InitEnchanting
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51306)] = addon.InitEngineering
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(45542)] = addon.InitFirstAid
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51302)] = addon.InitLeatherworking
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(32606)] = addon.InitSmelting
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51309)] = addon.InitTailoring
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(51311)] = addon.InitJewelcrafting
+ PROFESSION_INIT_FUNCS[_G.GetSpellInfo(45363)] = addon.InitInscription
+ PROFESSION_INIT_FUNCS[private.runeforging_name] = addon.InitRuneforging
-------------------------------------------------------------------------------
-- Hook GameTooltip so we can show information on mobs that drop/sell/train
@@ -1367,7 +1367,7 @@ function addon:InitializeProfession(profession)
if profession == private.professions["Smelting"] then
profession = private.mining_name
end
- local func = PROFESSION_INITS[profession]
+ local func = PROFESSION_INIT_FUNCS[profession]
if func then
return func(addon)