Quantcast

Merge branch 'master' of git.wowace.com:wow/arl/mainline

mike [01-04-11 - 22:54]
Merge branch 'master' of git.wowace.com:wow/arl/mainline
Filename
Database/Vendor.lua
Interface/Panel.lua
diff --git a/Database/Vendor.lua b/Database/Vendor.lua
index 630e4df..d819a08 100644
--- a/Database/Vendor.lua
+++ b/Database/Vendor.lua
@@ -346,7 +346,7 @@ function addon:InitVendor(DB)
 	AddVendor(21432,	L["Almaador"],				BZ["Shattrath City"],		51.0, 41.9, NEUTRAL)
 	AddVendor(21474,	L["Coreiel"],				BZ["Nagrand"],			42.8, 42.6, HORDE)
 	AddVendor(21485,	L["Aldraan"],				BZ["Nagrand"],			42.9, 42.5, ALLIANCE)
-	AddVendor(21643,	L["Alurmi"],				BZ["Tanaris"],			63.6, 57.6, NEUTRAL)
+	AddVendor(21643,	L["Alurmi"],				BZ["Tanaris"],			62.99, 57.32, NEUTRAL)
 	AddVendor(21655,	L["Nakodu"],				BZ["Shattrath City"],		62.1, 69.0, NEUTRAL)
 	AddVendor(22208,	L["Nasmara Moonsong"],			BZ["Shattrath City"],		66.0, 69.0, NEUTRAL)
 	AddVendor(22212,	L["Andrion Darkspinner"],		BZ["Shattrath City"],		66.0, 67.8, NEUTRAL)
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