public void AddOrUpdate(PokemonData egg, Incubators incu = null) { var eggModel = new Eggs(egg) { Hatchable = incu == null }; Eggs.Add(eggModel); }
public void AddOrUpdate(PokemonData egg, Incubators incu = null) { var eggModel = new Eggs(egg) { Hatchable = incu == null, }; if (!eggModel.Hatchable && incu != null) { eggModel.KM = incu.KM; } Eggs.Add(eggModel); }