Esempio n. 1
0
        private static GameVersion GetIsTutor6(PKM pkm, int species, int form, bool specialTutors, int move)
        {
            var pi = PersonalTable.AO.GetFormeEntry(species, form);

            for (int i = 0; i < TypeTutor6.Length; i++)
            {
                if (TypeTutor6[i] == move && pi.TypeTutors[i])
                {
                    return(GameVersion.Gen6);
                }
            }

            if (specialTutors && pkm.HasVisitedORAS())
            {
                for (int i = 0; i < Tutors_AO.Length; i++)
                {
                    for (int j = 0; j < Tutors_AO[i].Length; j++)
                    {
                        if (Tutors_AO[i][j] == move && pi.SpecialTutors[i][j])
                        {
                            return(GameVersion.ORAS);
                        }
                    }
                }
            }

            return(NONE);
        }
Esempio n. 2
0
        private static void AddMovesTutor6(List <int> moves, int species, int form, PKM pkm, bool specialTutors)
        {
            var pi = PersonalTable.AO[species];

            moves.AddRange(TypeTutor6.Where((_, i) => pi.TypeTutors[i]));
            if (specialTutors && pkm.HasVisitedORAS())
            {
                moves.AddRange(GetTutors(PersonalTable.AO.GetFormeEntry(species, form), Tutors_AO));
            }
        }