Does mafia know the difference between the desert hydrated and unhydrated to support the ops original use for returning 2 adventures spent on the hydrated desert without an active effect of ultra hydrated?
Which is why I threw out what it would cost for 10 desert turnips as an awesome possibility. If mafia actually knew it, would make finding best adventure costs really confusing. But sort of good.
Any skip-adventure should probably be ignored. Give max-adventure estimate. However, the sea and desert both should follow 'standard' rules based on your turns of fishy and/or hydration.
@Override
public int getAdventuresUsed()
{
if ( this.override >= 0 )
{
return this.override;
}
if ( this.adventureId.equals( "123" ) )
{ // Desert (Ultrahydrated) may also visit the Oasis
return KoLConstants.activeEffects.contains(
EffectPool.get( Effect.HYDRATED ) ) ? 1 : 2;
}
String zone = AdventureDatabase.getZone( this.adventureName );
if ( zone != null && zone.equals( "The Sea" ) )
{
return KoLConstants.activeEffects.contains(
EffectPool.get( Effect.FISHY ) ) ? 1 : 2;
}
return this.formSource.startsWith( "shore" ) ? 3 : 1;
}
And a third turn is spent (or isn't it?) if you go to hydrate, but the encounter is overriden by a superlikely (stone rose, pages - you probably shouldn't be adventuring in the desert if you have unfinished superlikelies in the oasis, but you *can*). Or by a wandering monster (again, will mafia just continue trying to hydrate, or will it fail/abort?).It does know the difference, but this is further complicated by the fact that a second turn is only spent if your last turn was hydrated and now it would be an unhydrated turn.
According to this bug report if a wandering monster (a bee, in this case), overrides hydration, KoLmafia notices the failure but goes to the desert anyway. That's almost certainly not what the user wants.And a third turn is spent (or isn't it?) if you go to hydrate, but the encounter is overriden by a superlikely (stone rose, pages - you probably shouldn't be adventuring in the desert if you have unfinished superlikelies in the oasis, but you *can*). Or by a wandering monster (again, will mafia just continue trying to hydrate, or will it fail/abort?).
Maybe expected_adv_per_visit?What would be a good proxy record name?
Yeah, "turnip" dates back to the CVS days. It was added to the UI on January 29, 2005 (so between KoLmafia 1.0 and KoLmafia 1.1) when there was some confusion about the shore (one of the main places people used KoLmafia to adventure in back then) since the little field next to the text box said '# of turns' (that field originally had its own label instead of appearing as a spinner back when the number of places you could go was so limited that it didn't need a filterable multi-select box).Actually, it goes all the way back to the first svn commit. [...] In any event, those revisions are from back in 2006.