Mercurial > wow > wowdb-profiler
comparison Main.lua @ 473:063a09a99cb8
Renamed an extremely long constant to be less extremely long.
author | Caleb Atherton <catherton@curse.com> |
---|---|
date | Sat, 16 Jul 2016 01:17:23 -0400 |
parents | 39e87b600cad |
children | 59c47f9f9c26 |
comparison
equal
deleted
inserted
replaced
472:39e87b600cad | 473:063a09a99cb8 |
---|---|
2834 loot_toast_container_timer_handle = C_Timer.NewTimer(1, ClearLootToastContainerID) -- we need to assign a handle here to cancel it later | 2834 loot_toast_container_timer_handle = C_Timer.NewTimer(1, ClearLootToastContainerID) -- we need to assign a handle here to cancel it later |
2835 return | 2835 return |
2836 end | 2836 end |
2837 | 2837 |
2838 -- For spells cast by items that don't usually trigger loot toasts | 2838 -- For spells cast by items that don't usually trigger loot toasts |
2839 if not block_chat_loot_data and (private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_MAP[spell_id] or (private.CLASS_BASED_DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id] and private.CLASS_BASED_DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID])) then | 2839 if not block_chat_loot_data and (private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_MAP[spell_id] or (private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id] and private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID])) then |
2840 -- Set up timer | 2840 -- Set up timer |
2841 ClearChatLootData() | 2841 ClearChatLootData() |
2842 Debug("%s: Beginning chat-based loot timer for spellID %d", event_name, spell_id) | 2842 Debug("%s: Beginning chat-based loot timer for spellID %d", event_name, spell_id) |
2843 chat_loot_timer_handle = C_Timer.NewTimer(1.5, ClearChatLootData) | 2843 chat_loot_timer_handle = C_Timer.NewTimer(1.5, ClearChatLootData) |
2844 if (private.CLASS_BASED_DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id] and private.CLASS_BASED_DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID]) then | 2844 if (private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id] and private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID]) then |
2845 chat_loot_data.identifier = private.CLASS_BASED_DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID] | 2845 chat_loot_data.identifier = private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_BY_CLASS_ID_MAP[spell_id][PLAYER_CLASS_ID] |
2846 else | 2846 else |
2847 chat_loot_data.identifier = private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_MAP[spell_id] | 2847 chat_loot_data.identifier = private.DELAYED_CONTAINER_SPELL_ID_TO_ITEM_ID_MAP[spell_id] |
2848 end | 2848 end |
2849 return | 2849 return |
2850 end | 2850 end |