Mercurial > wow > ouroloot
comparison text_tabs.lua @ 55:ac57a4342812
More people going to be looking at g_loot entries, so start cleaning up older fields a bit, and handle loading older data.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Sat, 07 Apr 2012 05:40:20 +0000 |
| parents | 1070a14cfee4 |
| children | fcc0d0ff5832 |
comparison
equal
deleted
inserted
replaced
| 54:6d5fcbdc0590 | 55:ac57a4342812 |
|---|---|
| 87 cache[#cache+1] = "" | 87 cache[#cache+1] = "" |
| 88 else | 88 else |
| 89 cache[#cache+1] = "\n[b]" .. e.instance .. "[/b]" | 89 cache[#cache+1] = "\n[b]" .. e.instance .. "[/b]" |
| 90 generated.last_instance = e.instance | 90 generated.last_instance = e.instance |
| 91 end | 91 end |
| 92 cache[#cache+1] = "[i]" .. e.bosskill .. "[/i]" | 92 cache[#cache+1] = "[i]" .. e.bossname .. "[/i]" |
| 93 | 93 |
| 94 elseif e.kind == 'time' then | 94 elseif e.kind == 'time' then |
| 95 cache[#cache+1] = "[b]" .. e.startday.text .. "[/b]" | 95 cache[#cache+1] = "[b]" .. e.startday.text .. "[/b]" |
| 96 | 96 |
| 97 end | 97 end |
| 140 local function att (_, loot, last_printed, _, cache) | 140 local function att (_, loot, last_printed, _, cache) |
| 141 for i = last_printed+1, #loot do | 141 for i = last_printed+1, #loot do |
| 142 local e = loot[i] | 142 local e = loot[i] |
| 143 | 143 |
| 144 if e.kind == 'boss' and e.reason == 'kill' then | 144 if e.kind == 'boss' and e.reason == 'kill' then |
| 145 cache[#cache+1] = ("\n%s -- %s\n%s"):format(e.instance, e.bosskill, e.raiderlist or '<none recorded>') | 145 cache[#cache+1] = ("\n%s -- %s\n%s"):format(e.instance, e.bossname, e.raiderlist or '<none recorded>') |
| 146 | 146 |
| 147 elseif e.kind == 'time' then | 147 elseif e.kind == 'time' then |
| 148 cache[#cache+1] = e.startday.text | 148 cache[#cache+1] = e.startday.text |
| 149 | 149 |
| 150 end | 150 end |
