Quantcast

When scanning a trainer, any "extra" recipes will now show the item ID and name of the recipe's crafted item, so incorrect items will not result in a correct recipe being removed.

James D. Callahan III [03-14-11 - 02:14]
When scanning a trainer, any "extra" recipes will now show the item ID and name of the recipe's crafted item, so incorrect items will not result in a correct recipe being removed.
Filename
Scanner.lua
diff --git a/Scanner.lua b/Scanner.lua
index 57646ff..792173e 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -263,7 +263,14 @@ do

 			for index in ipairs(extra_spell_ids) do
 				local spell_id = extra_spell_ids[index]
-				table.insert(output, ("%d (%s)"):format(spell_id, recipe_list[spell_id].name))
+				local recipe = recipe_list[spell_id]
+				local crafted_item = recipe:CraftedItemID()
+
+				if crafted_item then
+					table.insert(output, ("%d (%s) - Crafted item ID set to %d (%s)"):format(spell_id, recipe.name, crafted_item, _G.GetItemInfo(crafted_item) or _G.UNKNOWN))
+				else
+					table.insert(output, ("%d (%s)"):format(spell_id, recipe.name))
+				end
 			end
 		end