I noticed a few of the potential problems being faced in the EatDrink thread and thought it might be worth requesting a quantity option to the mall_price function.
This would work like mall_price(item, int) and return how much it would cost the player to buy int quantity of item. This is because you can't always be sure that any given number of items will be available in the mall at the same price (in case there's 1 left at a good price, for example). There should probably also be a maximum placed on the quantity you can get the total price for (5, 10?) to curtail potential abuse scenarios
I know this requires a bit of changing to the way mall prices are currently being fetched/returned and I don't know if there's enough interest behind it. Those who might find this useful may be happy enough to work around the way things are currently done, so feel free to discuss.
This would work like mall_price(item, int) and return how much it would cost the player to buy int quantity of item. This is because you can't always be sure that any given number of items will be available in the mall at the same price (in case there's 1 left at a good price, for example). There should probably also be a maximum placed on the quantity you can get the total price for (5, 10?) to curtail potential abuse scenarios
I know this requires a bit of changing to the way mall prices are currently being fetched/returned and I don't know if there's enough interest behind it. Those who might find this useful may be happy enough to work around the way things are currently done, so feel free to discuss.