diff Modules/Crafting.lua @ 122:d4cb8a690335

Fixed the Have Mats column to consider the number queued. Previously it was only telling if you had materials to make one of the item.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 02 Sep 2010 22:02:54 -0700
parents 44be3f350c9e
children 4aa521a2a7e7
line wrap: on
line diff
--- a/Modules/Crafting.lua	Thu Sep 02 21:40:08 2010 -0700
+++ b/Modules/Crafting.lua	Thu Sep 02 22:02:54 2010 -0700
@@ -478,6 +478,8 @@
 	for key, data in pairs(realData) do
 		data.haveMaterials = true
 		for id, reagent in pairs(data.reagents) do
+			reagent.count = reagent.count * data.queue
+
 			if not numOwned[reagent.link] then
 				numOwned[reagent.link] = ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(reagent.link))
 			end