예제 #1
0
        private int[] GetRandomMoves(int[] Types, int movecount = 4)
        {
            int[] moves = new int[movecount];
            if (Settings.STAB)
            {
                for (int i = 0; i < Settings.STABCount; i++)
                {
                    moves[i] = GetRandomSTABMove(Types);
                }
            }

            for (int i = 0; i < moves.Length; i++) // remainder of moves
            {
                moves[i] = RandMove.Next();
            }
            return(moves);
        }
예제 #2
0
        private bool GetNewSpecies(int currentSpecies, PersonalInfo oldpkm, out int newSpecies)
        {
            newSpecies = RandSpec.Next();
            var pkm = SpeciesStat[newSpecies];

            if (IsSpeciesReplacementBad(newSpecies, currentSpecies)) // no A->A randomization
            {
                return(false);
            }
            return(IsCriteriaMatch(oldpkm, pkm));
        }
예제 #3
0
 public static int GetRandomFirstMoveAny()
 {
     first.Reset();
     return(first.Next());
 }
예제 #4
0
 public int GetRandomSpecies() => RandSpec.Next();