From b24c374e7e1f154c098096a0f2bf12162daa0a10 Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 10 Aug 2009 18:32:39 +0000 Subject: [PATCH] Make the unhandled code alpha only. Readd it back in for the recipe menu. If the method type is one we don't know about then we'll error. --- ARLFrame.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 95442e9..69da53d 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -310,6 +310,7 @@ local ACQUIRE_REPUTATION = 6 local ACQUIRE_WORLD_DROP = 7 local ACQUIRE_CUSTOM = 8 local ACQUIRE_PVP = 9 +local ACQUIRE_MAX = 9 ------------------------------------------------------------------------------ -- Description: Function to determine if the player has an appropiate level of faction. @@ -913,7 +914,7 @@ local function GenerateTooltipContent(owner, rIndex, playerFaction, exclude) ttAdd(0, -1, 0, faction.." "..L["Vendor"], clr1) end elseif (v["Type"] == ACQUIRE_MOB) then - -- Mob Drop: Mob Name + -- Mob Drop: Mob Name -- MobZone MobCoords local mob = mobDB[v["ID"]] local cStr = "" @@ -1096,8 +1097,10 @@ local function GenerateTooltipContent(owner, rIndex, playerFaction, exclude) elseif faction then ttAdd(0, -1, 0, faction.." "..L["Vendor"], clr1) end + --@alpha@ else -- Unhandled ttAdd(0, -1, 0, L["Unhandled Recipe"], addon:hexcolor("NORMAL")) + --@end-alpha@ end end arlTooltip:AddSeparator() @@ -2432,12 +2435,12 @@ local function expandEntry(dsIndex) tinsert(DisplayStrings, dsIndex, t) dsIndex = dsIndex + 1 end - elseif -- We have an acquire type we aren't sure how to deal with. - --[[ + --@alpha@ + elseif (v["Type"] > ACQUIRE_MAX) then -- We have an acquire type we aren't sure how to deal with. t.String = "Unhandled Acquire Case - Type: " .. v["Type"] tinsert(DisplayStrings, dsIndex, t) dsIndex = dsIndex + 1 - ]]-- + --@end-alpha@ end end return dsIndex -- 1.7.9.5