Unit tweaks

This commit is contained in:
Anuken
2020-07-11 13:20:23 -04:00
parent 064172e1f1
commit 6188250605
2 changed files with 9 additions and 7 deletions

View File

@@ -230,9 +230,9 @@ public class UnitTypes implements ContentList{
crawler = new UnitType("crawler"){{ crawler = new UnitType("crawler"){{
defaultController = SuicideAI::new; defaultController = SuicideAI::new;
speed = 0.8f; speed = 0.85f;
hitsize = 8f; hitsize = 8f;
health = 140; health = 170;
sway = 0.25f; sway = 0.25f;
range = 40f; range = 40f;
@@ -247,7 +247,7 @@ public class UnitTypes implements ContentList{
speed = 1f; speed = 1f;
splashDamageRadius = 55f; splashDamageRadius = 55f;
instantDisappear = true; instantDisappear = true;
splashDamage = 30f; splashDamage = 40f;
killShooter = true; killShooter = true;
hittable = false; hittable = false;
}}; }};
@@ -255,7 +255,7 @@ public class UnitTypes implements ContentList{
}}; }};
atrax = new UnitType("atrax"){{ atrax = new UnitType("atrax"){{
speed = 0.4f; speed = 0.5f;
drag = 0.4f; drag = 0.4f;
hitsize = 10f; hitsize = 10f;
rotateSpeed = 3f; rotateSpeed = 3f;
@@ -278,8 +278,9 @@ public class UnitTypes implements ContentList{
bullet = new LiquidBulletType(Liquids.slag){{ bullet = new LiquidBulletType(Liquids.slag){{
damage = 11; damage = 11;
speed = 2.3f; speed = 2.3f;
drag = 0.02f; drag = 0.01f;
shootEffect = Fx.shootSmall; shootEffect = Fx.shootSmall;
lifetime = 56f;
}}; }};
}}); }});
}}; }};

View File

@@ -14,7 +14,7 @@ import static mindustry.Vars.*;
public class LiquidBulletType extends BulletType{ public class LiquidBulletType extends BulletType{
public @NonNull Liquid liquid; public @NonNull Liquid liquid;
public float puddleSize = 5f; public float puddleSize = 6f;
public LiquidBulletType(@Nullable Liquid liquid){ public LiquidBulletType(@Nullable Liquid liquid){
super(3.5f, 0); super(3.5f, 0);
@@ -68,7 +68,8 @@ public class LiquidBulletType extends BulletType{
public void despawned(Bullet b){ public void despawned(Bullet b){
super.despawned(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 @Override