mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
Remove flooring of damage as it no longer is useful with the new damage calculation
This commit is contained in:
parent
35778640ba
commit
2ded6bd2fa
2 changed files with 3 additions and 2 deletions
|
@ -244,7 +244,8 @@ public class PotatoCannonItem extends ShootableItem {
|
|||
TextFormatting darkGreen = TextFormatting.DARK_GREEN;
|
||||
|
||||
float damageF = type.getDamage() * additionalDamageMult;
|
||||
IFormattableTextComponent damage = new StringTextComponent("" + MathHelper.floor(damageF));
|
||||
IFormattableTextComponent damage = new StringTextComponent(
|
||||
damageF == MathHelper.floor(damageF) ? "" + MathHelper.floor(damageF) : "" + damageF);
|
||||
IFormattableTextComponent reloadTicks = new StringTextComponent("" + type.getReloadTicks());
|
||||
IFormattableTextComponent knockback =
|
||||
new StringTextComponent("" + (type.getKnockback() + additionalKnockback));
|
||||
|
|
|
@ -176,7 +176,7 @@ public class PotatoProjectileEntity extends DamagingProjectileEntity implements
|
|||
Vector3d hit = ray.getLocation();
|
||||
Entity target = ray.getEntity();
|
||||
PotatoCannonProjectileTypes projectileType = getProjectileType();
|
||||
float damage = MathHelper.floor(projectileType.getDamage() * additionalDamageMult);
|
||||
float damage = projectileType.getDamage() * additionalDamageMult;
|
||||
float knockback = projectileType.getKnockback() + additionalKnockback;
|
||||
Entity owner = this.getOwner();
|
||||
|
||||
|
|
Loading…
Reference in a new issue