Mercurial > wow > wowdb-profiler
comparison Main.lua @ 422:063309f31455
Fixed typo preventing the recording of Garrison Cache object data.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Wed, 07 Jan 2015 17:21:50 -0500 |
parents | b2cfa966277f |
children | 0aac203792c2 |
comparison
equal
deleted
inserted
replaced
421:b2cfa966277f | 422:063309f31455 |
---|---|
39 local DB_VERSION = 18 | 39 local DB_VERSION = 18 |
40 local DEBUGGING = false | 40 local DEBUGGING = false |
41 local EVENT_DEBUG = false | 41 local EVENT_DEBUG = false |
42 | 42 |
43 local ITEM_ID_TIMBER = 114781 | 43 local ITEM_ID_TIMBER = 114781 |
44 | |
45 local LOOT_SOURCE_ID_REDUNDANT = 3 | |
46 local LOOT_SOURCE_ID_GARRISON_CACHE = 10 | |
44 | 47 |
45 local OBJECT_ID_ANVIL = 192628 | 48 local OBJECT_ID_ANVIL = 192628 |
46 local OBJECT_ID_FISHING_BOBBER = 35591 | 49 local OBJECT_ID_FISHING_BOBBER = 35591 |
47 local OBJECT_ID_FORGE = 1685 | 50 local OBJECT_ID_FORGE = 1685 |
48 | 51 |
1447 | 1450 |
1448 -- Need information on the most recent args, so using this complete debug statement for now | 1451 -- Need information on the most recent args, so using this complete debug statement for now |
1449 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) | 1452 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) |
1450 | 1453 |
1451 -- Handle Garrison cache specially | 1454 -- Handle Garrison cache specially |
1452 if lootSource and (lootSource == private.GARRISON_CACHE_LOOT_SOURCE_ID) and last_garrison_cache_object_id then | 1455 if loot_source and (loot_source == LOOT_SOURCE_ID_GARRISON_CACHE) and last_garrison_cache_object_id then |
1453 -- Record location data for cache | 1456 -- Record location data for cache |
1454 UpdateDBEntryLocation("objects", ("OPENING:%d"):format(last_garrison_cache_object_id)) | 1457 UpdateDBEntryLocation("objects", ("OPENING:%d"):format(last_garrison_cache_object_id)) |
1455 | 1458 |
1456 -- Add drop data | 1459 -- Add drop data |
1457 local currency_texture = CurrencyLinkToTexture(item_link) | 1460 local currency_texture = CurrencyLinkToTexture(item_link) |