Mercurial > wow > wowdb-profiler
comparison Main.lua @ 408:da20cca2ddc6 6.0.3-5
Prevented recording bonus roll loot (it skews true loot percentages with spec-based drop data).
| author | MMOSimca <MMOSimca@gmail.com> |
|---|---|
| date | Wed, 31 Dec 2014 07:57:07 -0500 |
| parents | 0825513e6af1 |
| children | ad8323486561 |
comparison
equal
deleted
inserted
replaced
| 407:0825513e6af1 | 408:da20cca2ddc6 |
|---|---|
| 88 local EVENT_MAPPING = { | 88 local EVENT_MAPPING = { |
| 89 AUCTION_HOUSE_SHOW = true, | 89 AUCTION_HOUSE_SHOW = true, |
| 90 BANKFRAME_OPENED = true, | 90 BANKFRAME_OPENED = true, |
| 91 BATTLEFIELDS_SHOW = true, | 91 BATTLEFIELDS_SHOW = true, |
| 92 BLACK_MARKET_ITEM_UPDATE = true, | 92 BLACK_MARKET_ITEM_UPDATE = true, |
| 93 BONUS_ROLL_RESULT = true, | |
| 93 CHAT_MSG_CURRENCY = true, | 94 CHAT_MSG_CURRENCY = true, |
| 94 CHAT_MSG_LOOT = true, | 95 CHAT_MSG_LOOT = true, |
| 95 CHAT_MSG_MONSTER_SAY = "RecordQuote", | 96 CHAT_MSG_MONSTER_SAY = "RecordQuote", |
| 96 CHAT_MSG_MONSTER_WHISPER = "RecordQuote", | 97 CHAT_MSG_MONSTER_WHISPER = "RecordQuote", |
| 97 CHAT_MSG_MONSTER_YELL = "RecordQuote", | 98 CHAT_MSG_MONSTER_YELL = "RecordQuote", |
| 1273 function WDP:LOOT_SLOT_CLEARED(...) | 1274 function WDP:LOOT_SLOT_CLEARED(...) |
| 1274 ClearChatLootData() | 1275 ClearChatLootData() |
| 1275 end | 1276 end |
| 1276 | 1277 |
| 1277 | 1278 |
| 1279 -- For now, bonus roll data only pollutes the true drop percentages. We still want to capture the data from SPELL_CONFIRMATION_PROMPT because of legendary quest items though. | |
| 1280 function WDP:BONUS_ROLL_RESULT(event_name) | |
| 1281 Debug("%s: Bonus roll detected; stopping loot recording for this boss to avoid recording bonus loot.", event_name) | |
| 1282 ClearKilledBossID() | |
| 1283 ClearLootToastContainerID() | |
| 1284 end | |
| 1285 | |
| 1286 | |
| 1278 function WDP:BLACK_MARKET_ITEM_UPDATE(event_name) | 1287 function WDP:BLACK_MARKET_ITEM_UPDATE(event_name) |
| 1279 if not ALLOWED_LOCALES[CLIENT_LOCALE] then | 1288 if not ALLOWED_LOCALES[CLIENT_LOCALE] then |
| 1280 return | 1289 return |
| 1281 end | 1290 end |
| 1282 local num_items = _G.C_BlackMarket.GetNumItems() or 0 | 1291 local num_items = _G.C_BlackMarket.GetNumItems() or 0 |
