Mercurial > wow > wowdb-profiler
changeset 503:abc372f93293
Updated GetQuestLogRewardCurrencyInfo to use the undocumented 4th return (currency_id).
author | MMOSimca <mmosimca@gmail.com> |
---|---|
date | Tue, 25 Oct 2016 17:43:45 -0400 |
parents | 21397b33ba36 |
children | dc361767e2d0 |
files | Main.lua |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Thu Oct 13 10:28:49 2016 -0400 +++ b/Main.lua Tue Oct 25 17:43:45 2016 -0400 @@ -1043,11 +1043,8 @@ if entry["rewards"]["currency_count"] > 0 then entry["rewards"]["currencies"] = {} for i = 1, entry["rewards"]["currency_count"] do - local name, texture_path, quantity = _G.GetQuestLogRewardCurrencyInfo(i, quest_id) - local currency_id = CurrencyInfoToID(name, texture_path) - if currency_id and currency_id ~= 0 then - table.insert(entry["rewards"]["currencies"], ("%d:%d"):format(quantity, currency_id)) - end + local name, texture_path, quantity, currency_id = _G.GetQuestLogRewardCurrencyInfo(i, quest_id) + table.insert(entry["rewards"]["currencies"], ("%d:%d"):format(quantity, currency_id)) end end