Universal recovery v 2.3 released!
This update will require mafia users to update to build 7114 or later as it uses features that don't exist in earlier versions.
Changelog:
Version 2.3 - March 31, 2009
- Some routines rewritten for greater efficiency under KolMafia revision 7098
- CLI output reduced. It runs much cleaner now.
- Use of birdform restoration is now user configurable.
- Will check user's preference for "Buy items from the mall whenever needed" and stay in hardcore mode if the preference is unchecked.
- Fixed unseemly preference for palm fronds when healing relatively few MP/HP in mall mode.
- Configurable variables moved to the top of the script.
- A few miscellaneous improvements to restoration logic.
I'm still running into issues where the script is buying more expensive restoratives than it needs for some reason. There are plenty of ancient Magi-Wipes in the mall at 170, the palm-frond fan at 200 for less restoration was glaringly odd here.
I finally found the problem!! It was a quirky round off issue that only caused trouble in certain circumstances. In short: to figure out how many fronds would be required, I double the number of fans it would take. That makes sense, but for example, ceil(.4 *2) is 1. Oops! Naturally that gave an unsightly preference to using fans in certain circumstances. It's fixed in this version.
At the vary least, make the threshold easily configurable inside the script.
I hate doing that, but there seems to be a lot of personal preference involved so no one-size-fits-all answer is possible...
Sigh... Done. It is now easily configurable. Now I have a variable at the beginning of the script called
bird_threshold. If you set it to 0.00 it will always use birdform items regardless of how much might be wasted. If you set it for .30 it will only use them if at least 30% of the items healing will be useful. And if you set it for 1.00, then it won't use any birdform items unless you are guaranteed to use 100% of their restoration. I've set it at 10% as default, although there is only a little difference between that and 0%. I didn't bother to make separate thresholds between moths and grubs because I want to keep it simple and this seems like enough.
EDIT: Oops, I guess you can turn the oils off with the Kolmafia HP/MP menu. Silly me.
EDIT EDIT: However, I guess the HP/MP thing doesn't acually work. I don't have the massage oils box checked, but it used them anyway.
I suggest that you uncheck the box and then check it again since I'm convinced that this should
absolutely have worked. Anyway, I've rewritten part of that section of the code to take advantage of a new mafia feature so it would work slightly differently now. Please try it.