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.
James D. Callahan III [03-13-11 - 09:33]
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.
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