mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Toxopid cannon rotation limit
This commit is contained in:
parent
e14dd00019
commit
f91619e5da
2 changed files with 13 additions and 6 deletions
|
|
@ -907,6 +907,8 @@ public class UnitTypes{
|
|||
rotate = true;
|
||||
shadow = 30f;
|
||||
|
||||
rotationLimit = 80f;
|
||||
|
||||
bullet = new ArtilleryBulletType(3f, 50){{
|
||||
hitEffect = Fx.sapExplosion;
|
||||
knockback = 0.8f;
|
||||
|
|
@ -2529,7 +2531,7 @@ public class UnitTypes{
|
|||
y = 5 / 4f;
|
||||
rotate = true;
|
||||
rotateSpeed = 2f;
|
||||
reload = 60f;
|
||||
reload = 70f;
|
||||
layerOffset = -0.001f;
|
||||
recoil = 1f;
|
||||
rotationLimit = 60f;
|
||||
|
|
@ -2541,18 +2543,23 @@ public class UnitTypes{
|
|||
}};
|
||||
|
||||
unitSpawned = new MissileUnitType("quell-missile"){{
|
||||
speed = 4f;
|
||||
speed = 3.8f;
|
||||
maxRange = 80f;
|
||||
outlineColor = Pal.darkOutline;
|
||||
health = 45;
|
||||
|
||||
weapons.add(new Weapon(){{
|
||||
shootCone = 360f;
|
||||
mirror = false;
|
||||
reload = 1f;
|
||||
shootOnDeath = true;
|
||||
bullet = new BulletType(){{
|
||||
rangeOverride = 20f;
|
||||
despawnEffect = Fx.blastExplosion;
|
||||
shootEffect = Fx.massiveExplosion;
|
||||
killShooter = true;
|
||||
//TODO status?
|
||||
splashDamageRadius = 60f;
|
||||
splashDamage = 230f;
|
||||
splashDamageRadius = 40f;
|
||||
splashDamage = 120f;
|
||||
}};
|
||||
}});
|
||||
}};
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ public class ContentParser{
|
|||
|
||||
if(locate(ContentType.block, name) != null){
|
||||
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);
|
||||
}else{
|
||||
block = locate(ContentType.block, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue