private void listViewSpeciesBP_SelectedIndexChanged(object sender, EventArgs e)
{
if (listViewSpeciesBP.SelectedIndices.Count > 0)
{
determineBestBreeding();
if (bestLevels.Count > 6)
{
// display top levels in species
int? levelStep = creatureCollection.getWildLevelStep();
Creature crB = new Creature(currentSpecies, "", "", "", 0, new int[8], null, 100, true, levelStep: levelStep);
crB.name = "Best possible levels (" + currentSpecies + ")";
bool totalLevelUnknown = false;
for (int s = 0; s < 7; s++)
{
crB.levelsWild[s] = bestLevels[s];
crB.valuesBreeding[s] = Stats.calculateValue(speciesIndex, s, crB.levelsWild[s], 0, true, 1, 0);
if (crB.levelsWild[s] == -1)
{
totalLevelUnknown = true;
}
crB.topBreedingStats[s] = (crB.levelsWild[s] > 0);
}
crB.levelsWild[7] = crB.levelsWild.Sum();
crB.recalculateCreatureValues(levelStep);
pedigreeCreatureBestPossibleInSpecies.totalLevelUnknown = totalLevelUnknown;
pedigreeCreatureBestPossibleInSpecies.Creature = crB;
}
}
}