Mercurial > wow > ouroloot
comparison text_tabs.lua @ 66:43913e02a1ef
Detect LFR loot as best we can, and bundle it into the same warning given for heroic loot formatted by name only. Less tedious method of bumping data revisions.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Fri, 27 Apr 2012 10:11:56 +0000 |
| parents | 69fd720f853e |
| children | c01875b275ca |
comparison
equal
deleted
inserted
replaced
| 65:69fd720f853e | 66:43913e02a1ef |
|---|---|
| 46 local forum_warned_heroic | 46 local forum_warned_heroic |
| 47 local warning_text | 47 local warning_text |
| 48 do | 48 do |
| 49 local red = '|cffff0505' | 49 local red = '|cffff0505' |
| 50 local green = ITEM_QUALITY_COLORS[ITEM_QUALITY_UNCOMMON].hex | 50 local green = ITEM_QUALITY_COLORS[ITEM_QUALITY_UNCOMMON].hex |
| 51 warning_text = ([[%sWARNING:|r Heroic items sharing the same name as normal items often display incorrectly on forums that use the item name as the identifier. Recommend you change the %sItem markup|r dropdown in the right-hand side to %s"[item] by ID"|r and regenerate this loot.]]):format(red, green, green) | 51 warning_text = ([[%sWARNING:|r Heroic (and Raid Finder) items sharing the same name as normal items often display incorrectly on forums that use the item name as the identifier. Recommend you change the %sItem markup|r dropdown in the right-hand side to %s"[item] by ID"|r (or some other format that uses $I) and regenerate this loot.]]):format(red, green, green) |
| 52 end | 52 end |
| 53 | 53 |
| 54 local function forum (_, loot, last_printed, generated, cache) | 54 local function forum (_, loot, last_printed, generated, cache) |
| 55 local fmt = OuroLootSV_opts.forum[OuroLootSV_opts.forum_current] or "" | 55 local fmt = OuroLootSV_opts.forum[OuroLootSV_opts.forum_current] or "" |
| 56 -- if it's capable of handling heroic items, consider them warned already | 56 -- if it's capable of handling heroic items, consider them warned already |
| 70 disp = "guild vault" | 70 disp = "guild vault" |
| 71 end | 71 end |
| 72 if e.extratext_byhand then | 72 if e.extratext_byhand then |
| 73 disp = disp .. " -- " .. e.extratext | 73 disp = disp .. " -- " .. e.extratext |
| 74 end | 74 end |
| 75 if e.is_heroic and not forum_warned_heroic then | 75 if e.variant and not forum_warned_heroic then |
| 76 forum_warned_heroic = true | 76 forum_warned_heroic = true |
| 77 addon:Print(warning_text) | 77 addon:Print(warning_text) |
| 78 end | 78 end |
| 79 local t = fmt:gsub('%$I', e.id) | 79 local t = fmt:gsub('%$I', e.id) |
| 80 :gsub('%$N', e.itemname) | 80 :gsub('%$N', e.itemname) |
