changeset 121:f7efbd879062

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.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 02 Sep 2010 21:40:08 -0700
parents 09a38a382194
children d4cb8a690335
files CHANGELOG.txt Core.lua
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Thu Sep 02 21:33:34 2010 -0700
+++ b/CHANGELOG.txt	Thu Sep 02 21:40:08 2010 -0700
@@ -2,6 +2,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.
 
 2010-09-01  Asa Ayers  <Asa.Ayers@Gmail.com>
 
--- a/Core.lua	Thu Sep 02 21:33:34 2010 -0700
+++ b/Core.lua	Thu Sep 02 21:40:08 2010 -0700
@@ -565,7 +565,7 @@
 		if count > 0 then 
 			return ceil(item.invested), ceil(item.invested/count), count
 		end
-		
+		return ceil(item.invested), 0, count
 	end
 	return 0, 0, ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(link))
 end