changeset 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 909efd557137
children b7f2e3b03853
files Main.lua
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Thu May 11 21:36:50 2017 -0400
+++ b/Main.lua	Fri Jun 16 03:58:13 2017 -0400
@@ -52,7 +52,8 @@
 local LOOT_SLOT_ITEM = _G.LOOT_SLOT_ITEM
 local LOOT_SLOT_MONEY = _G.LOOT_SLOT_MONEY
 
-local LOOT_SOURCE_ID_REDUNDANT = 3
+--local LOOT_SOURCE_ID_UNKNOWN = 1 -- Technically unused right now, but has future use potential
+--local LOOT_SOURCE_ID_REDUNDANT = 3 -- Technically unused right now, but has future use potential
 local LOOT_SOURCE_ID_GARRISON_CACHE = 10
 
 local OBJECT_ID_ANVIL = 192628
@@ -1539,7 +1540,7 @@
         GenericLootUpdate("items")
         current_loot = nil
         container_loot_toasting = true -- Do not count further loots until timer expires or another container is opened
-    elseif loot_source and (loot_source == LOOT_SOURCE_ID_REDUNDANT) and chat_loot_timer_handle then
+    elseif loot_source and chat_loot_timer_handle then
         -- Handle currency loot toasts for chat-based loot (we do this instead of reading currency chat messages because the chat messages are very delayed)
         if loot_type == "currency" then
             local currency_id = CurrencyLinkToID(item_link)