Mercurial > wow > ouroloot
comparison core.lua @ 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 | 08d3d2b7c31d |
| children | feca7e0e1f89 |
comparison
equal
deleted
inserted
replaced
| 132:64e3b96a8626 | 133:47b149f9a5d7 |
|---|---|
| 111 OuroLootSV_hist = nil | 111 OuroLootSV_hist = nil |
| 112 OuroLootSV_log = {} | 112 OuroLootSV_log = {} |
| 113 | 113 |
| 114 | 114 |
| 115 ------ Constants | 115 ------ Constants |
| 116 local RAID_ROSTER_UPDATE_EVENT = | 116 local RAID_ROSTER_UPDATE_EVENT = 'GROUP_ROSTER_UPDATE' |
| 117 (select(4,GetBuildInfo()) >= 50000) and 'GROUP_ROSTER_UPDATE' or 'RAID_ROSTER_UPDATE' | 117 --(select(4,GetBuildInfo()) >= 50000) and 'GROUP_ROSTER_UPDATE' or 'RAID_ROSTER_UPDATE' |
| 118 local option_defaults = { profile = { | 118 local option_defaults = { profile = { |
| 119 --['datarev'] = 20, -- cheating, this isn't actually an option | 119 --['datarev'] = 20, -- cheating, this isn't actually an option |
| 120 ['popup_on_join'] = true, | 120 ['popup_on_join'] = true, |
| 121 ['register_slash_synonyms'] = false, | 121 ['register_slash_synonyms'] = false, |
| 122 ['slash_synonyms'] = '/ol,/oloot', | 122 ['slash_synonyms'] = '/ol,/oloot', |
| 520 local name, typeof, diffcode, diffstr, _, perbossheroic, isdynamic = GetInstanceInfo() | 520 local name, typeof, diffcode, diffstr, _, perbossheroic, isdynamic = GetInstanceInfo() |
| 521 local t, r | 521 local t, r |
| 522 name = addon.instance_abbrev[name] or name | 522 name = addon.instance_abbrev[name] or name |
| 523 if typeof == "none" then return name, MAX_RAID_MEMBERS end | 523 if typeof == "none" then return name, MAX_RAID_MEMBERS end |
| 524 -- diffstr is "5 Player", "10 Player (Heroic)", etc. ugh. | 524 -- diffstr is "5 Player", "10 Player (Heroic)", etc. ugh. |
| 525 if GetLFGMode() and (GetLFGModeType() == 'raid') then | 525 if GetLFGMode(LE_LFG_CATEGORY_RF) then |
| 526 t,r = 'LFR', 25 | 526 t,r = 'LFR', 25 |
| 527 elseif diffcode == 1 then | 527 elseif diffcode == 1 then |
| 528 if IsInRaid() then | 528 if IsInRaid() then |
| 529 t,r = "10",10 | 529 t,r = "10",10 |
| 530 else | 530 else |
| 1167 | 1167 |
| 1168 addon:SetDefaultModuleLibraries("AceConsole-3.0") | 1168 addon:SetDefaultModuleLibraries("AceConsole-3.0") |
| 1169 addon:SetDefaultModulePrototype(prototype) | 1169 addon:SetDefaultModulePrototype(prototype) |
| 1170 | 1170 |
| 1171 local err = [[Module '%s' cannot register itself because it failed a required condition: '%s']] | 1171 local err = [[Module '%s' cannot register itself because it failed a required condition: '%s']] |
| 1172 function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata) | 1172 function addon:ConstrainedNewModule (modname, minrev, mincomm, mindata, ...) |
| 1173 if not addon.author_debug then | 1173 if not addon.author_debug then |
| 1174 if minrev and tonumber(minrev) > (tonumber(self.revision) or math.huge) then | 1174 if minrev and tonumber(minrev) > (tonumber(self.revision) or math.huge) then |
| 1175 self:Print(err,modname, | 1175 self:Print(err,modname, |
| 1176 "revision "..self.revision.." older than minimum "..minrev) | 1176 "revision "..self.revision.." older than minimum "..minrev) |
| 1177 return false | 1177 return false |
| 1185 self:Print(err,modname, | 1185 self:Print(err,modname, |
| 1186 "datarev "..opts.datarev.." older than minimum "..mindata) | 1186 "datarev "..opts.datarev.." older than minimum "..mindata) |
| 1187 return false | 1187 return false |
| 1188 end]] | 1188 end]] |
| 1189 end | 1189 end |
| 1190 return self:NewModule(modname) | 1190 return self:NewModule(modname,...) |
| 1191 end | 1191 end |
| 1192 end | 1192 end |
| 1193 | 1193 |
| 1194 --[[ LCALLBACK | 1194 --[[ LCALLBACK |
| 1195 Standard ace3-style callback registration and dispatching. All player names | 1195 Standard ace3-style callback registration and dispatching. All player names |
| 1451 | 1451 |
| 1452 local docheck = self.enabled | 1452 local docheck = self.enabled |
| 1453 if event == "Activate" then | 1453 if event == "Activate" then |
| 1454 -- dispatched from Activate | 1454 -- dispatched from Activate |
| 1455 if opts.history_suppress_LFR | 1455 if opts.history_suppress_LFR |
| 1456 and GetLFGMode() and (GetLFGModeType() == 'raid') | 1456 and GetLFGMode(LE_LFG_CATEGORY_RF) |
| 1457 then | 1457 then |
| 1458 _LFR_suppressing = true | 1458 _LFR_suppressing = true |
| 1459 end | 1459 end |
| 1460 my_realm = self.history.realm | 1460 my_realm = self.history.realm |
| 1461 _register_bossmod(self) | 1461 _register_bossmod(self) |
