Hastily implemented final endgame turret

This commit is contained in:
Anuken
2022-07-09 00:33:15 -04:00
parent 8b0a86e883
commit 311118ae58
41 changed files with 349 additions and 34 deletions

View File

@@ -345,9 +345,9 @@ public class Turret extends ReloadTurret{
float warmupTarget = isShooting() && canConsume() ? 1f : 0f;
if(linearWarmup){
shootWarmup = Mathf.approachDelta(shootWarmup, warmupTarget, shootWarmupSpeed);
shootWarmup = Mathf.approachDelta(shootWarmup, warmupTarget, shootWarmupSpeed * (warmupTarget > 0 ? efficiency : 1f));
}else{
shootWarmup = Mathf.lerpDelta(shootWarmup, warmupTarget, shootWarmupSpeed);
shootWarmup = Mathf.lerpDelta(shootWarmup, warmupTarget, shootWarmupSpeed * (warmupTarget > 0 ? efficiency : 1f));
}
wasShooting = false;