Example #1
0
        private static LearnVersion GetIsLevelUp5(int species, int move, int lvl, int form, GameVersion ver = Any)
        {
            switch (ver)
            {
            case Any:
                var first = LearnBW.GetIsLevelUp(species, form, move, lvl);
                if (first.IsLevelUp && species != 646)      // Kyurem moves are same for both versions, but forme movepool not present.
                {
                    return(first);
                }
                return(LearnB2W2.GetIsLevelUp(species, form, move, lvl));

            case B:
            case W:
            case BW:
                return(LearnBW.GetIsLevelUp(species, form, move, lvl));

            case B2:
            case W2:
            case B2W2:
                return(LearnB2W2.GetIsLevelUp(species, form, move, lvl));
            }
            return(LearnNONE);
        }
Example #2
0
        private static LearnVersion GetIsLevelUp5(int species, int form, int move, int lvl, GameVersion ver = Any)
        {
            switch (ver)
            {
            case Any:
                var first = LearnBW.GetIsLevelUp(species, form, move, lvl);
                if (first.IsLevelUp)
                {
                    return(first);
                }
                return(LearnB2W2.GetIsLevelUp(species, form, move, lvl));

            case B:
            case W:
            case BW:
                return(LearnBW.GetIsLevelUp(species, form, move, lvl));

            case B2:
            case W2:
            case B2W2:
                return(LearnB2W2.GetIsLevelUp(species, form, move, lvl));
            }
            return(LearnNONE);
        }