Mercurial > wow > wowdb-profiler
comparison Main.lua @ 50:66034def453b
Since the battleground points and personal points are universally equivalent, only store personal points (for now - kept the support in for both values in case Blizzard changes this in the future).
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Thu, 28 Jun 2012 11:58:38 -0500 |
parents | 4668938a63e5 |
children | 9f23fb15adc5 |
comparison
equal
deleted
inserted
replaced
49:1d32b6f73521 | 50:66034def453b |
---|---|
937 break | 937 break |
938 end | 938 end |
939 end | 939 end |
940 local currency_list = {} | 940 local currency_list = {} |
941 local item_count = _G.GetMerchantItemCostInfo(item_index) | 941 local item_count = _G.GetMerchantItemCostInfo(item_index) |
942 price_string = ("%s:%s:%s"):format(price_string, bg_points, personal_points) | 942 |
943 -- Keeping this around in case Blizzard makes the two points diverge at some point. | |
944 -- price_string = ("%s:%s:%s"):format(price_string, bg_points, personal_points) | |
945 price_string = ("%s:%s"):format(price_string, personal_points) | |
943 | 946 |
944 for cost_index = 1, item_count do | 947 for cost_index = 1, item_count do |
945 local icon_texture, amount_required, currency_link = _G.GetMerchantItemCostItem(item_index, cost_index) | 948 local icon_texture, amount_required, currency_link = _G.GetMerchantItemCostItem(item_index, cost_index) |
946 local currency_id = currency_link and ItemLinkToID(currency_link) or nil | 949 local currency_id = currency_link and ItemLinkToID(currency_link) or nil |
947 | 950 |