private static List <int> AddMovesLevelUp4(List <int> moves, GameVersion ver, int species, int max, int form)
        {
            switch (ver)
            {
            case Any:
            case DPPt:
                LearnDP.AddMoves(moves, species, form, max);
                LearnPt.AddMoves(moves, species, form, max);
                if (ver == DPPt)     // stop here
                {
                    return(moves);
                }
                return(LearnHGSS.AddMoves(moves, species, form, max));

            case D:
            case P:
            case DP:
                return(LearnDP.AddMoves(moves, species, form, max));

            case Pt:
                return(LearnPt.AddMoves(moves, species, form, max));

            case HG:
            case SS:
            case HGSS:
                return(LearnHGSS.AddMoves(moves, species, form, max));
            }
            return(moves);
        }
예제 #2
0
        private static LearnVersion GetIsLevelUp4(int species, int move, int lvl, int form, GameVersion ver = Any)
        {
            switch (ver)
            {
            case Any:
            case DPPt:
                var first = LearnDP.GetIsLevelUp(species, form, move, lvl);
                if (first.IsLevelUp)
                {
                    return(first);
                }
                var second = LearnPt.GetIsLevelUp(species, form, move, lvl);
                if (second.IsLevelUp)
                {
                    return(second);
                }
                if (ver == DPPt)     // stop here
                {
                    return(LearnNONE);
                }
                return(LearnHGSS.GetIsLevelUp(species, form, move, lvl));

            case D:
            case P:
            case DP:
                return(LearnDP.GetIsLevelUp(species, form, move, lvl));

            case Pt:
                return(LearnPt.GetIsLevelUp(species, form, move, lvl));

            case HG:
            case SS:
            case HGSS:
                return(LearnHGSS.GetIsLevelUp(species, form, move, lvl));
            }
            return(LearnNONE);
        }