Quantcast

Fix bug with finding out if a mob drop is a raid or instance drop

Ackis [12-08-08 - 22:01]
Fix bug with finding out if a mob drop is a raid or instance drop
Filename
ARLDataminer.rb
RecipeDB/ARL-Engineer.lua
diff --git a/ARLDataminer.rb b/ARLDataminer.rb
index d403ba0..5acb149 100644
--- a/ARLDataminer.rb
+++ b/ARLDataminer.rb
@@ -567,7 +567,7 @@ EOF
 									found = false
 									# Go through all the dungeons
 									$dungeons.each_pair do |id,dname|
-										if dname == $bosszonemap[npc[:name]]
+										if dname[:name] == $bosszonemap[npc[:name]]
 											flags << flaglisting["Instance"]
 											found = true
 											$instancemobs << npc[:name]
@@ -576,7 +576,7 @@ EOF
 									if not found
 										# Go through all the raids
 										$raids.each_pair do |id,dname|
-											if dname == $bosszonemap[npc[:name]]
+											if dname[:name] == $bosszonemap[npc[:name]]
 												flags << flaglisting["Raid"]
 												found = true
 												$instancemobs << npc[:name]
@@ -2727,6 +2727,7 @@ EOF
 	self:addTradeSkill(RecipeDB,61483,400,44742,3,4036)
 	self:addTradeFlags(RecipeDB,61483,1,2,3,21,25,30,36,41,59)
 	self:addTradeAcquire(RecipeDB,61483,1,26907,1,26955,1,26991,1,28697)
+
 EOF
 	$trainers[26907] = {:name => "Tisha Longbridge"}
 	$trainers[26907][:faction] = 1
@@ -2736,7 +2737,7 @@ EOF
 	$trainers[26991][:faction] = 1
 	$trainers[28697] = {:name => "Justin Oshenko"}
 	$trainers[28697][:faction] = 0
-	create_profession_db("./RecipeDB/ARL-Engineer.lua","Engineering",recipes,maps,"InitEngineering",eng,[30573,30343,30342,30349,30561,30549,12722,12720,12900,12719,12904],engspecaillist,engmanual)
+	create_profession_db("./RecipeDB/ARL-Engineer.lua","Engineering",recipes,maps,"InitEngineering",eng,[61483,30573,30343,30342,30349,30561,30549,12722,12720,12900,12719,12904],engspecaillist,engmanual)

 	firstaid = recipes.get_firstaid_list
 	faspecaillist = {
diff --git a/RecipeDB/ARL-Engineer.lua b/RecipeDB/ARL-Engineer.lua
index fa80764..afd27e6 100644
--- a/RecipeDB/ARL-Engineer.lua
+++ b/RecipeDB/ARL-Engineer.lua
@@ -1740,12 +1740,6 @@ function addon:InitEngineering(RecipeDB)
 	self:addTradeFlags(RecipeDB,61471,3,21,22,23,24,25,26,27,28,29,30,36,41)
 	-- No acquire information

-	-- Mechanized Snow Goggles -- 61483
-	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB,61483,400,44742,3,4036)
-	self:addTradeFlags(RecipeDB,61483,3,21,25,30,36,41,59)
-	-- No acquire information
-
 	-- Mechanized Snow Goggles (Cloth) -- 56465
 	recipecount = recipecount + 1
 	self:addTradeSkill(RecipeDB,56465,400,41112,3,4036)
@@ -1769,6 +1763,7 @@ function addon:InitEngineering(RecipeDB)
 	self:addTradeSkill(RecipeDB,61483,400,44742,3,4036)
 	self:addTradeFlags(RecipeDB,61483,1,2,3,21,25,30,36,41,59)
 	self:addTradeAcquire(RecipeDB,61483,1,26907,1,26955,1,26991,1,28697)
+
 	return recipecount

 end