public void AddPokemon(IPokemon pokemon) { pokePC.GameSave.IsChanged = true; IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null); if (pkm != null) { pkm.PokeContainer = this; if (pokePC.GameSave != null) ((GCGameSave)pokePC.GameSave).RegisterPokemon(pkm); party.Add(pkm); } }
public void AddPokemon(IPokemon pokemon) { pokePC.GameSave.IsChanged = true; IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null); pkm.GameType = GameType; pkm.PokeContainer = this; if (pokePC.GameSave != null) { pokePC.GameSave.OwnPokemon(pkm); } depositedPokemon = pkm as ColosseumPokemon; depositedPokemon = pkm as ColosseumPokemon; DaycareStatus = 1; InitialLevel = 0; InitialPurification = 0; }
public void AddPokemon(IPokemon pokemon) { pokePC.GameSave.IsChanged = true; IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null); pkm.GameType = GameType; pkm.PokeContainer = this; if (pokePC.GameSave != null) pokePC.GameSave.OwnPokemon(pkm); depositedPokemon = pkm as ColosseumPokemon; depositedPokemon = pkm as ColosseumPokemon; DaycareStatus = 1; InitialLevel = 0; InitialPurification = 0; }
public void AddPokemon(IPokemon pokemon) { pokePC.GameSave.IsChanged = true; IPokemon pkm = (pokemon != null ? (pokemon is ColosseumPokemon ? pokemon : pokemon.CreateColosseumPokemon(((GCGameSave)GameSave).CurrentRegion)): null); if (pkm != null) { pkm.PokeContainer = this; if (pokePC.GameSave != null) { ((GCGameSave)pokePC.GameSave).RegisterPokemon(pkm); } party.Add(pkm); } }