record restorative_info { // Used for storing restorative data.
int minhp;
int maxhp;
int minmp;
int maxmp;
boolean combat;
};
restorative_info [item] heal; // This is the map of all restoratives and how much they heal.
// These are the default values to restore hp and mp.
int hp_autoheal = ceil(my_maxhp() * to_float(get_property("hpAutoRecovery")));
int hp_autotarget = ceil(my_maxhp() * to_float(get_property("hpAutoRecoveryTarget")));
int mp_autoheal = ceil(my_maxmp() * to_float(get_property("mpAutoRecovery")));
int mp_autotarget = ceil(my_maxmp() * to_float(get_property("mpAutoRecoveryTarget")));
int objective; // This is the target passed to the recoveryScript.
Attempting to heal up to 155HP with Bale's hardcore recoveryScript.
Current HP: 154, Current MP: 68... restoring HP! Target = 155
Casting Lasagna Bandages 1 times...
You gain 10 hit points
Lasagna Bandages was successfully cast.
HP is 155 or greater. My work here is done.
Attempting to heal up to 63MP with Bale's hardcore recoveryScript.
Current HP: 164, Current MP: 62... restoring MP! Target = 63
Searching for "magical mystery juice"...
Purchasing magical mystery juice (1 @ 100)...
You acquire an item: magical mystery juice
Purchases complete.
Using 1 magical mystery juice...
You gain 22 Mana Points
Finished using 1 magical mystery juice.
MP is 63 or greater. My work here is done.
Attempting to heal up to 165HP with Bale's hardcore recoveryScript.
Current HP: 164, Current MP: 84... restoring HP! Target = 165
Casting Lasagna Bandages 1 times...
You gain 28 hit points
Lasagna Bandages was successfully cast.
HP is 165 or greater. My work here is done.
Attempting to heal up to 79MP with Bale's hardcore recoveryScript.
Current HP: 192, Current MP: 78... restoring MP! Target = 79
Searching for "magical mystery juice"...
Purchasing magical mystery juice (1 @ 100)...
You acquire an item: magical mystery juice
Purchases complete.
Using 1 magical mystery juice...
You gain 22 Mana Points
Finished using 1 magical mystery juice.
MP is 79 or greater. My work here is done.
[2004] Sorceress' Hedge Maze
Encounter: topiary golem
Round 0: ironsting loses initiative!
You lose 42 hit points
Round 1: ironsting casts LUNGING THRUST-SMACK!
You lose 40 hit points
Round 2: ironsting casts SAUCEGEYSER!
Round 2: topiary golem takes 103 damage.
You lose 42 hit points
Attempting to autoheal HP with Bale's hardcore recoveryScript.
AutoHeal if at 88HP, up to -> 112HP.
Current HP: 0, Current MP: 259... restoring HP! Target = 112
You've had the crap beaten out of you... attempting to find some more crap.
Casting Tongue of the Walrus 1 times...
You gain 34 hit points
Tongue of the Walrus was successfully cast.
Casting Cannelloni Cocoon 1 times...
You gain 99 hit points
Cannelloni Cocoon was successfully cast.
HP has been healed up to default levels. My work here is done.
Attempting to autoheal MP with Bale's hardcore recoveryScript.
AutoHeal if at 224MP, up to -> 426MP.
MP has been healed up to default levels. My work here is done.
> restore hp
Attempting to heal up to 134HP with Bale's hardcore recoveryScript.
Current HP: 133, Current MP: 229... restoring HP! Target = 134
Casting Lasagna Bandages 1 times...
You gain 27 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 12 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 11 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 11 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 18 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 20 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 30 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 25 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 29 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 22 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 30 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 11 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 22 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 22 hit points
Lasagna Bandages was successfully cast.
Casting Lasagna Bandages 1 times...
You gain 29 hit points
Lasagna Bandages was successfully cast.
KoLmafia declares world peace.
Lately I've been killing a couple of bugs, but that one is gonna be a bit harder to deal well with... I'll think about it. Right now all I can think of is detecting if you're caught in a loop and aborting out of it before you cast bandages too many times. XDSecond, I experienced the looping lasagna bandages problem when Mafia kept switching on my Brimstone Bracelet to cast it and then taking it back off to restore my previous outfit afterwards.