Ejemplo n.º 1
0
        public static LearnVersion GetIsLevelUp1(int species, int move, int max, int form, int min, GameVersion ver = Any)
        {
            if (move > MaxMoveID_1)
            {
                return(LearnNONE);
            }

            switch (ver)
            {
            case Any:
            case RBY:
                var first  = LearnRB.GetIsLevelUpG1(species, form, move, max, min);
                var second = LearnY.GetIsLevelUpG1(species, form, move, max, min);
                if (!first.IsLevelUp)
                {
                    return(second);
                }
                if (!second.IsLevelUp)
                {
                    return(first);
                }
                return(first.Level > second.Level ? second : first);

            case RD:
            case BU:
            case GN:
            case RB:
                return(LearnRB.GetIsLevelUpG1(species, form, move, max, min));

            case YW:
                return(LearnY.GetIsLevelUpG1(species, form, move, max, min));
            }

            return(LearnNONE);
        }
        private static List <int> AddMovesLevelUp1(List <int> moves, GameVersion ver, int species, int form, int max, int min)
        {
            switch (ver)
            {
            case Any:
            case RBY:
                LearnRB.AddMoves1(moves, species, form, max, min);
                return(LearnY.AddMoves1(moves, species, form, max, min));

            case RD:
            case BU:
            case GN:
            case RB:
                return(LearnRB.AddMoves1(moves, species, form, max, min));

            case YW:
                return(LearnY.AddMoves1(moves, species, form, max, min));
            }
            return(moves);
        }