Acquire types of WORLD_DROP, SEASONAL, and CUSTOM will no longer have a false location (some CUSTOM entries have actual locations).
James D. Callahan III [03-27-10 - 04:53]
Acquire types of WORLD_DROP, SEASONAL, and CUSTOM will no longer have a false location (some CUSTOM entries have actual locations).
diff --git a/ARL.lua b/ARL.lua
index c25f11f..2b93b85 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -1027,13 +1027,11 @@ do
end
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 = private.custom_list[acquire_id].location or _G.MISCELLANEOUS
+ location = private.custom_list[acquire_id].location
else
-- Unhandled acquire_type
acquire[acquire_id] = true
diff --git a/Frame.lua b/Frame.lua
index 177f382..8e20881 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -3247,19 +3247,12 @@ do
if has_faction and recipe_entry.is_visible and recipe_entry.is_relevant then
local t = AcquireTable()
- local expand = false
- local type = "subheader"
- -- Add World Drop and Custom entries with no location as normal entries.
- if location_id == _G.MISCELLANEOUS or location_id == L["World Drop"] then
- expand = true
- type = "entry"
- end
t.text = FormatRecipeText(recipe_entry)
t.recipe_id = spell_id
t.location_id = location_id
- entry_index = self:InsertEntry(t, list_entry, entry_index, type, expand)
+ entry_index = self:InsertEntry(t, list_entry, entry_index, "subheader", false)
end
end
elseif list_entry.type == "subheader" then