New artillery turret bullet patterns

This commit is contained in:
Anuken
2018-09-08 13:43:25 -04:00
parent e98457c540
commit 778069c15d
18 changed files with 887 additions and 816 deletions

View File

@@ -8,7 +8,7 @@ import io.anuke.mindustry.game.ContentList;
import io.anuke.mindustry.type.ContentType;
public class UnitTypes implements ContentList{
public static UnitType drone, alphaDrone, dagger, interceptor, monsoon, titan, fabricator;
public static UnitType drone, alphaDrone, dagger, interceptor, monsoon, titan, fortress, fabricator;
@Override
public void load(){
@@ -58,6 +58,15 @@ public class UnitTypes implements ContentList{
health = 500;
}};
fortress = new UnitType("fortress", Fortress.class, Fortress::new){{
maxVelocity = 0.8f;
speed = 0.18f;
drag = 0.4f;
range = 10f;
weapon = Weapons.flamethrower;
health = 500;
}};
interceptor = new UnitType("interceptor", Interceptor.class, Interceptor::new){{
speed = 0.3f;
maxVelocity = 1.9f;

View File

@@ -107,6 +107,8 @@ public class TurretBlocks extends BlockList implements ContentList{
shootType = AmmoTypes.arc;
reload = 30f;
shootShake = 1f;
powerUsed = 5f;
powerCapacity = 30f;
range = 60f;
shootEffect = ShootFx.lightningShoot;
heatColor = Color.RED;

View File

@@ -247,7 +247,7 @@ public class TurretBullets extends BulletList implements ContentList{
}
};
arc = new BulletType(0.001f, 11){
arc = new BulletType(0.001f, 7){
{
lifetime = 1;
despawneffect = Fx.none;