/** Returns the amount of damage a mob should deal. */ public int getAttackStrength(Entity par1Entity) { ItemStack var2 = this.getHeldItem(); int var3 = 4; if (var2 != null) { var3 += var2.getDamageVsEntity(this); } return var3; }
@Override public int getAttackStrength(Entity par1Entity) { ItemStack var2 = this.getHeldItem(); int var3 = TFC_MobDamage.PigZombieDamage; if (var2 != null) { var3 += var2.getDamageVsEntity(this); } return var3; }
/** Returns the amount of damage a mob should deal. */ public int getAttackStrength(Entity par1Entity) { ItemStack itemstack = this.getHeldItem(); float f = (float) (this.getMaxHealth() - this.getHealth()) / (float) this.getMaxHealth(); int i = 3 + MathHelper.floor_float(f * 4.0F); if (itemstack != null) { i += itemstack.getDamageVsEntity(this); } return i; }