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); }
/// <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); }
/// <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); }