Quantcast

After initializing the recipes, nil the profession entry from private.profession_init_funcs

James D. Callahan III [03-08-11 - 08:49]
After initializing the recipes, nil the profession entry from private.profession_init_funcs
Filename
Database/Alchemy.lua
Database/Blacksmithing.lua
Database/Cooking.lua
Database/Enchanting.lua
Database/Engineering.lua
Database/FirstAid.lua
Database/Inscription.lua
Database/Jewelcrafting.lua
Database/Leatherworking.lua
Database/Runeforging.lua
Database/Smelting.lua
Database/Tailoring.lua
diff --git a/Database/Alchemy.lua b/Database/Alchemy.lua
index 569f3ad..9362e06 100644
--- a/Database/Alchemy.lua
+++ b/Database/Alchemy.lua
@@ -1538,4 +1538,5 @@ function addon:InitAlchemy()
 	recipe:AddTrainer(1386, 2132, 3009, 3184, 3347, 4160, 4611, 5177, 5499, 26951, 26975, 27023, 27029, 28703, 33588)

 	self.InitAlchemy = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Blacksmithing.lua b/Database/Blacksmithing.lua
index e92c149..af3ad3b 100644
--- a/Database/Blacksmithing.lua
+++ b/Database/Blacksmithing.lua
@@ -2924,4 +2924,5 @@ function addon:InitBlacksmithing()
 	recipe:AddVendor(50375, 50382)

 	self.InitBlacksmithing = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Cooking.lua b/Database/Cooking.lua
index bd07b3b..49bbc32 100644
--- a/Database/Cooking.lua
+++ b/Database/Cooking.lua
@@ -1111,4 +1111,5 @@ function addon:InitCooking()
 	recipe:AddSeason(5)

 	self.InitCooking = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Enchanting.lua b/Database/Enchanting.lua
index 450dc5d..a46e540 100644
--- a/Database/Enchanting.lua
+++ b/Database/Enchanting.lua
@@ -1808,4 +1808,5 @@ function addon:InitEnchanting()
 	recipe:AddWorldDrop("Deepholm", "Eastern Kingdoms", "Kalimdor")

 	self.InitEnchanting = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Engineering.lua b/Database/Engineering.lua
index 17e6a99..e6393d5 100644
--- a/Database/Engineering.lua
+++ b/Database/Engineering.lua
@@ -1658,4 +1658,5 @@ function addon:InitEngineering()
 	recipe:AddTrainer(5518, 11017)

 	self.InitEngineering = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/FirstAid.lua b/Database/FirstAid.lua
index c19d4e3..cd44d97 100644
--- a/Database/FirstAid.lua
+++ b/Database/FirstAid.lua
@@ -149,4 +149,5 @@ function addon:InitFirstAid()
 	recipe:AddTrainer(2326, 2327, 2329, 2798, 3181, 4211, 4591, 5150, 5759, 5939, 5943, 6094, 16272, 16662, 16731, 17214, 17424, 18990, 18991, 19184, 19478, 22477, 23734, 26956, 26992, 28706, 29233, 33589, 33621, 45540, 49879, 50574)

 	self.InitFirstAid = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Inscription.lua b/Database/Inscription.lua
index e40d0a6..02b6700 100644
--- a/Database/Inscription.lua
+++ b/Database/Inscription.lua
@@ -2375,4 +2375,5 @@ function addon:InitInscription()
 	recipe:AddTrainer(28702, 30706, 30711, 30713, 30715, 30717, 46716)

 	self.InitInscription = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Jewelcrafting.lua b/Database/Jewelcrafting.lua
index f771cd1..85759e7 100644
--- a/Database/Jewelcrafting.lua
+++ b/Database/Jewelcrafting.lua
@@ -3010,4 +3010,5 @@ function addon:InitJewelcrafting()
 	recipe:AddWorldDrop("Deepholm", "Eastern Kingdoms", "Kalimdor")

 	self.InitJewelcrafting = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Leatherworking.lua b/Database/Leatherworking.lua
index 99c60d2..66b4e27 100644
--- a/Database/Leatherworking.lua
+++ b/Database/Leatherworking.lua
@@ -3063,5 +3063,6 @@ function addon:InitLeatherworking()
 	recipe:AddTrainer(3007, 3365, 3967, 4212, 4588, 5127, 5564, 26998, 28700, 29507, 33581)

 	self.InitLeatherworking = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end

diff --git a/Database/Runeforging.lua b/Database/Runeforging.lua
index afa8087..e0ae0d2 100644
--- a/Database/Runeforging.lua
+++ b/Database/Runeforging.lua
@@ -92,4 +92,5 @@ function addon:InitRuneforging()
 	recipe:AddTrainer(29194, 29195, 29196, 31084)

 	self.InitRuneforging = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Smelting.lua b/Database/Smelting.lua
index a78e0b8..a669d12 100644
--- a/Database/Smelting.lua
+++ b/Database/Smelting.lua
@@ -191,4 +191,5 @@ function addon:InitSmelting()
 	recipe:AddTrainer(3357, 4254, 5513, 16663)

 	self.InitSmelting = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end
diff --git a/Database/Tailoring.lua b/Database/Tailoring.lua
index a8c02c5..14c749a 100644
--- a/Database/Tailoring.lua
+++ b/Database/Tailoring.lua
@@ -2416,4 +2416,5 @@ function addon:InitTailoring()
 	recipe:AddTrainer(1346, 3363, 4159, 4576, 5153, 9584, 16640, 28699, 33613, 44783, 45559)

 	self.InitTailoring = nil
+	private.profession_init_funcs[recipe.profession] = nil
 end