From 027b3d5f455485a0197de1b2ff54dc9da91d442a Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 13 Mar 2011 04:33:10 -0500 Subject: [PATCH] During a trainer scan, after all of the extra/missing recipes have been determined: For a recipe which has no crafted item set, see if the recipe name matches the name of any scanned items. If so, set that item ID as the recipe's crafted item. --- Scanner.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scanner.lua b/Scanner.lua index 7ad556c..71a4ea7 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -748,6 +748,13 @@ do end end elseif matching_trainer then + if not recipe:CraftedItemID() then + for item_id in pairs(scanned_items) do + if recipe.name == _G.GetItemInfo(item_id) then + recipe:SetCraftedItemID(item_id) + end + end + end table.insert(extra_spell_ids, spell_id) end end -- 1.7.9.5