Package org.pokenet.server.battle.mechanics.moves

Examples of org.pokenet.server.battle.mechanics.moves.StatusMove


            move.setPower((int)((double)move.getPower() / 2.0));
        } else if (name.equals("Weather Ball")) {
            move.setPower(100);
            move.setType(PokemonType.T_WATER);
        } else if (name.equals("Moonlight") || name.equals("Morning Sun") || name.equals("Synthesis")) {
            StatusMove statusMove = (StatusMove)move;
            // Assume that the first effect is the PercentEffect!
            PercentEffect perc = (PercentEffect)statusMove.getEffects()[0];
            perc.setPercent(1.0/3.0);
        } else if (name.equals("Solar Beam")) {
            if (move instanceof StatusMove) {
                StatusMove statusMove = (StatusMove)move;
                ChargeEffect charge = (ChargeEffect)statusMove.getEffects()[0];
                charge.setTurns(2);
            }
        } else if (name.equals("Thunder")) {
            return new MoveListEntry("Thunder", new StatusMove(
                PokemonType.T_ELECTRIC, 120, 0.7, 10, new StatusEffect[] {
                    new ParalysisEffect()
                    },
                new boolean[] { false },
                new double[] { 0.3 }
View Full Code Here


       
        PokemonMove move = entry.getMove();
        String name = entry.getName();
        if (name.equals("Solarbeam")) {
            if (move instanceof StatusMove) {
                StatusMove statusMove = (StatusMove)move;
                ChargeEffect charge = (ChargeEffect)statusMove.getEffects()[0];
                charge.getMove().getMove().setPower(60);
            }
        } else if (name.equals("Weather Ball")) {
            move.setPower(100);
            move.setType(PokemonType.T_ICE);
        } else if (name.equals("Moonlight") || name.equals("Morning Sun") || name.equals("Synthesis")) {
            StatusMove statusMove = (StatusMove)move;
            // Assume that the first effect is the PercentEffect!
            PercentEffect perc = (PercentEffect)statusMove.getEffects()[0];
            perc.setPercent(1.0/3.0);
        } else if (name.equals("Blizzard")) {
            if (poke.getField().getMechanics() instanceof JewelMechanics)  {
                return new MoveListEntry("Blizzard", new StatusMove(
                    PokemonType.T_ICE, 120, 0.7, 5, new StatusEffect[] {
                        new FreezeEffect()
                        },
                    new boolean[] { false },
                    new double[] { 0.1 }
View Full Code Here

            move.setPower((int)((double)move.getPower() * 1.5));
        } else if (type.equals(PokemonType.T_WATER)) {
            move.setPower((int)((double)move.getPower() / 2.0));
        } else if (name.equals("Solarbeam")) {
            if (move instanceof StatusMove) {
                StatusMove statusMove = (StatusMove)move;
                // Assume that the first effect is the ChargeEffect!
                ChargeEffect charge = (ChargeEffect)statusMove.getEffects()[0];
                charge.setTurns(0);
            }
        } else if (name.equals("Thunder")) {
            move.setAccuracy(0.5);
        } else if (name.equals("Weather Ball")) {
            move.setPower(100);
            move.setType(PokemonType.T_FIRE);
        } else if (name.equals("Moonlight") || name.equals("Morning Sun") || name.equals("Synthesis")) {
            StatusMove statusMove = (StatusMove)move;
            // Assume that the first effect is the PercentEffect!
            PercentEffect perc = (PercentEffect)statusMove.getEffects()[0];
            perc.setPercent(2.0/3.0);
        }
       
        return entry;
    }
View Full Code Here

        if (name.equals("Weather Ball")) {
            move.setType(PokemonType.T_ROCK);
            move.setPower(100);
        } else if (name.equals("Solarbeam")) {
            if (move instanceof StatusMove) {
                StatusMove statusMove = (StatusMove)move;
                ChargeEffect charge = (ChargeEffect)statusMove.getEffects()[0];
                charge.getMove().getMove().setPower(60);
            }
        } else if (name.equals("Moonlight") || name.equals("Morning Sun") || name.equals("Synthesis")) {
            StatusMove statusMove = (StatusMove)move;
            // Assume that the first effect is the PercentEffect!
            PercentEffect perc = (PercentEffect)statusMove.getEffects()[0];
            perc.setPercent(1.0/3.0);
        }
        return entry;
    }
View Full Code Here

TOP

Related Classes of org.pokenet.server.battle.mechanics.moves.StatusMove

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.