comparison Main.lua @ 368:2e122726c7dd 6.0.2-5

Commented out tooltip scanning for OPENABLE and pet journal scanning since one is preventing data and the other is unused and causing bloat.
author MMOSimca <MMOSimca@gmail.com>
date Sun, 19 Oct 2014 16:46:31 -0400
parents 1dc56d8e1260
children 2d0899e85e29
comparison
equal deleted inserted replaced
367:1dc56d8e1260 368:2e122726c7dd
114 MAIL_SHOW = true, 114 MAIL_SHOW = true,
115 MERCHANT_CLOSED = true, 115 MERCHANT_CLOSED = true,
116 MERCHANT_SHOW = "UpdateMerchantItems", 116 MERCHANT_SHOW = "UpdateMerchantItems",
117 MERCHANT_UPDATE = "UpdateMerchantItems", 117 MERCHANT_UPDATE = "UpdateMerchantItems",
118 PET_BAR_UPDATE = true, 118 PET_BAR_UPDATE = true,
119 PET_JOURNAL_LIST_UPDATE = true, 119 --PET_JOURNAL_LIST_UPDATE = true,
120 PLAYER_REGEN_DISABLED = true, 120 PLAYER_REGEN_DISABLED = true,
121 PLAYER_REGEN_ENABLED = true, 121 PLAYER_REGEN_ENABLED = true,
122 PLAYER_TARGET_CHANGED = true, 122 PLAYER_TARGET_CHANGED = true,
123 QUEST_COMPLETE = true, 123 QUEST_COMPLETE = true,
124 QUEST_DETAIL = true, 124 QUEST_DETAIL = true,
559 local _, _, _, _, _, is_lootable = _G.GetContainerItemInfo(bag_index, slot_index) 559 local _, _, _, _, _, is_lootable = _G.GetContainerItemInfo(bag_index, slot_index)
560 560
561 if not is_lootable then 561 if not is_lootable then
562 return 562 return
563 end 563 end
564 DatamineTT:ClearLines() 564
565 table.wipe(current_action)
566 current_loot = nil
567 current_action.target_type = AF.ITEM
568 current_action.identifier = item_id
569 current_action.loot_label = "contains"
570
571 --[[DatamineTT:ClearLines()
565 DatamineTT:SetBagItem(bag_index, slot_index) 572 DatamineTT:SetBagItem(bag_index, slot_index)
566 573
567 for line_index = 1, DatamineTT:NumLines() do 574 for line_index = 1, DatamineTT:NumLines() do
568 local current_line = _G["WDPDatamineTTTextLeft" .. line_index] 575 local current_line = _G["WDPDatamineTTTextLeft" .. line_index]
569 576
580 current_action.identifier = item_id 587 current_action.identifier = item_id
581 current_action.loot_label = "contains" 588 current_action.loot_label = "contains"
582 return 589 return
583 end 590 end
584 end 591 end
585 Debug("HandleItemUse: Item with ID %d and link %s did not have a tooltip that contained the string %s.", item_id, item_link, _G.ITEM_OPENABLE) 592 Debug("HandleItemUse: Item with ID %d and link %s did not have a tooltip that contained the string %s.", item_id, item_link, _G.ITEM_OPENABLE)]]--
586 end 593 end
587 594
588 595
589 local UnitFactionStanding 596 local UnitFactionStanding
590 local UpdateFactionData 597 local UpdateFactionData
2274 NPCEntry(unit_idnum).mind_control = true 2281 NPCEntry(unit_idnum).mind_control = true
2275 table.wipe(current_action) 2282 table.wipe(current_action)
2276 end 2283 end
2277 2284
2278 2285
2279 function WDP:PET_JOURNAL_LIST_UPDATE(event_name) 2286 -- This function produces data currently unused by wowdb.com, and it causes unneeded bloat in the raw lua DB.
2280 -- This function produces data currently unused by wowdb.com and it makes debugging errors in the .lua output nearly impossible due to the massive bloat. 2287 --[[function WDP:PET_JOURNAL_LIST_UPDATE(event_name)
2281 if DEBUGGING then 2288 if DEBUGGING then
2282 return 2289 return
2283 end 2290 end
2284 2291
2285 local num_pets = LPJ:NumPets() 2292 local num_pets = LPJ:NumPets()
2303 data.attack = attack 2310 data.attack = attack
2304 data.speed = speed 2311 data.speed = speed
2305 end 2312 end
2306 end 2313 end
2307 end 2314 end
2308 end 2315 end]]--
2309 2316
2310 2317
2311 function WDP:PLAYER_REGEN_DISABLED(event_name) 2318 function WDP:PLAYER_REGEN_DISABLED(event_name)
2312 private.in_combat = true 2319 private.in_combat = true
2313 end 2320 end