Mercurial > wow > ouroloot
comparison core.lua @ 68:3bed6d51e077
Make sure subgroup field is always set to non-nil. ("Belt *and* suspenders." Handle a previously-set nil field during text creation.)
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Wed, 09 May 2012 09:38:14 +0000 |
| parents | c01875b275ca |
| children | 8442272a8418 |
comparison
equal
deleted
inserted
replaced
| 67:c01875b275ca | 68:3bed6d51e077 |
|---|---|
| 7 - attend saved text from raid attendence window, default nil | 7 - attend saved text from raid attendence window, default nil |
| 8 - printed.FOO last loot index formatted into text window FOO, default 0 | 8 - printed.FOO last loot index formatted into text window FOO, default 0 |
| 9 - raiders accumulating raid roster data as we see raid members; indexed | 9 - raiders accumulating raid roster data as we see raid members; indexed |
| 10 by player name with subtable fields: | 10 by player name with subtable fields: |
| 11 - class capitalized English codename ("WARRIOR", "DEATHKNIGHT", etc) | 11 - class capitalized English codename ("WARRIOR", "DEATHKNIGHT", etc) |
| 12 - subgroup 1-8 | 12 - subgroup 1-8 (NUM_RAID_GROUPS), NRG+1 if something's wrong |
| 13 - race English codename ("BloodElf", etc) | 13 - race English codename ("BloodElf", etc) |
| 14 - sex 1 = unknown/error, 2 = male, 3 = female | 14 - sex 1 = unknown/error, 2 = male, 3 = female |
| 15 - level can be 0 if player was offline at the time | 15 - level can be 0 if player was offline at the time |
| 16 - guild guild name, or missing if unguilded | 16 - guild guild name, or missing if unguilded |
| 17 - online 1 = online, 2 = offline, 3 = no longer in raid | 17 - online 1 = online, 2 = offline, 3 = no longer in raid |
| 907 if name and name ~= UNKNOWN and name ~= UNKNOWNOBJECT and name ~= UKNOWNBEING then | 907 if name and name ~= UNKNOWN and name ~= UNKNOWNOBJECT and name ~= UKNOWNBEING then |
| 908 if not g_loot.raiders[name] then | 908 if not g_loot.raiders[name] then |
| 909 g_loot.raiders[name] = { needinfo=true } | 909 g_loot.raiders[name] = { needinfo=true } |
| 910 end | 910 end |
| 911 local r = g_loot.raiders[name] | 911 local r = g_loot.raiders[name] |
| 912 r.subgroup = subgroup | 912 r.subgroup = subgroup or (NUM_RAID_GROUPS+1) |
| 913 if r.needinfo and UnitIsVisible(unit) then | 913 if r.needinfo and UnitIsVisible(unit) then |
| 914 r.needinfo = nil | 914 r.needinfo = nil |
| 915 r.class = class --select(2,UnitClass(unit)) | 915 r.class = class --select(2,UnitClass(unit)) |
| 916 r.race = select(2,UnitRace(unit)) | 916 r.race = select(2,UnitRace(unit)) |
| 917 r.sex = UnitSex(unit) | 917 r.sex = UnitSex(unit) |
