From 0c236d4bd57d4e26be63b765fcd7e70d417cfd3d Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 26 May 2009 18:24:57 +0000 Subject: [PATCH] Move a bunch of debug stuff from svn only to alphas as well. --- ARLFrame.lua | 12 ++++++------ AckisRecipeList.lua | 41 +++++++++++++++++------------------------ 2 files changed, 23 insertions(+), 30 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 6270096..6045230 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -241,9 +241,9 @@ local function ColourSkillLevel(recipeSkill, playerSkill, hasFaction, recStr, re return addon:Orange(recStr) -- Fallback else - --@debug@ + --@alpha@ addon:Print("DEBUG: ColourSkillLevel fallback: " .. recStr) - --@end-debug@ + --@end-alpha@ return addon:MidGrey(recStr) end @@ -495,9 +495,9 @@ do end if not loc then -- Uh-oh. -Torhal - --@debug@ + --@alpha@ addon:Print("DEBUG: No continent/zone map match for ID " .. k .. " - loc is nil.") - --@end-debug@ + --@end-alpha@ return end @@ -514,9 +514,9 @@ do continent = 4 zone = c4[loc["Location"]] else - --@debug@ + --@alpha@ addon:Print("DEBUG: No continent/zone map match for ID " .. k .. ".") - --@end-debug@ + --@end-alpha@ return end diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index f9b967d..d5b6231 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -322,9 +322,6 @@ function addon:OnEnable() -- Add an option so that ARL will work with Manufac if (Manufac) then - --@debug@ - self:Print("Enabling Manufac integration.") - --@end-debug@ Manufac.options.args.ARLScan = { type = 'execute', name = L["Scan"], @@ -752,7 +749,7 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) local acquire = RecipeDB[SpellID]["Acquire"] - --@debug@ + --@alpha@ -- Internal DB to check to see if we're adding duplicate ID's as an acquire method local AcquireIDList = {} --@end-debug@ @@ -768,9 +765,9 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) acquire[index]["Type"] = AcquireType acquire[index]["ID"] = AcquireID - --@debug@ + --@alpha@ local AcquireIDNumber = AcquireID - --@end-debug@ + --@end-alpha@ i = i + 2 @@ -781,22 +778,22 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) acquire[index]["RepVendor"] = RepVendor i = i + 2 - --@debug@ + --@alpha@ AcquireIDNumber = RepVendor - --@end-debug@ + --@end-alpha@ end index = index + 1 - --@debug@ + --@alpha@ -- We haven't seen this Acquire ID before (trainer ID, etc) if (not AcquireIDList[AcquireIDNumber]) then AcquireIDList[AcquireIDNumber] = true else self:Print("Duplicate entry: " .. SpellID .. " AcquireID: " .. AcquireIDNumber) end - --@end-debug@ + --@end-alpha@ end @@ -828,9 +825,9 @@ function addon:addLookupList(DB, ID, Name, Loc, Coordx, Coordy, Faction) if (Loc) then DB[ID]["Location"] = Loc else - --@debug@ + --@alpha@ self:Print("Spell ID: " .. ID .. " (" .. DB[ID]["Name"] .. ") has an unknown location.") - --@end-debug@ + --@end-alpha@ DB[ID]["Location"] = L["Unknown Zone"] end @@ -1668,12 +1665,12 @@ do -- Trainer if (recipeacquire[i]["Type"] == 1) then if (TrainerList) then - --@debug@ + --@alpha@ if (not TrainerList[recipeacquire[i]["ID"]]) then self:Print("Missing trainer in database: " .. recipeacquire[i]["ID"]) return end - --@end-debug@ + --@end-alpha@ local location = TrainerList[recipeacquire[i]["ID"]]["Location"] if (not locationchecklist[location]) then -- Add the location to the list @@ -1684,11 +1681,11 @@ do -- Vendor elseif (recipeacquire[i]["Type"] == 2) then if (VendorList) then - --@debug@ + --@alpha@ if (not VendorList[recipeacquire[i]["ID"]]) then self:Print("Missing vendor in database: " .. recipeacquire[i]["ID"]) end - --@end-debug@ + --@end-alpha@ local location = VendorList[recipeacquire[i]["ID"]]["Location"] if (not locationchecklist[location]) then -- Add the location to the list @@ -1699,11 +1696,11 @@ do -- Mob Drop elseif (recipeacquire[i]["Type"] == 3) then if (MobList) then - --@debug@ + --@alpha@ if (not MobList[recipeacquire[i]["ID"]]) then self:Print("Missing mob in database: " .. recipeacquire[i]["ID"]) end - --@end-debug@ + --@end-alpha@ local location = MobList[recipeacquire[i]["ID"]]["Location"] if (not locationchecklist[location]) then -- Add the location to the list @@ -1714,11 +1711,11 @@ do -- Quest elseif (recipeacquire[i]["Type"] == 4) then if (QuestList) then - --@debug@ + --@alpha@ if (not QuestList[recipeacquire[i]["ID"]]) then self:Print("Missing quest in database: " .. recipeacquire[i]["ID"]) end - --@end-debug@ + --@end-alpha@ local location = QuestList[recipeacquire[i]["ID"]]["Location"] if (not locationchecklist[location]) then -- Add the location to the list @@ -2293,10 +2290,6 @@ function addon:GetTextDump(RecipeDB, profession) local texttable = {} - --@debug@ - self:Print("DEBUG: Getting text dump for: " .. profession) - --@end-debug@ - -- Add a header to the text table tinsert(texttable,format("Ackis Recipe List Text Dump for %s",profession)) tinsert(texttable,"Text output of all recipes and acquire information. Output is in the form of comma seperated values.\n") -- 1.7.9.5