From 393694aa7d8c664f66a8cf3740ee807c281d1ed3 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 6 Feb 2025 16:58:40 -0500 Subject: [PATCH] Cleanup --- core/src/mindustry/world/meta/StatValues.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/world/meta/StatValues.java b/core/src/mindustry/world/meta/StatValues.java index 917dfd4f70..8b2c98db0d 100644 --- a/core/src/mindustry/world/meta/StatValues.java +++ b/core/src/mindustry/world/meta/StatValues.java @@ -636,8 +636,7 @@ public class StatValues{ } if(type.buildingDamageMultiplier != 1){ - int val = (int)(type.buildingDamageMultiplier * 100 - 100); - sep(bt, Core.bundle.format("bullet.buildingdamage", ammoStat(val))); + sep(bt, Core.bundle.format("bullet.buildingdamage", ammoStat((int)(type.buildingDamageMultiplier * 100 - 100)))); } if(type.rangeChange != 0 && !compact){ @@ -645,7 +644,7 @@ public class StatValues{ } if(type.shieldDamageMultiplier != 1){ - sep(bt, Core.bundle.format("bullet.shielddamage", (int)(type.shieldDamageMultiplier * 100))); + sep(bt, Core.bundle.format("bullet.shielddamage", ammoStat((int)(type.shieldDamageMultiplier * 100 - 100)))); } if(type.splashDamage > 0){