Quantcast

Normalized all "AddRecipe" function wrappers to have the same parameters so that the few which actually use specialties will treat the required_faction parameter appropriately.

James D. Callahan III [03-10-11 - 00:12]
Normalized all "AddRecipe" function wrappers to have the same parameters so that the few which actually use specialties will treat the required_faction parameter appropriately.
Filename
Database/Alchemy.lua
Database/Cooking.lua
Database/Enchanting.lua
Database/FirstAid.lua
Database/Inscription.lua
Database/Jewelcrafting.lua
Database/Smelting.lua
diff --git a/Database/Alchemy.lua b/Database/Alchemy.lua
index 569f3ad..3758498 100644
--- a/Database/Alchemy.lua
+++ b/Database/Alchemy.lua
@@ -35,7 +35,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 51304, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/Cooking.lua b/Database/Cooking.lua
index bd07b3b..e026b8f 100644
--- a/Database/Cooking.lua
+++ b/Database/Cooking.lua
@@ -35,7 +35,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 2550, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/Enchanting.lua b/Database/Enchanting.lua
index 450dc5d..9567d5f 100644
--- a/Database/Enchanting.lua
+++ b/Database/Enchanting.lua
@@ -35,7 +35,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 7411, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/FirstAid.lua b/Database/FirstAid.lua
index c19d4e3..9cc6ed9 100644
--- a/Database/FirstAid.lua
+++ b/Database/FirstAid.lua
@@ -35,7 +35,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 3273, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/Inscription.lua b/Database/Inscription.lua
index e40d0a6..39c4274 100644
--- a/Database/Inscription.lua
+++ b/Database/Inscription.lua
@@ -38,7 +38,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 45357, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/Jewelcrafting.lua b/Database/Jewelcrafting.lua
index f771cd1..61d1fd2 100644
--- a/Database/Jewelcrafting.lua
+++ b/Database/Jewelcrafting.lua
@@ -35,7 +35,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 25229, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end

diff --git a/Database/Smelting.lua b/Database/Smelting.lua
index a78e0b8..e49750c 100644
--- a/Database/Smelting.lua
+++ b/Database/Smelting.lua
@@ -33,7 +33,7 @@ local V = private.game_versions
 --------------------------------------------------------------------------------------------------------------------
 -- Counter and wrapper function
 --------------------------------------------------------------------------------------------------------------------
-local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
+local function AddRecipe(spell_id, skill_level, item_id, quality, genesis, optimal_level, medium_level, easy_level, trivial_level, UNUSED, required_faction)
 	return addon:AddRecipe(spell_id, skill_level, item_id, quality, 32606, nil, genesis, optimal_level, medium_level, easy_level, trivial_level, required_faction)
 end