Feature - Rejected Use Leash & Empathy for 20lb Tower Familiars

bumcheekcity

Active member
Code:
Taking Torg the Angry Goat out of terrarium...
Maximizing...
72 combinations checked, best score 15.00
Putting on Boris's Helm (askew)...
Equipment changed.
Kicking Ton the El Vibrato Megadrone out of the bjorn...
Carrying Gobert the Animated Macaroni Duck in the Bjorn Buddy...
Come back with a 20 pound Angry Goat
Putting on Knob Goblin harem veil...
Equipment changed.
Putting Torg the Angry Goat back into terrarium...
Taking Grot the Levitating Potato out of terrarium...
Facing giant familiar...
Her Naughtiness awaits.
Putting Grot the Levitating Potato back into terrarium...
Taking Gronald the Jumpsuited Hound Dog out of terrarium...
Requests complete.

> f goat

Putting Gronald the Jumpsuited Hound Dog back into terrarium...
Taking Torg the Angry Goat out of terrarium...
Requests complete.

Maximizing...
72 combinations checked, best score 15.00
Casting Empathy of the Newt 1 times...
You acquire an effect: Empathy (duration: 5 Adventures)
Empathy of the Newt was successfully cast.
Casting Leash of Linguini 1 times...
You acquire an effect: Leash of Linguini (duration: 10 Adventures)
Leash of Linguini was successfully cast.
Maximizing...
72 combinations checked, best score 25.00
Checking prerequisites...
Climbing the tower...
Putting Torg the Angry Goat back into terrarium...
Taking Grot the Levitating Potato out of terrarium...
Facing giant familiar...
You lose 50 hit points
Putting Grot the Levitating Potato back into terrarium...
Taking Torg the Angry Goat out of terrarium...
Facing giant familiar...
Putting Torg the Angry Goat back into terrarium...
Taking Grot the Levitating Potato out of terrarium...
Facing giant familiar...
You lose 50 hit points
Putting Grot the Levitating Potato back into terrarium...
Taking Got the Barrrnacle out of terrarium...
Facing giant familiar...
Her Naughtiness awaits.
Putting Got the Barrrnacle back into terrarium...
Taking Torg the Angry Goat out of terrarium...
Requests complete.

Pretty much as it sounds. I don't think anyone would have significant objections to the script casting leash and/or empathy if needed this late in the game?
 

Veracity

Developer
Staff member
Here is how it prepares for a familiar battle:

Code:
		// If we can buff it to above 20 pounds, try again.
		if ( familiar.getModifiedWeight() < 20 )
		{
			Maximizer.maximize( "familiar weight -tie", 0, 0, false );

			if ( familiar.getModifiedWeight() < 20 )
			{
				KoLmafia.updateDisplay( MafiaState.ERROR, "Come back with a 20 pound " + race );
				return;
			}
		}
That used to have Leash and Empathy (and various items which boosted familiar weight, like green snowcones) hardcoded. Every time a new item or potion was introduced which boosted familiar weight, people came in and whined that we didn't include it. (And yes, coming in and saying it is a Bug that we don't include this or that newly introduced item or effect is "whining".)

Eventually, we shrugged and changed the code to use the maximizer. Apparently, that does not consider skills.

So, you tell me: what maximizer string should we use?

Thanks.
 

Theraze

Active member
I use something like this in ash scripts:
Code:
				foreach it,entry in maximize("familiar weight, -tie", 0, 0, true, false) if (entry.score > 0 && entry.skill != $skill[none] && turns_per_cast(entry.skill) > 0) use_skill(max(1, ceil(my_adventures().to_float() / turns_per_cast(entry.skill))), entry.skill);
 

Veracity

Developer
Staff member
I know the maximizer can use equipment and items and that it recommends skills to me, on occasion. But I have never told it to make its own decisions; I run it via the GUI and pick and choose what I want it to do.

The tower script is telling it to make decisions. I'd like it to tell the maximizer to use equipment and skills - and no items, since we give it a budget of 0 Meat.

If there is no way to tell it that, we could hardcode in Leash and Empathy and then call the maximizer and tell it to just use equipment - which seems to be what it's doing now. But it would seem odd to me if we couldn't call it programmatically to behave the way I described.
 

Bale

Minion
It might be really nice if the maximizer did have an option to automatically use skills without restoring MP to do so. I add that "without restoring MP" option because some of these skills have three digit mp costs.
 
Top