private void setCreatureValuesToExtractor(Creature c, bool onlyWild = false)
{
if (c != null)
{
int speciesIndex = Values.V.speciesNames.IndexOf(c.species);
if (speciesIndex >= 0)
{
// copy values over to extractor
for (int s = 0; s < 8; s++)
statIOs[s].Input = (onlyWild ? Stats.calculateValue(speciesIndex, s, c.levelsWild[s], 0, true, c.tamingEff, c.imprintingBonus) : c.valuesDom[s]);
comboBoxSpeciesExtractor.SelectedIndex = speciesIndex;
checkBoxAlreadyBred.Checked = c.isBred;
numericUpDownImprintingBonusExtractor.Value = (decimal)c.imprintingBonus * 100;
// set total level
int level = (onlyWild ? c.levelsWild[7] : c.level);
if (level >= 0 && level <= numericUpDownLevel.Maximum)
numericUpDownLevel.Value = level;
else numericUpDownLevel.Value = 0;
tabControlMain.SelectedTab = tabPageExtractor;
}
else
MessageBox.Show("Unknown Species. Try to update the species-stats, or redownload the tool.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}