From 5dbf513af94aa2b420b6bb9641fb92f98db2944b Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 21 Jul 2009 18:43:02 +0000 Subject: [PATCH] Add some debug info on which recipes do not have game info, or skill level info added yet. --- AckisRecipeList.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 0629e5a..3a9f13e 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -515,6 +515,7 @@ end -- do block -- @param Grey Level at which recipe is considered greay. -- @return None, array is passed as a reference. function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Profession, Specialty, Game, Orange, Yellow, Green, Grey) + local spellLink = GetSpellLink(SpellID) -- Get the recipe link from the spell ID local profession_id = GetSpellInfo(Profession) local recipe_name = GetSpellInfo(SpellID) @@ -572,6 +573,19 @@ function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Prof elseif (SkillLevel <= 450) then recipeentry["Game"] = 2 end + + --@alpha@ + if (not Game) then + self:Print("No expansion information: "..profession_id.." "..tostring(SpellID).." "..recipe_name) + elseif (Game > 2) then + self:Print("Expansion information too high: "..profession_id.." "..tostring(SpellID).." "..recipe_name) + end + + if (not Orange) then + self:Print("No skill level information: "..profession_id.." "..tostring(SpellID).." "..recipe_name) + end + --@end-alpha@ + end --- Adds filtering flags to a specific tradeskill. -- 1.7.9.5