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); }
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)); }
public static int GetRandomFirstMoveAny() { first.Reset(); return(first.Next()); }
public int GetRandomSpecies() => RandSpec.Next();