Mercurial > wow > wowdb-profiler
comparison Main.lua @ 348:9f352e20204c WoD
Fixed Timber loot recording. Fixed banned loot extrapolation spell labels.
| author | MMOSimca <MMOSimca@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2014 03:28:57 -0400 |
| parents | fb1d08480f67 |
| children | 146072e39150 |
comparison
equal
deleted
inserted
replaced
| 347:fb1d08480f67 | 348:9f352e20204c |
|---|---|
| 1403 local object_entry = DBEntry("objects", ("OPENING:%s"):format(private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[last_timber_spell_id][timber_variant])) | 1403 local object_entry = DBEntry("objects", ("OPENING:%s"):format(private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[last_timber_spell_id][timber_variant])) |
| 1404 local difficulty_token = InstanceDifficultyToken() | 1404 local difficulty_token = InstanceDifficultyToken() |
| 1405 if object_entry[difficulty_token] then | 1405 if object_entry[difficulty_token] then |
| 1406 -- Increment loot count | 1406 -- Increment loot count |
| 1407 object_entry[difficulty_token]["opening_count"] = object_entry[difficulty_token]["opening_count"] or 0 + 1 | 1407 object_entry[difficulty_token]["opening_count"] = object_entry[difficulty_token]["opening_count"] or 0 + 1 |
| 1408 | 1408 |
| 1409 -- Add drop data | 1409 -- Add drop data |
| 1410 local loot_table = LootTable(object_entry, "opening", difficulty_token) | 1410 object_entry[difficulty_token]["opening"] = entry[difficulty_token]["opening"] or {} |
| 1411 table.insert(loot_table, ("%d:%d"):format(item_id, quantity)) | 1411 table.insert(object_entry[difficulty_token]["opening"], ("%d:%d"):format(item_id, quantity)) |
| 1412 else | 1412 else |
| 1413 Debug("CHAT_MSG_LOOT: When handling timber, the top level loot data was missing for objectID %s.", private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[last_timber_spell_id][timber_variant]) | 1413 Debug("CHAT_MSG_LOOT: When handling timber, the top level loot data was missing for objectID %s.", private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[last_timber_spell_id][timber_variant]) |
| 1414 end | 1414 end |
| 1415 end | 1415 end |
| 1416 end, | 1416 end, |
| 1871 local function ExtrapolatedCurrentActionFromLootData(event_name) | 1871 local function ExtrapolatedCurrentActionFromLootData(event_name) |
| 1872 local extrapolated_guid_registry = {} | 1872 local extrapolated_guid_registry = {} |
| 1873 local num_guids = 0 | 1873 local num_guids = 0 |
| 1874 | 1874 |
| 1875 -- Loot extrapolation cannot handle objects that need special spell labels (like HERBALISM or MINING) (MIND_CONTROL is okay) | 1875 -- Loot extrapolation cannot handle objects that need special spell labels (like HERBALISM or MINING) (MIND_CONTROL is okay) |
| 1876 if SPELL_FLAGS_BY_LABEL[current_action.spell_label] and not NON_LOOT_SPELL_LABELS[current_action.spell_label] then | 1876 if private.SPELL_FLAGS_BY_LABEL[current_action.spell_label] and not private.NON_LOOT_SPELL_LABELS[current_action.spell_label] then |
| 1877 Debug("%s: Problematic spell label %s found. Loot extrapolation for this set of loot would have run an increased risk of introducing bad data into the system.", log_source, private.previous_spell_id) | 1877 Debug("%s: Problematic spell label %s found. Loot extrapolation for this set of loot would have run an increased risk of introducing bad data into the system.", log_source, private.previous_spell_id) |
| 1878 table.wipe(current_action) | 1878 table.wipe(current_action) |
| 1879 return false | 1879 return false |
| 1880 end | 1880 end |
| 1881 | 1881 |
