private static LearnVersion GetIsLevelUp7(int species, int move, int form, GameVersion ver = Any) { switch (ver) { case GP: case GE: case GG: case GO: return(LearnGG.GetIsLevelUp(species, form, move)); case Any: if (species > MaxSpeciesID_7) { return(LearnNONE); } var first = LearnSM.GetIsLevelUp(species, form, move); if (first.IsLevelUp) { return(first); } if (species > MaxSpeciesID_7_USUM) { return(LearnNONE); } return(LearnUSUM.GetIsLevelUp(species, form, move)); case SN: case MN: case SM: if (species > MaxSpeciesID_7) { return(LearnNONE); } return(LearnSM.GetIsLevelUp(species, form, move)); case US: case UM: case USUM: if (species > MaxSpeciesID_7_USUM) { return(LearnNONE); } return(LearnUSUM.GetIsLevelUp(species, form, move)); } return(LearnNONE); }
private static LearnVersion GetIsLevelUp8(int species, int move, int lvl, int form, GameVersion ver = Any) { switch (ver) { case Any: case SW: case SH: if (species > MaxSpeciesID_8) { return(LearnNONE); } return(LearnSWSH.GetIsLevelUp(species, form, move, lvl)); } return(LearnNONE); }