Shiverwarp
Member
retrieve_price returns the mall_price of an item in your inventory, even if the meatpasting components required to create it would be cheaper than the mall price.
For example:
The mall price of whirled peas is: 1,331
The mall price of handful of split pea soup is: 10,000
valueOfInventory preference is 2
If I have a handful of split pea soup in inventory, running retrieve_price($item[handful of split pea soup] will return 10,000 instead of 2,672
If I have no handful of split pea soup in inventory, it will return 2,672 as expected.
Expected behaviour: retrieve_price returns the lowest price of meatpasting items, regardless of whether you currently have one in inventory.
For example:
The mall price of whirled peas is: 1,331
The mall price of handful of split pea soup is: 10,000
valueOfInventory preference is 2
If I have a handful of split pea soup in inventory, running retrieve_price($item[handful of split pea soup] will return 10,000 instead of 2,672
If I have no handful of split pea soup in inventory, it will return 2,672 as expected.
Expected behaviour: retrieve_price returns the lowest price of meatpasting items, regardless of whether you currently have one in inventory.