Mercurial > wow > itemauditor
diff Core.lua @ 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 | d94195157a6b |
children | 451d8a19edea |
line wrap: on
line diff
--- 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