From 6188250605dfbf7f39cc7af65e6389ab5f22b373 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 11 Jul 2020 13:20:23 -0400 Subject: [PATCH] Unit tweaks --- core/src/mindustry/content/UnitTypes.java | 11 ++++++----- .../mindustry/entities/bullet/LiquidBulletType.java | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 80ed5f38b5..12880f1780 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -230,9 +230,9 @@ public class UnitTypes implements ContentList{ crawler = new UnitType("crawler"){{ defaultController = SuicideAI::new; - speed = 0.8f; + speed = 0.85f; hitsize = 8f; - health = 140; + health = 170; sway = 0.25f; range = 40f; @@ -247,7 +247,7 @@ public class UnitTypes implements ContentList{ speed = 1f; splashDamageRadius = 55f; instantDisappear = true; - splashDamage = 30f; + splashDamage = 40f; killShooter = true; hittable = false; }}; @@ -255,7 +255,7 @@ public class UnitTypes implements ContentList{ }}; atrax = new UnitType("atrax"){{ - speed = 0.4f; + speed = 0.5f; drag = 0.4f; hitsize = 10f; rotateSpeed = 3f; @@ -278,8 +278,9 @@ public class UnitTypes implements ContentList{ bullet = new LiquidBulletType(Liquids.slag){{ damage = 11; speed = 2.3f; - drag = 0.02f; + drag = 0.01f; shootEffect = Fx.shootSmall; + lifetime = 56f; }}; }}); }}; diff --git a/core/src/mindustry/entities/bullet/LiquidBulletType.java b/core/src/mindustry/entities/bullet/LiquidBulletType.java index accaff23c3..155ed32973 100644 --- a/core/src/mindustry/entities/bullet/LiquidBulletType.java +++ b/core/src/mindustry/entities/bullet/LiquidBulletType.java @@ -14,7 +14,7 @@ import static mindustry.Vars.*; public class LiquidBulletType extends BulletType{ public @NonNull Liquid liquid; - public float puddleSize = 5f; + public float puddleSize = 6f; public LiquidBulletType(@Nullable Liquid liquid){ super(3.5f, 0); @@ -68,7 +68,8 @@ public class LiquidBulletType extends BulletType{ public void despawned(Bullet b){ super.despawned(b); - hit(b, b.x, b.y); + //don't create liquids when the projectile despawns + hitEffect.at(b.x, b.y, liquid.color); } @Override