From 6fcf2ded7e669228defed79e78ef54fcce898e62 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 11 Apr 2010 22:10:48 -0400 Subject: [PATCH] In addon:PrintScanResults(): Complain if the recipe's quality isn't Common when it's a trainer-learned recipe. --- Scanner.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: %d", recipe_name, spell_id, spell_id)) return tconcat(output, "\n") -- 1.7.9.5