Mercurial > wow > ouroloot
comparison core.lua @ 35:f75329fe5758
Tag LFR raids as such in difficulty string, instead of as 25.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Thu, 08 Dec 2011 08:24:59 +0000 |
parents | f1d0a5d7b006 |
children | f62d582c5c52 |
comparison
equal
deleted
inserted
replaced
34:f1d0a5d7b006 | 35:f75329fe5758 |
---|---|
264 local name, typeof, diffcode, diffstr, _, perbossheroic, isdynamic = GetInstanceInfo() | 264 local name, typeof, diffcode, diffstr, _, perbossheroic, isdynamic = GetInstanceInfo() |
265 local t | 265 local t |
266 name = addon.instance_abbrev[name] or name | 266 name = addon.instance_abbrev[name] or name |
267 if typeof == "none" then return name end | 267 if typeof == "none" then return name end |
268 -- diffstr is "5 Player", "10 Player (Heroic)", etc. ugh. | 268 -- diffstr is "5 Player", "10 Player (Heroic)", etc. ugh. |
269 if diffcode == 1 then | 269 if (GetLFGMode()) and (GetLFGModeType() == 'raid') then |
270 t = 'LFR' | |
271 elseif diffcode == 1 then | |
270 t = ((GetNumRaidMembers()>0) and "10" or "5") | 272 t = ((GetNumRaidMembers()>0) and "10" or "5") |
271 elseif diffcode == 2 then | 273 elseif diffcode == 2 then |
272 t = ((GetNumRaidMembers()>0) and "25" or "5h") | 274 t = ((GetNumRaidMembers()>0) and "25" or "5h") |
273 elseif diffcode == 3 then | 275 elseif diffcode == 3 then |
274 t = "10h" | 276 t = "10h" |