Mercurial > wow > wowdb-profiler
changeset 372:54d5562a6ad5
Added future code for handling bonusIDs of 0 and updated multiple debug statements.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Sat, 22 Nov 2014 07:09:12 -0500 |
parents | 2d0899e85e29 |
children | b372179ddaac |
files | Main.lua |
diffstat | 1 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Sat Nov 22 06:52:41 2014 -0500 +++ b/Main.lua Sat Nov 22 07:09:12 2014 -0500 @@ -1044,6 +1044,12 @@ if instance_difficulty_id and instance_difficulty_id ~= 0 then item.instance_difficulty_id = instance_difficulty_id end + + -- Future code: waiting for dev time to implement server-side parsing + --[[if not item.bonus_ids then + item.bonus_ids = {} + end + item.bonus_ids[0] = true]]-- end elseif num_bonus_ids > 0 then item = DBEntry("items", item_id) @@ -1058,8 +1064,10 @@ for bonus_index = 1, num_bonus_ids do item.bonus_ids[tonumber(item_results[13 + bonus_index])] = true end + + Debug("RecordItemData: Recorded bonusIDs for %d.", item_id) else - Debug("RecordItemData: Item_system is supposed to be 0 or positive, instead it was %s.", item_system) + Debug("RecordItemData: num_bonus_ids is supposed to be 0 or positive, instead it was %d.", num_bonus_ids) end if upgrade_id and upgrade_id ~= 0 then DatamineTT:SetHyperlink(item_link) @@ -1276,14 +1284,17 @@ end -function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, specID, sex, isPersonal, lootSource) +function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, spec_ID, is_personal, loot_source) if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity) return end local container_id = private.loot_toast_container_id local npc_id = private.raid_boss_id - + + -- Need information on the most recent args, so using this complete debug statement for now + Debug("%s: loot_type: %s, item_link: %s, quantity: %s, spec_ID: %s, is_personal: %s, loot_source: %s", event_name, loot_type, item_link, quantity, spec_ID, is_personal, loot_source) + -- Handle Garrison cache specially if lootSource and last_garrison_cache_object_id and (lootSource == private.GARRISON_CACHE_LOOT_SOURCE_ID) then -- Record location data for cache