This commit is contained in:
Anuken 2024-04-22 08:43:25 -04:00
parent 14a155147d
commit d7191e4f71

View File

@ -80,7 +80,7 @@ public class ItemTurret extends Turret{
@Override
public float efficiency(Building build){
//valid when it can shoot
return build instanceof ItemTurretBuild it && it.hasAmmo() ? 1f : 0f;
return build instanceof ItemTurretBuild it && it.ammo.size > 0 && (it.ammo.peek().amount >= ammoPerShot || it.cheating()) ? 1f : 0f;
}
@Override