Package org.jpokemon.pokemon

Examples of org.jpokemon.pokemon.Pokemon.level()


    if (_move.style() == MoveStyle.DELAYBEFORE && _executions != _move.turns()) {
      battle().log(slot().trainer().id() + "'s " + slot().leader().name() + " is resting this turn");
      return;
    }
    if (_move.style() == MoveStyle.OHKO) {
      int levelDiff = leader.level() - target().leader().level();

      if (levelDiff < 0 || (levelDiff + 30.0) / 100.0 <= Math.random()) {
        battle().log(leader.name() + " tried to use " + _move.name() + ", but it missed");
        return;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.