Mercurial > wow > wowdb-profiler
comparison Main.lua @ 539:1bcaf08ae424
Fix for most loot box recording not having currencies or money.
author | MMOSimca |
---|---|
date | Fri, 16 Jun 2017 03:58:13 -0400 |
parents | ec2ee7b48c21 |
children | b7f2e3b03853 |
comparison
equal
deleted
inserted
replaced
538:909efd557137 | 539:1bcaf08ae424 |
---|---|
50 | 50 |
51 local LOOT_SLOT_CURRENCY = _G.LOOT_SLOT_CURRENCY | 51 local LOOT_SLOT_CURRENCY = _G.LOOT_SLOT_CURRENCY |
52 local LOOT_SLOT_ITEM = _G.LOOT_SLOT_ITEM | 52 local LOOT_SLOT_ITEM = _G.LOOT_SLOT_ITEM |
53 local LOOT_SLOT_MONEY = _G.LOOT_SLOT_MONEY | 53 local LOOT_SLOT_MONEY = _G.LOOT_SLOT_MONEY |
54 | 54 |
55 local LOOT_SOURCE_ID_REDUNDANT = 3 | 55 --local LOOT_SOURCE_ID_UNKNOWN = 1 -- Technically unused right now, but has future use potential |
56 --local LOOT_SOURCE_ID_REDUNDANT = 3 -- Technically unused right now, but has future use potential | |
56 local LOOT_SOURCE_ID_GARRISON_CACHE = 10 | 57 local LOOT_SOURCE_ID_GARRISON_CACHE = 10 |
57 | 58 |
58 local OBJECT_ID_ANVIL = 192628 | 59 local OBJECT_ID_ANVIL = 192628 |
59 local OBJECT_ID_FISHING_BOBBER = 35591 | 60 local OBJECT_ID_FISHING_BOBBER = 35591 |
60 local OBJECT_ID_FORGE = 1685 | 61 local OBJECT_ID_FORGE = 1685 |
1537 end | 1538 end |
1538 | 1539 |
1539 GenericLootUpdate("items") | 1540 GenericLootUpdate("items") |
1540 current_loot = nil | 1541 current_loot = nil |
1541 container_loot_toasting = true -- Do not count further loots until timer expires or another container is opened | 1542 container_loot_toasting = true -- Do not count further loots until timer expires or another container is opened |
1542 elseif loot_source and (loot_source == LOOT_SOURCE_ID_REDUNDANT) and chat_loot_timer_handle then | 1543 elseif loot_source and chat_loot_timer_handle then |
1543 -- Handle currency loot toasts for chat-based loot (we do this instead of reading currency chat messages because the chat messages are very delayed) | 1544 -- Handle currency loot toasts for chat-based loot (we do this instead of reading currency chat messages because the chat messages are very delayed) |
1544 if loot_type == "currency" then | 1545 if loot_type == "currency" then |
1545 local currency_id = CurrencyLinkToID(item_link) | 1546 local currency_id = CurrencyLinkToID(item_link) |
1546 if currency_id and currency_id ~= 0 then | 1547 if currency_id and currency_id ~= 0 then |
1547 -- Verify that we're still assigning data to the right items | 1548 -- Verify that we're still assigning data to the right items |