Mercurial > wow > wowdb-profiler
changeset 33:6422f3b61962
Count the number of times an NPC has been looted on a per-droptype basis.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 04 Jun 2012 12:02:28 -0500 |
parents | 81d7d84df629 |
children | 2a094108d89b |
files | Main.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Wed May 30 14:56:19 2012 -0500 +++ b/Main.lua Mon Jun 04 12:02:28 2012 -0500 @@ -555,6 +555,8 @@ end local encounter_data = npc.encounter_data[InstanceDifficultyToken()] local loot_type = action_data.label or "drops" + npc.loot_counts = npc.loot_counts or {} + npc.loot_counts[loot_type] = (npc.loot_counts[loot_type] or 0) + 1 encounter_data[loot_type] = encounter_data[loot_type] or {} for index = 1, #action_data.loot_list do