Mercurial > wow > wowdb-profiler
diff Main.lua @ 411:4adc1fa4ddba
Increased duration of chat-based loot recording from 1 second to 1.5 seconds. Fixed some comments.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Sat, 03 Jan 2015 02:34:09 -0500 |
parents | ad8323486561 |
children | e2f7f33cf5f7 |
line wrap: on
line diff
--- a/Main.lua Fri Jan 02 02:56:25 2015 -0500 +++ b/Main.lua Sat Jan 03 02:34:09 2015 -0500 @@ -577,7 +577,7 @@ local any_loot = false - -- Check if Blizzard has marked this item has officially having a chance of containing loot + -- Check if Blizzard has marked this item as officially having a chance of containing loot if bag_index and slot_index then local _, _, _, _, _, is_lootable = _G.GetContainerItemInfo(bag_index, slot_index) if is_lootable then @@ -605,29 +605,6 @@ InitializeCurrentLoot() end end - - --[[DatamineTT:ClearLines() - DatamineTT:SetBagItem(bag_index, slot_index) - - for line_index = 1, DatamineTT:NumLines() do - local current_line = _G["WDPDatamineTTTextLeft" .. line_index] - - if not current_line then - Debug("HandleItemUse: Item with ID %d and link %s had an invalid tooltip.", item_id, item_link) - return - end - - if current_line:GetText() == _G.ITEM_OPENABLE then - table.wipe(current_action) - current_loot = nil - - current_action.target_type = AF.ITEM - current_action.identifier = item_id - current_action.loot_label = "contains" - return - end - end - Debug("HandleItemUse: Item with ID %d and link %s did not have a tooltip that contained the string %s.", item_id, item_link, _G.ITEM_OPENABLE)]]-- end @@ -1714,7 +1691,7 @@ return end - -- We only want to record the item's incoming data; no other need for system messages atm. + -- If it is an item, parse its link RecordItemData(item_id, item_link, true) end end @@ -2868,7 +2845,7 @@ -- Set up timer ClearChatLootData() Debug("%s: Beginning chat-based loot timer for spellID %d", event_name, spell_id) - chat_loot_timer_handle = C_Timer.NewTimer(1, ClearChatLootData) + chat_loot_timer_handle = C_Timer.NewTimer(1.5, ClearChatLootData) -- Standard item handling setup table.wipe(current_action)