From 3ee275e67a7cd105dcbce04901c6b31899f0502f Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 22 Mar 2010 01:43:52 -0400 Subject: [PATCH] In SearchRecipes(): Iterate over private.acquire_names - allows for search criteria such as "world drop" or "reputation". --- Frame.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Frame.lua b/Frame.lua index b3f165c..e06bc4c 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3127,6 +3127,8 @@ function addon:InitializeFrame() ------------------------------------------------------------------------------- local SearchRecipes do + local acquire_names = private.acquire_names + local search_params = { ["item_id"] = true, ["name"] = true, @@ -3148,6 +3150,13 @@ function addon:InitializeFrame() local entry = recipe_list[index] entry.is_relevant = false + for acquire_type in pairs(acquire_names) do + if pattern == string.lower(acquire_names[acquire_type]) and entry.acquire_data[acquire_type] then + entry.is_relevant = true + break + end + end + for field in pairs(search_params) do local str = entry[field] and tostring(entry[field]):lower() or nil -- 1.7.9.5