When calculating the cheapest restorer, does the script look at items that restore both MP and HP at once?
The script seems to think that the best restorer in mall mode is mountain stream soda (restores 35 MP) when actually cotton candy item cone is cheaper even if you were to let their HP restoration go to waste and only use them for their MP restore.
While calculating the right value for a dual restore item can vary from person to person, calculating the value of only one side can be done easily (that is, ignore HP restore value to calculate only its MP restore value when comparing MP restorers; sure some HP goes to waste, but you are still saving money)
Another issue, on a new ascension I ended up having to heal, I was at 2 out of 6 HP. meaning I only needed to heal 4 points. Instead of using doc galaktik's pungent unguent (3-5 HP restored), it used Doc Galaktik's Homeopathic Elixir, which costs 4x as much as pungent unguent. it should be using one unguent, and then if it is still not enough to reach your desired target HP, a second one.
Restoring HP! Currently at 2 of 6 HP, 2 of 4 MP, current meat: 2190 ... Target HP = 6.
Try to heal HP from inventory.
Purchasing Doc Galaktik's Homeopathic Elixir (1 @ 120)...
You spent 120 Meat
You acquire an item: Doc Galaktik's Homeopathic Elixir
Using 1 Doc Galaktik's Homeopathic Elixir...
You gain 20 hit points
Finished using 1 Doc Galaktik's Homeopathic Elixir.