comparison 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
comparison
equal deleted inserted replaced
120:09a38a382194 121:f7efbd879062
563 count = count - countModifier 563 count = count - countModifier
564 end 564 end
565 if count > 0 then 565 if count > 0 then
566 return ceil(item.invested), ceil(item.invested/count), count 566 return ceil(item.invested), ceil(item.invested/count), count
567 end 567 end
568 568 return ceil(item.invested), 0, count
569 end 569 end
570 return 0, 0, ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(link)) 570 return 0, 0, ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(link))
571 end 571 end