More intelligent suicide units / Bugfixes

This commit is contained in:
Anuken
2020-06-06 11:36:14 -04:00
parent 1e3a190d5a
commit 0f76aeba05
9 changed files with 144 additions and 54 deletions

View File

@@ -36,7 +36,7 @@ public class Bullets implements ContentList{
waterShot, cryoShot, slagShot, oilShot,
//environment, misc.
fireball, basicFlame, pyraFlame, driverBolt, healBullet, healBulletBig, frag, eruptorShot,
fireball, basicFlame, pyraFlame, driverBolt, healBullet, healBulletBig, frag,
//bombs
bombExplosive, bombIncendiary, bombOil;
@@ -544,13 +544,6 @@ public class Bullets implements ContentList{
drag = 0.03f;
}};
eruptorShot = new LiquidBulletType(Liquids.slag){{
damage = 2;
speed = 2.1f;
drag = 0.02f;
shootEffect = Fx.shootSmall;
}};
oilShot = new LiquidBulletType(Liquids.oil){{
drag = 0.03f;
}};

View File

@@ -125,10 +125,10 @@ public class Fx{
stroke(3f * e.fout());
color(e.color, Color.white, e.fin());
beginLine();
linePoint(e.x, e.y);
beginLine();
lines.each(Lines::linePoint);
linePoint(e.x, e.y);
endLine();
int i = 0;

View File

@@ -119,23 +119,28 @@ public class UnitTypes implements ContentList{
}};
crawler = new UnitType("crawler"){{
defaultController = SuicideAI::new;
speed = 0.8f;
hitsize = 8f;
health = 120;
health = 140;
sway = 0.25f;
range = 40f;
weapons.add(new Weapon(){{
reload = 12f;
shootCone = 180f;
ejectEffect = Fx.none;
shootSound = Sounds.explosion;
bullet = new BombBulletType(2f, 3f, "clear"){{
bullet = new BombBulletType(0f, 0f, "clear"){{
hitEffect = Fx.pulverize;
lifetime = 30f;
speed = 1.1f;
lifetime = 10f;
speed = 1f;
splashDamageRadius = 55f;
instantDisappear = true;
splashDamage = 30f;
killShooter = true;
hittable = false;
}};
}});
}};
@@ -233,10 +238,16 @@ public class UnitTypes implements ContentList{
reload = 10f;
alternate = true;
ejectEffect = Fx.none;
bullet = Bullets.eruptorShot;
recoil = 1f;
x = 7f;
shootSound = Sounds.flame;
bullet = new LiquidBulletType(Liquids.slag){{
damage = 11;
speed = 2.3f;
drag = 0.02f;
shootEffect = Fx.shootSmall;
}};
}});
}};