private static GameVersion GetIsTutor7(PKM pkm, int species, int form, bool specialTutors, int move) { var pi = PersonalTable.USUM.GetFormeEntry(species, form); for (int i = 0; i < TypeTutor6.Length; i++) { if (TypeTutor6[i] == move && pi.TypeTutors[i]) { return(GameVersion.Gen7); } } if (specialTutors && pkm.HasVisitedUSUM()) { for (int i = 0; i < Tutors_USUM.Length; i++) { if (Tutors_USUM[i] == move && pi.SpecialTutors[0][i]) { return(GameVersion.USUM); } } } return(NONE); }
private static void AddMovesTutor7(List <int> moves, int species, int form, PKM pkm, bool specialTutors) { var pi = PersonalTable.USUM.GetFormeEntry(species, form); moves.AddRange(TypeTutor6.Where((_, i) => pi.TypeTutors[i])); if (specialTutors && pkm.HasVisitedUSUM()) { moves.AddRange(GetTutors(PersonalTable.USUM.GetFormeEntry(species, form), Tutors_USUM)); } }