Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed currency in LiteStats.
  • Loading branch information
Shestak committed Aug 13, 2015
1 parent ce71fd0 commit 35448c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ShestakUI/Libs/LiteStats/LiteStats.lua
Expand Up @@ -477,12 +477,12 @@ if gold.enabled then
local name, amount, tex, week, weekmax, maxed, discovered = GetCurrencyInfo(id)
if amount == 0 then return end
if weekly then
if discovered then GameTooltip:AddDoubleLine(name, format("%d |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", REFORGE_CURRENT..": ".. amount.." - "..WEEKLY..": "..week.." / "..weekmax, tex, t_icon), 1, 1, 1, 1, 1, 1) end
elseif capped then
if discovered then GameTooltip:AddDoubleLine(name, format("%s |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", REFORGE_CURRENT..": ".. amount.." - "..WEEKLY..": "..week.." / "..weekmax, tex, t_icon), 1, 1, 1, 1, 1, 1) end
elseif capped then
if id == 392 then maxed = 4000 end
if discovered then GameTooltip:AddDoubleLine(name, format("%d |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", amount.." / "..maxed, tex, t_icon), 1, 1, 1, 1, 1, 1) end
if discovered then GameTooltip:AddDoubleLine(name, format("%s |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", amount.." / "..maxed, tex, t_icon), 1, 1, 1, 1, 1, 1) end
else
if discovered then GameTooltip:AddDoubleLine(name, format("%d |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", amount, tex, t_icon), 1, 1, 1, 1, 1, 1) end
if discovered then GameTooltip:AddDoubleLine(name, format("%s |T%s:"..t_icon..":"..t_icon..":0:0:64:64:5:59:5:59:%d|t", amount, tex, t_icon), 1, 1, 1, 1, 1, 1) end
end
end
Inject("Gold", {
Expand Down Expand Up @@ -592,7 +592,6 @@ if gold.enabled then
Currency(1008) -- Secret of Draenor Jewelcrafting
Currency(1017) -- Secret of Draenor Leatherworking
Currency(999) -- Secret of Draenor Tailoring

end

if C.stats.currency_raid and T.level >= 100 then
Expand Down

0 comments on commit 35448c2

Please sign in to comment.