Hastily implemented final endgame turret
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user