roippi
Developer
Many zones in validate() do not perform a server hit; others only perform a server hit if equipping an item is necessary.
Others, though:
As far as I can tell this is an unnecessary hit to whichplace=plains every time validate() is called in the palindome.
There are some other examples of this in validate() (bathole, mclargehuge, ...), and I think most if not all can be pre-empted with checks to the quest log status. Like the one lost recently added:
Others, though:
Code:
if ( this.adventureId.equals( AdventurePool.PALINDOME_ID ) )
{
AdventureResult talisman = ItemPool.get( ItemPool.TALISMAN, 1 );
if ( !KoLCharacter.hasEquipped( talisman ) )
{
if ( !InventoryManager.hasItem( talisman ) )
{
return;
}
RequestThread.postRequest( new EquipmentRequest( talisman ) );
}
RequestThread.postRequest( KoLAdventure.ZONE_UNLOCK.constructURLString(
"place.php?whichplace=plains" ) );
this.isValidAdventure = KoLAdventure.ZONE_UNLOCK.responseText.indexOf( "dome.gif" ) != -1;
return;
}
As far as I can tell this is an unnecessary hit to whichplace=plains every time validate() is called in the palindome.
There are some other examples of this in validate() (bathole, mclargehuge, ...), and I think most if not all can be pre-empted with checks to the quest log status. Like the one lost recently added:
Code:
if ( this.adventureId.equals( AdventurePool.WHITEYS_GROVE_ID ) )
{
if ( !Preferences.getString( "_questG02Whitecastle" ).equals( "unstarted" ) )
{
this.isValidAdventure = true;
return;
}
RequestThread.postRequest( KoLAdventure.ZONE_UNLOCK.constructURLString( "woods.php" ) );
this.isValidAdventure = KoLAdventure.ZONE_UNLOCK.responseText.indexOf( "grove.gif" ) != -1;
...
Last edited: