private Pokemon CreatePokemon(PokemonModel dataModel, int level) { var saveModel = new PokemonSaveModel(); PopulateSaveModel(dataModel, saveModel, level); var pokemon = new Pokemon(_gameMode, dataModel, saveModel); pokemon.LearnStartupMoves(); if (level > 1) pokemon.LevelUp(true, level); return pokemon; }
private Pokemon CreatePokemon(PokemonModel dataModel, int level) { var saveModel = new PokemonSaveModel(); PopulateSaveModel(dataModel, saveModel, level); var pokemon = new Pokemon(_gameMode, dataModel, saveModel); pokemon.LearnStartupMoves(); if (level > 1) { pokemon.LevelUp(true, level); } return(pokemon); }