LevelUp() public method

Does level up progress for this Pokémon.
public LevelUp ( bool learnRandomMove, int levels = 1 ) : void
learnRandomMove bool
levels int
return void
Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }