efilnikufecin
Member
This Script was inspired by Presto Ragu's RestorerSelector. Though not as useful because of in game costs, it has it's purposes.
Like Presto Ragu's RestorerSelector, it is meant to be used by another script, however, this one can be used from the GUI. I don't see why anyone would want to, but why not make it possible?
As with Presto Ragu's script, you must put the import command near the top of the script that will use this script.
if you didn't rename the file.
There are 2 useable functions in this script.
The first:
return the price to restore at Doc Galaktiks
The second:
returns true if you have enough meat to restore at Doc Galaktik's,
and false if you don't.
Finally if called alone, KOLMafia will display 1 of 3 things:
This script has no effect on a character, and is designed to simply answer questions. It's usefullness might show when your max MP is 40, and you want to cast antiphon. after using other methods to get your mp as close to 40 as possible, say you only need 2 more MP. It would be a waste of a tiny house, and Galaktik is an alternative if you have enough meat. Though the HP functionality isn't nearly as usefull, it was included for the case when someone really wants to be at full HP, and doesn't want to waste HP restorers.
Another possible future addition could be added:
which would look at the restorers you have in inventory, and determine if you would be wasting excess mp using them, rather than Galaktik.
It would return true if it is wastefull to use restoring items that you have, and false if you have restorers that wouldn't be wasting a lot of their HP/MP restoring capabilities.
as stated at the top, not near as usefull as Presto Ragu's RestorerSelector but mildly usefull in conjunction with it.
Like Presto Ragu's RestorerSelector, it is meant to be used by another script, however, this one can be used from the GUI. I don't see why anyone would want to, but why not make it possible?
As with Presto Ragu's script, you must put the import command near the top of the script that will use this script.
Code:
import <CanGalaktik.ash>;
There are 2 useable functions in this script.
The first:
Code:
price_galaktik("hp");
Code:
price_galaktik("mp");
The second:
Code:
can_galaktik("hp");
Code:
can_galaktik("mp");
and false if you don't.
Finally if called alone, KOLMafia will display 1 of 3 things:
Code:
You can restore HP/MP at the doc
Code:
You can restore HP but not MP at the doc
Code:
You can restore MP but not HP at the doc
This script has no effect on a character, and is designed to simply answer questions. It's usefullness might show when your max MP is 40, and you want to cast antiphon. after using other methods to get your mp as close to 40 as possible, say you only need 2 more MP. It would be a waste of a tiny house, and Galaktik is an alternative if you have enough meat. Though the HP functionality isn't nearly as usefull, it was included for the case when someone really wants to be at full HP, and doesn't want to waste HP restorers.
Another possible future addition could be added:
Code:
should_galaktik("hp");
Code:
should_galaktik("mp");
It would return true if it is wastefull to use restoring items that you have, and false if you have restorers that wouldn't be wasting a lot of their HP/MP restoring capabilities.
as stated at the top, not near as usefull as Presto Ragu's RestorerSelector but mildly usefull in conjunction with it.