Exemplo n.º 1
0
 public static double getBallBonus(
     EnumPokeballs type, EntityLiving thrower, EntityPixelmon p2, Mode mode) {
   double ballBonus = type.getBallBonus();
   for (CaptureBase c : captureList)
     if (c.pokeball == type) return c.getBallBonus(type, (EntityPlayer) thrower, p2, mode);
   return ballBonus;
 }
Exemplo n.º 2
0
 public static int modifyCaptureRate(EnumPokeballs type, String pokemonName, int captureRate) {
   for (CaptureBase c : captureList)
     if (c.pokeball == type) return c.modifyCaptureRate(pokemonName, captureRate);
   return captureRate;
 }
Exemplo n.º 3
0
 public static void doAfterEffect(EnumPokeballs type, EntityPixelmon p2) {
   for (CaptureBase c : captureList) if (c.pokeball == type) c.doAfterEffect(type, p2);
 }