From 3332a645b2043eabe28dd25ad2eb8dad042a4900 Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 22 Jun 2009 19:57:04 +0000 Subject: [PATCH] Add checks to see if binding info has been added at all, and lets deal with recipe specialities properly now. --- ARLDatamine.lua | 22 ++++++++++++++++++---- RecipeDB/ARL-Tailor.lua | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 592075e..ca28ada 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1512,10 +1512,6 @@ do twipe(missing_flags) twipe(extra_flags) - if (scan_data.specialty) then - tinsert(t,"Recipe " .. recipe_name .. " Specialty: " .. scan_data.specialty) - end - if scan_data.is_vendor then if (not flags[4]) then tinsert(missing_flags,"4 (Vendor)") @@ -1649,10 +1645,28 @@ do tinsert(t,"Horde or alliance not selected - " .. spellid) end + if (not flags[40]) and (not flags[41]) and (not flags[42]) then + tinsert(t,"No recipe binding information - " .. spellid) + end + + if (not flags[36]) and (not flags[37]) and (not flags[38]) then + tinsert(t,"No item binding information - " .. spellid) + end + if (not scan_data.tank) and (not scan_data.healer) and (not scan_data.caster) and (not scan_data.dps) then tinsert(t,"No player role flag - " .. spellid) end + if (scan_data.specialty) then + if (not scan_data.recipe_list[spellid]["Specialty"]) then + tinsert(t,"Recipe " .. recipe_name .. " (" .. spellid .. ") Missing Specialty: " .. scan_data.specialty) + elseif (scan_data.recipe_list[spellid]["Specialty"] ~= scan_data.specialty) then + tinsert(t,"Recipe " .. recipe_name .. " (" .. spellid .. ") Wrong Specialty: " .. scan_data.specialty) + end + elseif (scan_data.recipe_list[spellid]["Specialty"]) then + tinsert(t,"Recipe " .. recipe_name .. " (" .. spellid .. ") Extra Specialty: " .. scan_data.recipe_list[spellid]["Specialty"]) + end + -- Add a new line at the end to make things easier to read. tinsert(t,"\n") return tconcat(t,"\n") diff --git a/RecipeDB/ARL-Tailor.lua b/RecipeDB/ARL-Tailor.lua index 111c122..1913cbc 100644 --- a/RecipeDB/ARL-Tailor.lua +++ b/RecipeDB/ARL-Tailor.lua @@ -978,7 +978,7 @@ function addon:InitTailoring(RecipeDB) -- Robe of the Void -- 18458 self:addTradeSkill(RecipeDB,18458,300,14153,4,3908) - self:addTradeFlags(RecipeDB,18458,1,2,5,29,37,41,56) + self:addTradeFlags(RecipeDB,18458,1,2,5,21,22,23,24,25,26,27,28,29,30,37,41,53,54,56) self:addTradeAcquire(RecipeDB,18458,3,1853) -- Mooncloth -- 18560 -- 1.7.9.5