Fixed #3493 but for point defense turrets
This commit is contained in:
@@ -96,8 +96,6 @@ public class PointDefenseTurret extends ReloadTurret{
|
|||||||
shootSound.at(x + Tmp.v1.x, y + Tmp.v1.y, Mathf.random(0.9f, 1.1f));
|
shootSound.at(x + Tmp.v1.x, y + Tmp.v1.y, Mathf.random(0.9f, 1.1f));
|
||||||
reload = 0;
|
reload = 0;
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
target = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,6 @@ public class TractorBeamTurret extends BaseTurret{
|
|||||||
target = Units.closestEnemy(team, x, y, range, u -> u.checkTarget(targetAir, targetGround));
|
target = Units.closestEnemy(team, x, y, range, u -> u.checkTarget(targetAir, targetGround));
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.info(target);
|
|
||||||
|
|
||||||
//consume coolant
|
//consume coolant
|
||||||
if(target != null && acceptCoolant){
|
if(target != null && acceptCoolant){
|
||||||
float maxUsed = consumes.<ConsumeLiquidBase>get(ConsumeType.liquid).amount;
|
float maxUsed = consumes.<ConsumeLiquidBase>get(ConsumeType.liquid).amount;
|
||||||
|
|||||||
Reference in New Issue
Block a user