From d66d7e09e3a2a8df8be198972265b88c461e0f18 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 31 Mar 2021 13:28:08 -0400 Subject: [PATCH] Explosion damage tweaks --- core/src/mindustry/entities/Damage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/Damage.java b/core/src/mindustry/entities/Damage.java index 975c5bcbf2..399f9e664a 100644 --- a/core/src/mindustry/entities/Damage.java +++ b/core/src/mindustry/entities/Damage.java @@ -48,12 +48,12 @@ public class Damage{ } } - int waves = Mathf.clamp((int)(explosiveness / 4), 0, 30); + int waves = explosiveness <= 2 ? 0 : Mathf.clamp((int)(explosiveness / 11), 1, 25); for(int i = 0; i < waves; i++){ int f = i; Time.run(i * 2f, () -> { - Damage.damage(ignoreTeam, x, y, Mathf.clamp(radius + explosiveness, 0, 50f) * ((f + 1f) / waves), explosiveness / 2f, false); + damage(ignoreTeam, x, y, Mathf.clamp(radius + explosiveness, 0, 50f) * ((f + 1f) / waves), explosiveness / 2f, false); Fx.blockExplosionSmoke.at(x + Mathf.range(radius), y + Mathf.range(radius)); }); }