changeset 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 f7efbd879062
children 4aa521a2a7e7
files CHANGELOG.txt Modules/Crafting.lua
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Thu Sep 02 21:40:08 2010 -0700
+++ b/CHANGELOG.txt	Thu Sep 02 22:02:54 2010 -0700
@@ -3,6 +3,7 @@
 - Updated the ArkInventory rule and tooltip to work in QA is compatible instead of if its enabled in ItemAuditor.
 - Moved the check for QAManager so it doesn't interfere with the tooltip or ArkInventory rule.
 - Update GetItemCost to return the total invested even if you have none of that item left. If you sell all of an item but are waiting for the mail to arrive, you can still see how much you have invested even though you don't actually own any more of that item.
+- 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.
 
 2010-09-01  Asa Ayers  <Asa.Ayers@Gmail.com>
 
--- 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