In addon:PrintScanResults(): Complain if the recipe's quality isn't Common when it's a trainer-learned recipe.
James D. Callahan III [04-12-10 - 02:10]
In addon:PrintScanResults(): Complain if the recipe's quality isn't Common when it's a trainer-learned recipe.
diff --git a/Scanner.lua b/Scanner.lua
index c7725c2..6ec2f9a 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -1975,12 +1975,18 @@ do
tinsert(output, string.format(" Extra Specialty: %s", recipe.specialty))
end
- if scan_data.quality ~= recipe.quality then
+ if recipe:IsFlagged("common1", "TRAINER") and recipe.quality ~= private.item_qualities["COMMON"] then
+ local QS = private.item_quality_names
+
+ found_problem = true
+ tinsert(output, string.format(" Wrong quality: Q.%s - should be Q.COMMON.", QS[recipe.quality]))
+ elseif scan_data.quality ~= recipe.quality then
local QS = private.item_quality_names
found_problem = true
tinsert(output, string.format(" Wrong quality: Q.%s - should be Q.%s.", QS[recipe.quality], QS[scan_data.quality]))
end
+
if found_problem then
tinsert(output, 1, string.format("%s: <a href=\"http://www.wowhead.com/?spell=%d\">%d</a>", recipe_name, spell_id, spell_id))
return tconcat(output, "\n")