diff 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
line wrap: on
line diff
--- a/Main.lua	Wed Jun 27 17:37:56 2012 -0500
+++ b/Main.lua	Thu Jun 28 11:58:38 2012 -0500
@@ -939,7 +939,10 @@
                     end
                     local currency_list = {}
                     local item_count = _G.GetMerchantItemCostInfo(item_index)
-                    price_string = ("%s:%s:%s"):format(price_string, bg_points, personal_points)
+
+                    -- Keeping this around in case Blizzard makes the two points diverge at some point.
+                    --                    price_string = ("%s:%s:%s"):format(price_string, bg_points, personal_points)
+                    price_string = ("%s:%s"):format(price_string, personal_points)
 
                     for cost_index = 1, item_count do
                         local icon_texture, amount_required, currency_link = _G.GetMerchantItemCostItem(item_index, cost_index)