public static final void setClassName( final String classname )
{
KoLCharacter.classname = classname;
String originalClassType = KoLCharacter.classtype;
String newClassType = KoLCharacter.getClassType();
// We can use == on Strings since getClassType will return a
// constant string. It would be cleaner to have an enum.
if ( originalClassType != newClassType )
{
KoLCharacter.classtype = newClassType;
KoLCharacter.tripleReagent = KoLCharacter.classtype == KoLCharacter.SAUCEROR;
if ( KoLCharacter.classtype == KoLCharacter.ASTRAL_SPIRIT )
{
return;
}
// If we have an actual class, we have a mainstat.
// Reset concoction mainstat gains to reflect this.
ConcoctionDatabase.resetConcoctionStatGains();
// Allow or disallow special fight actions
FightRequest.initialize();
}
}