includes container contents, not just the cost of the container itself (a prices in inventory phenomenon). Along the way I discovered a peculiarity - contained_cost() was adding up the cost of everything in a container, even if you had stashed items in it that were your own and not marked unpaid it seems. I added a flag to force the code to only add objects that were marked "unpaid" so I could use it in this new instance, but I didn't change any of the existing usages (I left the flag at FALSE which leaves the consideration of the unpaid status alone just as before). Some of this is correction of some messages that were wrong prior to this when dealing with selling of objects inside a container when only part of the contents was unpaid.
74 KiB
74 KiB