From c8d7760cbe5f5604237c1478a771e494ec0dad4e Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 27 Mar 2010 00:53:44 -0400 Subject: [PATCH] Acquire types of WORLD_DROP, SEASONAL, and CUSTOM will no longer have a false location (some CUSTOM entries have actual locations). --- ARL.lua | 4 +--- Frame.lua | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) 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 -- 1.7.9.5