Ejemplo n.º 1
0
        private static IEnumerable <int> getTutorMoves(int species, int formnum)
        {
            PersonalInfo pkAO = PersonalAO[PersonalAO[species].FormeIndex(species, formnum)];

            // Type Tutor
            List <int> moves = TypeTutor.Where((t, i) => pkAO.Tutors[i]).ToList();

            // Varied Tutors
            for (int i = 0; i < Tutors_AO.Length; i++)
            {
                for (int b = 0; b < Tutors_AO[i].Length; b++)
                {
                    if (pkAO.ORASTutors[i][b])
                    {
                        moves.Add(Tutors_AO[i][b]);
                    }
                }
            }

            // Keldeo - Secret Sword
            if (species == 647)
            {
                moves.Add(548);
            }
            return(moves);
        }
Ejemplo n.º 2
0
        private static IEnumerable <int> getTutorMoves(int species, int formnum, bool ORASTutors)
        {
            PersonalInfo pkAO = PersonalTable.AO.getFormeEntry(species, formnum);

            // Type Tutor
            List <int> moves = TypeTutor.Where((t, i) => pkAO.TypeTutors[i]).ToList();

            // Varied Tutors
            if (ORASTutors)
            {
                for (int i = 0; i < Tutors_AO.Length; i++)
                {
                    for (int b = 0; b < Tutors_AO[i].Length; b++)
                    {
                        if (pkAO.SpecialTutors[i][b])
                        {
                            moves.Add(Tutors_AO[i][b]);
                        }
                    }
                }
            }

            // Keldeo - Secret Sword
            if (species == 647)
            {
                moves.Add(548);
            }
            return(moves);
        }
Ejemplo n.º 3
0
        private static IEnumerable <int> getTutorMoves(PKM pkm, int species, int form, bool Tutors)
        {
            PersonalInfo info = pkm.PersonalInfo;
            // Type Tutor
            List <int> moves = TypeTutor.Where((t, i) => info.TypeTutors[i]).ToList();

            // Varied Tutors
            //if (pkm.InhabitedGeneration(5) && Tutors)
            //{
            //    //PersonalInfo pi = PersonalTable.B2W2.getFormeEntry(species, form);
            //    //for (int i = 0; i < Tutors_B2W2.Length; i++)
            //    //    for (int b = 0; b < Tutors_B2W2[i].Length; b++)
            //    //        if (pi.SpecialTutors[i][b])
            //    //            moves.Add(Tutors_B2W2[i][b]);
            //}
            if (pkm.InhabitedGeneration(6) && Tutors)
            {
                PersonalInfo pi = PersonalTable.AO.getFormeEntry(species, form);
                for (int i = 0; i < Tutors_AO.Length; i++)
                {
                    for (int b = 0; b < Tutors_AO[i].Length; b++)
                    {
                        if (pi.SpecialTutors[i][b])
                        {
                            moves.Add(Tutors_AO[i][b]);
                        }
                    }
                }
            }
            //if (pkm.InhabitedGeneration(7) && Tutors)
            //{
            //    //PersonalInfo pi = PersonalTable.SM.getFormeEntry(species, form);
            //    //for (int i = 0; i < Tutors_SM.Length; i++)
            //    //    for (int b = 0; b < Tutors_SM[i].Length; b++)
            //    //        if (pi.SpecialTutors[i][b])
            //    //            moves.Add(Tutors_SM[i][b]);
            //}

            // Keldeo - Secret Sword
            if (species == 647)
            {
                moves.Add(548);
            }
            return(moves.Distinct());
        }
Ejemplo n.º 4
0
        private static int[] getTutorMoves(int species)
        {
            PersonalInfo pkAO = PersonalAO[species];

            // Type Tutor
            List <int> moves = TypeTutor.Where((t, i) => pkAO.Tutors[i]).ToList();

            // Varied Tutors
            for (int i = 0; i < Tutors_AO.Length; i++)
            {
                for (int b = 0; b < Tutors_AO[i].Length; b++)
                {
                    if (pkAO.ORASTutors[i][b])
                    {
                        moves.Add(Tutors_AO[i][b]);
                    }
                }
            }

            return(moves.ToArray());
        }