예제 #1
0
 @Override
 public Attack getMove() {
   return Attack.getWhichMoveIsBest(
       trainer.releasedPokemon.moveset,
       opponent.currentPokemon().type,
       trainer.releasedPokemon,
       opponent.currentPokemon());
 }
예제 #2
0
  @Override
  public boolean ApplyEffect(
      EntityPixelmon user,
      EntityPixelmon target,
      Attack a,
      ArrayList<String> attackList,
      ArrayList<String> targetAttackList) {

    int i =
        (int) (DatabaseStats.getWeight(target.getName()) / DatabaseStats.getWeight(user.getName()));

    if (i <= 20) a.basePower = 120;
    else if (i > 20 && i <= 25) a.basePower = 100;
    else if (i > 25 && i <= (100 / 3)) a.basePower = 80;
    else if (i > (100 / 3) && i >= 50) a.basePower = 60;
    else if (i > 50) a.basePower = 40;

    return false;
  }