turret status fix
This commit is contained in:
@@ -3848,6 +3848,7 @@ public class UnitTypes{
|
|||||||
armor = 9f;
|
armor = 9f;
|
||||||
hitSize = 46f;
|
hitSize = 46f;
|
||||||
payloadCapacity = Mathf.sqr(6f) * tilePayload;
|
payloadCapacity = Mathf.sqr(6f) * tilePayload;
|
||||||
|
targetAir = false;
|
||||||
|
|
||||||
engineSize = 6f;
|
engineSize = 6f;
|
||||||
engineOffset = 25.25f;
|
engineOffset = 25.25f;
|
||||||
@@ -3913,8 +3914,10 @@ public class UnitTypes{
|
|||||||
shake = 1f;
|
shake = 1f;
|
||||||
speed = 0f;
|
speed = 0f;
|
||||||
keepVelocity = false;
|
keepVelocity = false;
|
||||||
|
collidesAir = false;
|
||||||
|
|
||||||
spawnUnit = new MissileUnitType("disrupt-missile"){{
|
spawnUnit = new MissileUnitType("disrupt-missile"){{
|
||||||
|
targetAir = false;
|
||||||
speed = 4.6f;
|
speed = 4.6f;
|
||||||
maxRange = 5f;
|
maxRange = 5f;
|
||||||
outlineColor = Pal.darkOutline;
|
outlineColor = Pal.darkOutline;
|
||||||
@@ -3953,6 +3956,7 @@ public class UnitTypes{
|
|||||||
reload = 1f;
|
reload = 1f;
|
||||||
shootOnDeath = true;
|
shootOnDeath = true;
|
||||||
bullet = new ExplosionBulletType(140f, 25f){{
|
bullet = new ExplosionBulletType(140f, 25f){{
|
||||||
|
collidesAir = false;
|
||||||
suppressionRange = 140f;
|
suppressionRange = 140f;
|
||||||
shootEffect = new ExplosionEffect(){{
|
shootEffect = new ExplosionEffect(){{
|
||||||
lifetime = 50f;
|
lifetime = 50f;
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ public class RepairTurret extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockStatus status(){
|
public BlockStatus status(){
|
||||||
return Mathf.equal(efficiency, 0f, 0.01f) ? BlockStatus.noInput : super.status();
|
return Mathf.equal(potentialEfficiency, 0f, 0.01f) ? BlockStatus.noInput : super.status();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user