Toxopid cannon rotation limit
This commit is contained in:
@@ -907,6 +907,8 @@ public class UnitTypes{
|
|||||||
rotate = true;
|
rotate = true;
|
||||||
shadow = 30f;
|
shadow = 30f;
|
||||||
|
|
||||||
|
rotationLimit = 80f;
|
||||||
|
|
||||||
bullet = new ArtilleryBulletType(3f, 50){{
|
bullet = new ArtilleryBulletType(3f, 50){{
|
||||||
hitEffect = Fx.sapExplosion;
|
hitEffect = Fx.sapExplosion;
|
||||||
knockback = 0.8f;
|
knockback = 0.8f;
|
||||||
@@ -2529,7 +2531,7 @@ public class UnitTypes{
|
|||||||
y = 5 / 4f;
|
y = 5 / 4f;
|
||||||
rotate = true;
|
rotate = true;
|
||||||
rotateSpeed = 2f;
|
rotateSpeed = 2f;
|
||||||
reload = 60f;
|
reload = 70f;
|
||||||
layerOffset = -0.001f;
|
layerOffset = -0.001f;
|
||||||
recoil = 1f;
|
recoil = 1f;
|
||||||
rotationLimit = 60f;
|
rotationLimit = 60f;
|
||||||
@@ -2541,18 +2543,23 @@ public class UnitTypes{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
unitSpawned = new MissileUnitType("quell-missile"){{
|
unitSpawned = new MissileUnitType("quell-missile"){{
|
||||||
speed = 4f;
|
speed = 3.8f;
|
||||||
maxRange = 80f;
|
maxRange = 80f;
|
||||||
|
outlineColor = Pal.darkOutline;
|
||||||
|
health = 45;
|
||||||
|
|
||||||
weapons.add(new Weapon(){{
|
weapons.add(new Weapon(){{
|
||||||
|
shootCone = 360f;
|
||||||
|
mirror = false;
|
||||||
|
reload = 1f;
|
||||||
shootOnDeath = true;
|
shootOnDeath = true;
|
||||||
bullet = new BulletType(){{
|
bullet = new BulletType(){{
|
||||||
rangeOverride = 20f;
|
rangeOverride = 20f;
|
||||||
despawnEffect = Fx.blastExplosion;
|
shootEffect = Fx.massiveExplosion;
|
||||||
killShooter = true;
|
killShooter = true;
|
||||||
//TODO status?
|
//TODO status?
|
||||||
splashDamageRadius = 60f;
|
splashDamageRadius = 40f;
|
||||||
splashDamage = 230f;
|
splashDamage = 120f;
|
||||||
}};
|
}};
|
||||||
}});
|
}});
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ public class ContentParser{
|
|||||||
|
|
||||||
if(locate(ContentType.block, name) != null){
|
if(locate(ContentType.block, name) != null){
|
||||||
if(value.has("type")){
|
if(value.has("type")){
|
||||||
Log.warn("Warning: '" + name + "' re-declares a type. This will be interpreted as a new block. If you wish to override a vanilla block, omit the 'type' section, as vanilla block `type`s cannot be changed.");
|
Log.warn("Warning: '" + currentMod.name + "-" + name + "' re-declares a type. This will be interpreted as a new block. If you wish to override a vanilla block, omit the 'type' section, as vanilla block `type`s cannot be changed.");
|
||||||
block = make(resolve(value.getString("type", ""), Block.class), mod + "-" + name);
|
block = make(resolve(value.getString("type", ""), Block.class), mod + "-" + name);
|
||||||
}else{
|
}else{
|
||||||
block = locate(ContentType.block, name);
|
block = locate(ContentType.block, name);
|
||||||
|
|||||||
Reference in New Issue
Block a user