예제 #1
0
 private int[] SetEncounterMoves(PKM pk, GameVersion version)
 {
     int[] moves = GetCurrentEggMoves(pk, version);
     pk.Moves = moves;
     pk.SetMaximumPPCurrent(moves);
     return(moves);
 }
예제 #2
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);
        }
예제 #3
0
        /// <summary>
        /// Sets the individual PP Up count values depending if a Move is present in the move's slot or not.
        /// </summary>
        /// <param name="pk">Pokémon to modify.</param>
        /// <param name="moves"><see cref="PKM.Moves"/> to use (if already known). Will fetch the current <see cref="PKM.Moves"/> if not provided.</param>
        public static void SetMaximumPPUps(this PKM pk, int[] moves)
        {
            pk.Move1_PPUps = GetPPUpCount(moves[0]);
            pk.Move2_PPUps = GetPPUpCount(moves[1]);
            pk.Move3_PPUps = GetPPUpCount(moves[2]);
            pk.Move4_PPUps = GetPPUpCount(moves[3]);

            pk.SetMaximumPPCurrent(moves);