In addon:AddRecipeAcquire(): Added proper locations for SEASONAL and CUSTOM acquire types, and future-proofed by making all un-handled acquire types attempt to use their flag string or UNKNOWN.
James D. Callahan III [03-21-10 - 09:40]
In addon:AddRecipeAcquire(): Added proper locations for SEASONAL and CUSTOM acquire types, and future-proofed by making all un-handled acquire types attempt to use their flag string or UNKNOWN.
diff --git a/ARL.lua b/ARL.lua
index 558beae..e3fb84b 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -1002,10 +1002,6 @@ do
acquire[acquire_id] = true
location = quest_list[acquire_id].location
end
- --@alpha@
- elseif acquire_type == A.SEASONAL then
- acquire[acquire_id] = true
- --@end-alpha@
elseif acquire_type == A.REPUTATION then
local vendor_list = private.vendor_list
local rep_level, vendor_id = select(i, ...)
@@ -1041,9 +1037,16 @@ do
elseif acquire_type == A.WORLD_DROP then
acquire[acquire_id] = true
location = L["World Drop"]
+ elseif acquire_type == A.SEASONAL then
+ acquire[acquire_id] = true
+ location = GetCategoryInfo(155)
+ elseif acquire_type == A.CUSTOM then
+ acquire[acquire_id] = true
+ location = _G.MISCELLANEOUS
else
- -- Handle CUSTOM, etc.
+ -- Unhandled acquire_type
acquire[acquire_id] = true
+ location = private.acquire_strings[acquire_type] or _G.UNKNOWN
end
end -- acquire_id
end -- acquire_type