Fixed turrets firing without power as players

This commit is contained in:
Anuken
2020-10-04 09:58:53 -04:00
parent c4fb84c359
commit 605a370679
5 changed files with 8 additions and 3 deletions

View File

@@ -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"){{

View File

@@ -1314,6 +1314,7 @@ public class UnitTypes implements ContentList{
buildSpeed = 4f;
drawShields = false;
commandLimit = 6;
lowAltitude = true;
ammoCapacity = 1300;
ammoResupplyAmount = 20;