Mercurial > wow > wowdb-profiler
comparison Main.lua @ 375:4a4ed54e4201 6.0.2-6
Fixed comment issue with quests (take two) and fixed broken debug statement (take two).
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Sat, 22 Nov 2014 14:23:56 -0500 |
parents | 73fd6e568211 |
children | c78fe36fea84 |
comparison
equal
deleted
inserted
replaced
374:73fd6e568211 | 375:4a4ed54e4201 |
---|---|
1286 function WDP:UNIT_PET(event_name, unit_id) | 1286 function WDP:UNIT_PET(event_name, unit_id) |
1287 UpdateUnitPet(_G.UnitGUID(unit_id), unit_id) | 1287 UpdateUnitPet(_G.UnitGUID(unit_id), unit_id) |
1288 end | 1288 end |
1289 | 1289 |
1290 | 1290 |
1291 function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, spec_ID, is_personal, loot_source) | 1291 function WDP:SHOW_LOOT_TOAST(event_name, loot_type, item_link, quantity, spec_ID, sex_ID, is_personal, loot_source) |
1292 if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then | 1292 if not loot_type or (loot_type ~= "item" and loot_type ~= "money" and loot_type ~= "currency") then |
1293 Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity) | 1293 Debug("%s: loot_type is %s. Item link is %s, and quantity is %d.", event_name, loot_type, item_link, quantity) |
1294 return | 1294 return |
1295 end | 1295 end |
1296 local container_id = private.loot_toast_container_id | 1296 local container_id = private.loot_toast_container_id |
1297 local npc_id = private.raid_boss_id | 1297 local npc_id = private.raid_boss_id |
1298 | 1298 |
1299 -- Need information on the most recent args, so using this complete debug statement for now | 1299 -- Need information on the most recent args, so using this complete debug statement for now |
1300 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) | 1300 Debug("%s: loot_type: %s, item_link: %s, quantity: %s, spec_ID: %s, sex_ID: %s, is_personal: %s, loot_source: %s", event_name, loot_type, item_link, quantity, spec_ID, sex_ID, is_personal, loot_source) |
1301 | 1301 |
1302 -- Handle Garrison cache specially | 1302 -- Handle Garrison cache specially |
1303 if lootSource and last_garrison_cache_object_id and (lootSource == private.GARRISON_CACHE_LOOT_SOURCE_ID) then | 1303 if lootSource and last_garrison_cache_object_id and (lootSource == private.GARRISON_CACHE_LOOT_SOURCE_ID) then |
1304 -- Record location data for cache | 1304 -- Record location data for cache |
1305 UpdateDBEntryLocation("objects", ("OPENING:%d"):format(last_garrison_cache_object_id)) | 1305 UpdateDBEntryLocation("objects", ("OPENING:%d"):format(last_garrison_cache_object_id)) |