コード例 #1
0
        private static List <int> AddMovesLevelUp7(List <int> moves, GameVersion ver, int species, int max, int form, bool MoveReminder)
        {
            if (MoveReminder)
            {
                max = 100; // Move reminder can teach any level in movepool now!
            }
            switch (ver)
            {
            case GP:
            case GE:
            case GG:
            case GO:
                return(LearnGG.AddMoves(moves, species, form, max));

            case Any:
                if (species > MaxSpeciesID_7_USUM)
                {
                    return(moves);
                }
                LearnUSUM.AddMoves(moves, species, form, max);
                if (species > MaxSpeciesID_7)
                {
                    return(moves);
                }
                return(LearnSM.AddMoves(moves, species, form, max));

            case SN:
            case MN:
            case SM:
                if (species > MaxSpeciesID_7)
                {
                    return(moves);
                }
                return(LearnSM.AddMoves(moves, species, form, max));

            case US:
            case UM:
            case USUM:
                if (species > MaxSpeciesID_7_USUM)
                {
                    return(moves);
                }
                LearnUSUM.AddMoves(moves, species, form, max);
                break;
            }
            return(moves);
        }
コード例 #2
0
        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_USUM)
                {
                    return(LearnNONE);
                }
                var first = LearnUSUM.GetIsLevelUp(species, form, move);
                if (first.IsLevelUp)
                {
                    return(first);
                }
                if (species > MaxSpeciesID_7)
                {
                    return(LearnNONE);
                }
                return(LearnSM.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);
        }