@Override
public float getSappiness() {
// FIXME: Legacy handling.
if (getChromosomes()[EnumTreeChromosome.SAPPINESS.ordinal()] == null)
getChromosomes()[EnumTreeChromosome.SAPPINESS.ordinal()] = new Chromosome(Allele.sappinessLowest);
IAllele allele = getActiveAllele(EnumTreeChromosome.SAPPINESS.ordinal());
// FIXME: More legacy handling
if (allele instanceof IAlleleFloat)
return ((IAlleleFloat) allele).getValue();
else {
getChromosomes()[EnumTreeChromosome.SAPPINESS.ordinal()] = new Chromosome(Allele.sappinessLowest);
return 0.1f;
}
}