mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-15 23:56:14 +01:00
Flooring is always done on damage calculation, so add it to the description tooltip too?
This commit is contained in:
parent
64e822626e
commit
35778640ba
1 changed files with 1 additions and 2 deletions
|
@ -244,8 +244,7 @@ public class PotatoCannonItem extends ShootableItem {
|
||||||
TextFormatting darkGreen = TextFormatting.DARK_GREEN;
|
TextFormatting darkGreen = TextFormatting.DARK_GREEN;
|
||||||
|
|
||||||
float damageF = type.getDamage() * additionalDamageMult;
|
float damageF = type.getDamage() * additionalDamageMult;
|
||||||
IFormattableTextComponent damage = new StringTextComponent(
|
IFormattableTextComponent damage = new StringTextComponent("" + MathHelper.floor(damageF));
|
||||||
damageF == MathHelper.floor(damageF) ? "" + MathHelper.floor(damageF) : "" + damageF);
|
|
||||||
IFormattableTextComponent reloadTicks = new StringTextComponent("" + type.getReloadTicks());
|
IFormattableTextComponent reloadTicks = new StringTextComponent("" + type.getReloadTicks());
|
||||||
IFormattableTextComponent knockback =
|
IFormattableTextComponent knockback =
|
||||||
new StringTextComponent("" + (type.getKnockback() + additionalKnockback));
|
new StringTextComponent("" + (type.getKnockback() + additionalKnockback));
|
||||||
|
|
Loading…
Reference in a new issue