loathers / autoscend

An ascension script for KoLMafia
Other
45 stars 70 forks source link

Autoscend prefers Doc Galaktik restoration to Cannelloni Cocoon and other MP-based restores. #405

Closed phulin closed 4 years ago

phulin commented 4 years ago

Context

Expected/Desired Behavior

Optimally, autoscend should prefer Cannelloni Cocoon over Doc Galaktik and other meat-based HP restores, at least when the cost of 20 MP is less than the cost of the meat-based restores.

Current Behavior

Autoscend considers both hp per meat spent and hp per mp spent when comparing restores in its ranking algorithm. However, because DG restores do not have an applicable value for hp per mp spent, and Cocoon doesn't have an applicable value for hp per meat spent, the two are never actually compared until the 6th-ranked optimization objective, which is "minimize hp/mp shortage to goal and wasted hp/mp over max."

I think a reasonable solution would be to value all MP-based HP restores based on the cheapest infinite-supply meat-based MP restore that is available. Happy to submit a PR if that sounds good to you all. I assume it will need extensive testing.

Malibu-Stacey commented 4 years ago

Items and values I'm using for calculating meat per MP so we can set meat per use appropriately for skills:

Other than soda water which is double the cost of Invigorating Tonic (70 meat/4 MP = 17.5) are there any other MP restores always available?

taltamir commented 4 years ago

in nuclear autumn there is internal soda machine. which gives 0.5 meat per MP