Exemple #1
0
        private void PbCreatureColorsExtractor_Click(object sender, EventArgs e)
        {
            var creature = new Creature
            {
                Species    = speciesSelector1.SelectedSpecies,
                levelsWild = GetCurrentWildLevels(true),
                levelsDom  = GetCurrentDomLevels(true)
            };

            creature.tamingEff       = _extractor.UniqueTamingEffectiveness();
            creature.isBred          = rbBredExtractor.Checked;
            creature.imprintingBonus = _extractor.ImprintingBonus;
            creatureInfoInputExtractor.SetCreatureData(creature);
            creature.RecalculateAncestorGenerations();
            creature.RecalculateNewMutations();
            creature.RecalculateCreatureValues(CreatureCollection.CurrentCreatureCollection.wildLevelStep);

            creature.ExportInfoGraphicToClipboard(CreatureCollection.CurrentCreatureCollection);
        }
Exemple #2
0
        private void pictureBoxColorRegionsTester_Click(object sender, EventArgs e)
        {
            var creature = new Creature
            {
                Species         = speciesSelector1.SelectedSpecies,
                levelsWild      = GetCurrentWildLevels(false),
                levelsDom       = GetCurrentDomLevels(false),
                tamingEff       = TamingEffectivenessTester,
                isBred          = rbBredTester.Checked,
                imprintingBonus = (double)numericUpDownImprintingBonusTester.Value / 100
            };

            creatureInfoInputTester.SetCreatureData(creature);
            creature.RecalculateAncestorGenerations();
            creature.RecalculateNewMutations();
            creature.RecalculateCreatureValues(CreatureCollection.CurrentCreatureCollection.wildLevelStep);

            creature.ExportInfoGraphicToClipboard(CreatureCollection.CurrentCreatureCollection);
        }