Quantcast

Fix a few more false positives and fix the line spacing issue.

ackis [06-22-09 - 21:07]
Fix a few more false positives and fix the line spacing issue.
Filename
ARLDatamine.lua
RecipeDB/ARL-Tailor.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index ded8659..f15c8cb 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1460,7 +1460,7 @@ do
 				scan_data.TwoHanded = true
 			elseif (strmatch(text,"axe")) then
 				scan_data.Axe = true
-			elseif (strmatch(text,"sword")) then
+			elseif (strmatch(text,"sword") and (strmatch(text,"swordguard") == nil)) then
 				scan_data.Sword = true
 			elseif (strmatch(text,"mace")) then
 				scan_data.Mace = true
@@ -1616,7 +1616,7 @@ do
 		end

 		if (#missing_flags > 0) or (#extra_flags > 0) then
-			tinsert(t,recipe_name .. " - " .. spellid)
+			tinsert(t,recipe_name .. " (" .. spellid .. ")")

 			if (#missing_flags > 0) then
 				tinsert(t,"Missing flags: " .. tconcat(missing_flags,","))
@@ -1639,22 +1639,24 @@ do
 			elseif count > 1 then
 				tinsert(t,"Extra: item type flag")
 			end
+
+			tinsert(t,"\n")
 		end

 		if (not flags[1]) and (not flags[2]) then
-			tinsert(t,"Horde or alliance not selected - " .. spellid)
+			tinsert(t,"Horde or alliance not selected. " .. recipe_name .. " (" .. spellid .. ")\n")
 		end

 		if (not flags[40]) and (not flags[41]) and (not flags[42]) then
-			tinsert(t,"No recipe binding information - " .. spellid)
+			tinsert(t,"No recipe binding information. " .. recipe_name .. " (" .. spellid .. ")\n")
 		end

 		if (not flags[36]) and (not flags[37]) and (not flags[38]) then
-			tinsert(t,"No item binding information - " .. spellid)
+			tinsert(t,"No item binding information. " .. recipe_name .. " (" .. spellid .. ")\n")
 		end

 		if (not scan_data.tank) and (not scan_data.healer) and (not scan_data.caster) and (not scan_data.dps) then
-			tinsert(t,"No player role flag - " .. spellid)
+			tinsert(t,"No player role flag. " .. recipe_name .. " (" .. spellid .. ")\n")
 		end

 		if (scan_data.specialty) then
@@ -1668,7 +1670,6 @@ do
 		end

 		-- Add a new line at the end to make things easier to read.
-		tinsert(t,"\n")
 		return tconcat(t,"\n")

 	end
diff --git a/RecipeDB/ARL-Tailor.lua b/RecipeDB/ARL-Tailor.lua
index 1913cbc..f9fcaaa 100644
--- a/RecipeDB/ARL-Tailor.lua
+++ b/RecipeDB/ARL-Tailor.lua
@@ -1122,7 +1122,7 @@ function addon:InitTailoring(RecipeDB)
 	self:addTradeAcquire(RecipeDB,26087,8,26)

 	-- Festival Dress -- 26403
-	self:addTradeSkill(RecipeDB,26403,250,21154,2,3908,0,250,265,280,295)
+	self:addTradeSkill(RecipeDB,26403,250,21154,2,3908,nil,0,250,265,280,295)
 	self:addTradeFlags(RecipeDB,26403,1,2,4,7,21,22,23,24,25,26,27,28,29,30,36,41,56)
 	self:addTradeAcquire(RecipeDB,26403,5,2,2,15909)

@@ -1162,22 +1162,22 @@ function addon:InitTailoring(RecipeDB)
 	self:addTradeAcquire(RecipeDB,26751,2,22208,2,29512)

 	-- Spellfire Belt -- 26752
-	self:addTradeSkill(RecipeDB,26752,355,21846,1,3908,26797)
+	self:addTradeSkill(RecipeDB,26752,355,21846,1,3908,26797,1)
 	self:addTradeFlags(RecipeDB,26752,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,56)
 	self:addTradeAcquire(RecipeDB,26752,2,22213,2,29511)

 	-- Spellfire Gloves -- 26753
-	self:addTradeSkill(RecipeDB,26753,365,21847,1,3908,26797)
+	self:addTradeSkill(RecipeDB,26753,365,21847,1,3908,26797,1)
 	self:addTradeFlags(RecipeDB,26753,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,56)
 	self:addTradeAcquire(RecipeDB,26753,2,22213,2,29511)

 	-- Spellfire Robe -- 26754
-	self:addTradeSkill(RecipeDB,26754,375,21848,1,3908,26797)
+	self:addTradeSkill(RecipeDB,26754,375,21848,1,3908,26797,1)
 	self:addTradeFlags(RecipeDB,26754,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,56)
 	self:addTradeAcquire(RecipeDB,26754,2,22213,2,29511)

 	-- Spellfire Bag -- 26755
-	self:addTradeSkill(RecipeDB,26755,375,21858,3,3908)
+	self:addTradeSkill(RecipeDB,26755,375,21858,3,3908,nil,1)
 	self:addTradeFlags(RecipeDB,26755,1,2,4,11,21,22,23,24,25,26,27,28,29,30,36,41)
 	self:addTradeAcquire(RecipeDB,26755,3,20134,3,20135,2,22213,2,29511)