More reasonable AI behavior

This commit is contained in:
Anuken
2020-03-21 14:29:00 -04:00
parent 3563c929af
commit 4813d6c8ff
6 changed files with 31 additions and 10 deletions

View File

@@ -9,12 +9,13 @@ import mindustry.type.*;
public class UnitTypes implements ContentList{
//TODO reimplement
public static UnitType
wraith, ghoul, revenant, lich, reaper,
ghoul, revenant, lich, reaper,
crawler, titan, fortress, eruptor, chaosArray, eradicator;
public static @EntityDef({Unitc.class, Legsc.class}) UnitType dagger;
public static @EntityDef({Unitc.class, WaterMovec.class}) UnitType vanguard;
public static @EntityDef({Unitc.class, Minerc.class}) UnitType draug;
public static @EntityDef({Unitc.class}) UnitType wraith;
public static @EntityDef({Unitc.class}) UnitType spirit;
public static @EntityDef({Unitc.class, Builderc.class}) UnitType phantom;
@@ -27,7 +28,7 @@ public class UnitTypes implements ContentList{
public void load(){
dagger = new UnitType("dagger"){{
speed = 1f;
speed = 0.5f;
drag = 0.3f;
hitsize = 8f;
mass = 1.75f;
@@ -41,6 +42,25 @@ public class UnitTypes implements ContentList{
}});
}};
wraith = new UnitType("wraith"){{
speed = 3f;
accel = 0.08f;
drag = 0f;
mass = 1.5f;
flying = true;
health = 75;
engineOffset = 5.5f;
range = 140f;
weapons.add(new Weapon(){{
y = 1.5f;
reload = 28f;
alternate = true;
ejectEffect = Fx.shellEjectSmall;
bullet = Bullets.standardCopper;
shootSound = Sounds.shoot;
}});
}};
vanguard = new UnitType("vanguard"){{
speed = 1.3f;
drag = 0.1f;