public static int BreedFlower(int motherIndex, int fatherIndex) { Flower mother = GetFlower(motherIndex); Flower father = GetFlower(fatherIndex); Flower childFlower = mother.Breed(father); AddNewFlower(childFlower); return(Flowers.Count); }
public static Flower BreedFlower(int motherIndex, int fatherIndex) { Flower mother = Inventory.GetFlower(motherIndex); Flower father = Inventory.GetFlower(fatherIndex); Flower childFlower = mother.Breed(father); FlowerList.AddLast(childFlower); SaveData.Save(); //Remove Flower return(childFlower); }