This commit is contained in:
Anuken
2022-08-21 20:44:12 -04:00
10 changed files with 44 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ public class PayloadAmmoTurret extends Turret{
super(name);
maxAmmo = 3;
acceptsPayload = true;
}
/** Initializes accepted ammo map. Format: [block1, bullet1, block2, bullet2...] */

View File

@@ -343,7 +343,7 @@ public class Turret extends ReloadTurret{
public void updateTile(){
if(!validateTarget()) target = null;
float warmupTarget = isShooting() && canConsume() ? 1f : 0f;
float warmupTarget = (isShooting() && canConsume()) || charging() ? 1f : 0f;
if(linearWarmup){
shootWarmup = Mathf.approachDelta(shootWarmup, warmupTarget, shootWarmupSpeed * (warmupTarget > 0 ? efficiency : 1f));
}else{