Exemple #1
0
        private void SetEncounterMoves(PKM pk, GameVersion version, int level)
        {
            var moves = Moves.Count > 0 ? Moves : MoveLevelUp.GetEncounterMoves(pk, level, version);

            pk.SetMoves(moves);
            pk.SetMaximumPPCurrent(moves);
        }
Exemple #2
0
 /// <summary>
 /// Sets the provided moves in a random order.
 /// </summary>
 /// <param name="pk">Pokémon to modify.</param>
 /// <param name="moves">Moves to apply.</param>
 public static ModifyResult SetMoves(PKM pk, Span <int> moves)
 {
     pk.SetMoves(moves);
     pk.HealPP();
     return(ModifyResult.Modified);
 }
Exemple #3
0
 /// <summary>
 /// Sets the provided moves in a random order.
 /// </summary>
 /// <param name="pkm">Pokémon to modify.</param>
 /// <param name="moves">Moves to apply.</param>
 private static ModifyResult SetMoves(PKM pkm, int[] moves)
 {
     pkm.SetMoves(moves);
     return(ModifyResult.Modified);
 }