Fixed turrets firing without power as players
This commit is contained in:
@@ -1731,7 +1731,7 @@ public class Blocks implements ContentList{
|
||||
health = 150 * size * size;
|
||||
consumes.add(new ConsumeLiquidFilter(liquid -> liquid.temperature <= 0.5f && liquid.flammability < 0.1f, 2f)).update(false).optional(true, true);
|
||||
|
||||
consumes.powerCond(10f, (TurretBuild entity) -> entity.target != null || (entity.logicControlled() && entity.logicShooting));
|
||||
consumes.powerCond(10f, TurretBuild::isActive);
|
||||
}};
|
||||
|
||||
spectre = new ItemTurret("spectre"){{
|
||||
|
||||
@@ -1314,6 +1314,7 @@ public class UnitTypes implements ContentList{
|
||||
buildSpeed = 4f;
|
||||
drawShields = false;
|
||||
commandLimit = 6;
|
||||
lowAltitude = true;
|
||||
|
||||
ammoCapacity = 1300;
|
||||
ammoResupplyAmount = 20;
|
||||
|
||||
Reference in New Issue
Block a user