From d03dce21632a3308c68000b493ea7c844afae394 Mon Sep 17 00:00:00 2001 From: ackis Date: Fri, 5 Jun 2009 16:24:45 +0000 Subject: [PATCH] Lets hide the no spell link output when we're dealing with runeforging. --- ARLDatamine.lua | 6 ++++-- AckisRecipeList.lua | 16 ++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 59b0536..b6b6468 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1958,10 +1958,12 @@ function addon:TooltipScanRecipe(spellid) local name = recipelist[spellid]["Name"] local link = recipelist[spellid]["RecipeLink"] - if link then + -- If a link exists, we'll scan it. + if (link) then ARLDatamineTT:SetHyperlink(link) self:ScanToolTip(name,recipelist,reverselookup,false) - else + -- Lets hide this output for runeforging. + elseif (recipelist[spellid]["Profession"] ~= GetSpellInfo(53428)) then self:Print("Missing RecipeLink for ID " .. spellid .. " - " .. name .. " (If these are DK abilities, don't worry, that's normal.") end else diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 3b531c7..eb84e35 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -597,16 +597,16 @@ function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Prof ["Locations"] = nil, ["RecipeLink"] = spellLink, ["Name"] = GetSpellInfo(SpellID), - ["Known"] = false, -- Unknown until scan occurs - ["Display"] = true, -- Set to be displayed until the filtering occurs - ["Search"] = true, -- Set to be showing in the search results - ["Flags"] = {}, -- Create the flag space in the RecipeDB - ["Acquire"] = {}, -- Create the Acquire space in the RecipeDB - ["Specialty"] = Specialty, -- Assumption: there will only be 1 speciality for a trade skill - ["Orange"] = Orange or SkillLevel, -- If we don't have an orange value in the db, just assume the skill level + ["Known"] = false, -- Unknown until scan occurs + ["Display"] = true, -- Set to be displayed until the filtering occurs + ["Search"] = true, -- Set to be showing in the search results + ["Flags"] = {}, -- Create the flag space in the RecipeDB + ["Acquire"] = {}, -- Create the Acquire space in the RecipeDB + ["Specialty"] = Specialty, -- Assumption: there will only be 1 speciality for a trade skill + ["Orange"] = Orange or SkillLevel, -- If we don't have an orange value in the db, just assume the skill level ["Yellow"] = Yellow or SkillLevel + 10, -- If we don't have a yellow value in the db, just assume the skill level ["Green"] = Green or SkillLevel + 15, -- If we don't have a green value in the db, just assume the skill level - ["Grey"] = Grey or SkillLevel + 20, -- If we don't have a grey value in the db, just assume the skill level + ["Grey"] = Grey or SkillLevel + 20, -- If we don't have a grey value in the db, just assume the skill level } local recipeentry = RecipeDB[SpellID] -- 1.7.9.5