# HG changeset patch # User Asa Ayers # Date 1283488808 25200 # Node ID f7efbd8790623267800f2fa092c835c9b1c30163 # Parent 09a38a3821940aa82f407193ab75194e22a1c0bd 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. diff -r 09a38a382194 -r f7efbd879062 CHANGELOG.txt --- 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 diff -r 09a38a382194 -r f7efbd879062 Core.lua --- 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