If you can't afford the stack of ingredients for a particular item, it responds like the example below:
[buying 10x ingredients for improved elixir of healing]
You just bought 30 pieces of watery distill for 7 gold, 50 silver.
You need 7 gold, 50 silver to buy this.
You need 24 gold to buy this.
Found 3/3 items.
Consider changing the output to the following:
You just bought 30 pieces of watery distill for 7 gold, 50 silver.
You need 7 gold, 50 silver to buy earthen distill.
You need 24 gold to buy powdered blood root.
Found 3/3 items.
[buying 10x ingredients for improved elixir of healing]
You just bought 30 pieces of watery distill for 7 gold, 50 silver.
You need 7 gold, 50 silver to buy this.
You need 24 gold to buy this.
Found 3/3 items.
Consider changing the output to the following:
You just bought 30 pieces of watery distill for 7 gold, 50 silver.
You need 7 gold, 50 silver to buy earthen distill.
You need 24 gold to buy powdered blood root.
Found 3/3 items.