From 60326bfc6f18ed5da9ff1cca78b609bfd6ffb6d0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 31 Dec 2010 06:33:12 -0500 Subject: [PATCH] Added the ability to search for recipes by reputation name. --- Interface/Panel.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Interface/Panel.lua b/Interface/Panel.lua index 4997b73..ef9c80f 100644 --- a/Interface/Panel.lua +++ b/Interface/Panel.lua @@ -501,6 +501,7 @@ function private.InitializeFrame() do local acquire_names = private.acquire_names local location_list = private.location_list + local reputation_list = private.reputation_list local search_params = { "name", @@ -568,6 +569,28 @@ function private.InitializeFrame() end end end + + if not found then + for acquire_type, acquire_data in pairs(entry.acquire_data) do + if acquire_type == A.REPUTATION then + local breakout = false + + for id_num, info in pairs(acquire_data) do + local str = reputation_list[id_num].name:lower() + + if str and str:find(pattern) then + entry:AddState("RELEVANT") + breakout = true + break + end + end + end + + if breakout then + break + end + end + end end end -- if entry.profession end -- for -- 1.7.9.5