changeset 133:47b149f9a5d7 2.20

Update for MoP.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 29 Aug 2012 22:20:51 -0400
parents 64e3b96a8626
children 7817367a008e
files Ouro_Loot.toc core.lua options.lua
diffstat 3 files changed, 9 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/Ouro_Loot.toc	Mon Aug 27 03:27:14 2012 -0400
+++ b/Ouro_Loot.toc	Wed Aug 29 22:20:51 2012 -0400
@@ -1,4 +1,4 @@
-## Interface: 40300
+## Interface: 50001
 ## Title: Ouro Loot
 ## Version: @project-version@
 ## Notes: Raid loot tracking and text generation
--- a/core.lua	Mon Aug 27 03:27:14 2012 -0400
+++ b/core.lua	Wed Aug 29 22:20:51 2012 -0400
@@ -113,8 +113,8 @@
 
 
 ------ Constants
-local RAID_ROSTER_UPDATE_EVENT =
-	(select(4,GetBuildInfo()) >= 50000) and 'GROUP_ROSTER_UPDATE' or 'RAID_ROSTER_UPDATE'
+local RAID_ROSTER_UPDATE_EVENT = 'GROUP_ROSTER_UPDATE'
+	--(select(4,GetBuildInfo()) >= 50000) and 'GROUP_ROSTER_UPDATE' or 'RAID_ROSTER_UPDATE'
 local option_defaults = { profile = {
 	--['datarev'] = 20,    -- cheating, this isn't actually an option
 	['popup_on_join'] = true,
@@ -522,7 +522,7 @@
 	name = addon.instance_abbrev[name] or name
 	if typeof == "none" then return name, MAX_RAID_MEMBERS end
 	-- diffstr is "5 Player", "10 Player (Heroic)", etc.  ugh.
-	if GetLFGMode() and (GetLFGModeType() == 'raid') then
+	if GetLFGMode(LE_LFG_CATEGORY_RF) then
 		t,r = 'LFR', 25
 	elseif diffcode == 1 then
 		if IsInRaid() then
@@ -1169,7 +1169,7 @@
 	addon:SetDefaultModulePrototype(prototype)
 
 	local err = [[Module '%s' cannot register itself because it failed a required condition: '%s']]
-	function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata)
+	function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata, ...)
 		if not addon.author_debug then
 			if minrev and tonumber(minrev) > (tonumber(self.revision) or math.huge) then
 				self:Print(err,modname,
@@ -1187,7 +1187,7 @@
 				return false
 			end]]
 		end
-		return self:NewModule(modname)
+		return self:NewModule(modname,...)
 	end
 end
 
@@ -1453,7 +1453,7 @@
 		if event == "Activate" then
 			-- dispatched from Activate
 			if opts.history_suppress_LFR
-			   and GetLFGMode() and (GetLFGModeType() == 'raid')
+			   and GetLFGMode(LE_LFG_CATEGORY_RF)
 			then
 				_LFR_suppressing = true
 			end
--- a/options.lua	Mon Aug 27 03:27:14 2012 -0400
+++ b/options.lua	Wed Aug 29 22:20:51 2012 -0400
@@ -11,8 +11,8 @@
 	[52195] = true, -- Amberjewel
 	[52722] = true, -- Maelstrom Crystal
 	[71716] = true, -- Soothsayer's Runes
---	[74247] = true, -- Ethereal Shard
---	[74248] = true, -- Sha Crystal
+	[74247] = true, -- Ethereal Shard
+	[74248] = true, -- Sha Crystal
 
 	-- could probably remove most of this now
 --	[29434] = true, -- Badge of Justice
@@ -23,10 +23,6 @@
 --	[47241] = true, -- Emblem of Triumph
 --	[49426] = true, -- Emblem of Frost
 }
-if select(4,GetBuildInfo()) >= 50000 then
-	addon.default_itemfilter[74247] = true
-	addon.default_itemfilter[74248] = true
-end
 
 -- Mark these as straight to guild vault:
 addon.default_itemvault = {