comparison Main.lua @ 356:ef2e97c210c6 WoD

Remove workaround for Flex mode Valor Points (because they no longer exist).
author MMOSimca <MMOSimca@gmail.com>
date Tue, 14 Oct 2014 00:31:56 -0400
parents 06b53a3d2b4a
children f8190e012c92
comparison
equal deleted inserted replaced
355:06b53a3d2b4a 356:ef2e97c210c6
1334 table.insert(encounter_data[loot_label], ("money:%d"):format(quantity)) 1334 table.insert(encounter_data[loot_label], ("money:%d"):format(quantity))
1335 elseif loot_type == "currency" then 1335 elseif loot_type == "currency" then
1336 local currency_texture = CurrencyLinkToTexture(item_link) 1336 local currency_texture = CurrencyLinkToTexture(item_link)
1337 if currency_texture and currency_texture ~= "" then 1337 if currency_texture and currency_texture ~= "" then
1338 Debug("%s: %s X %d", event_name, currency_texture, quantity) 1338 Debug("%s: %s X %d", event_name, currency_texture, quantity)
1339 -- Workaround for Patch 5.4.0 bug with Flexible raid Siege of Orgrimmar bosses and Valor Points
1340 if quantity > 1000 and currency_texture == "pvecurrency-valor" then
1341 quantity = math.floor(quantity / 100)
1342 end
1343 table.insert(encounter_data[loot_label], ("currency:%d:%s"):format(quantity, currency_texture)) 1339 table.insert(encounter_data[loot_label], ("currency:%d:%s"):format(quantity, currency_texture))
1344 else 1340 else
1345 Debug("%s: Currency texture is nil, from currency link %s", event_name, item_link) 1341 Debug("%s: Currency texture is nil, from currency link %s", event_name, item_link)
1346 return 1342 return
1347 end 1343 end