示例#1
0
 @Override
 protected void donarEfectesInicials(Player ply) {
   // TODO Auto-generated method stub
   super.donarEfectesInicials(ply);
   double m = getBalancingMultiplier(obtenirEquip(ply));
   ply.addPotionEffect(
       new PotionEffect(PotionEffectType.ABSORPTION, (int) (30 * 10 * (m - 0.5)), 5, true), true);
   ply.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 20 * 3, 1, true), true);
   ply.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 20 * 30, 0, true), true);
   ply.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 20 * 5, 3, true), true);
   ply.addPotionEffect(
       new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, (int) (20 * 19 * m), 1, true), true);
 }