mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Better warmup for Erekir turrets
This commit is contained in:
parent
b2041194da
commit
339af6b3cc
@ -4227,6 +4227,7 @@ public class Blocks{
|
||||
|
||||
newTargetInterval = 40f;
|
||||
shootWarmupSpeed = 0.07f;
|
||||
warmupMaintainTime = 120f;
|
||||
|
||||
coolant = consume(new ConsumeLiquid(Liquids.water, 30f / 60f));
|
||||
coolantMultiplier = 1.5f;
|
||||
@ -4950,7 +4951,7 @@ public class Blocks{
|
||||
outlineColor = Pal.darkOutline;
|
||||
size = 5;
|
||||
envEnabled |= Env.space;
|
||||
warmupMaintainTime = 30f;
|
||||
warmupMaintainTime = 120f;
|
||||
reload = 100f;
|
||||
recoil = 2f;
|
||||
range = 300;
|
||||
@ -5277,7 +5278,7 @@ public class Blocks{
|
||||
velocityRnd = 0.15f;
|
||||
heatRequirement = 90f;
|
||||
maxHeatEfficiency = 2f;
|
||||
warmupMaintainTime = 30f;
|
||||
warmupMaintainTime = 120f;
|
||||
consumePower(10f);
|
||||
|
||||
shoot = new ShootSummon(0f, 0f, circleRad, 48f);
|
||||
|
@ -371,7 +371,7 @@ public class Turret extends ReloadTurret{
|
||||
if(!validateTarget()) target = null;
|
||||
|
||||
float warmupTarget = (isShooting() && canConsume()) || charging() ? 1f : 0f;
|
||||
if(warmupTarget > 0 && shootWarmup >= minWarmup && !isControlled()){
|
||||
if(warmupTarget > 0 && !isControlled()){
|
||||
warmupHold = 1f;
|
||||
}
|
||||
if(warmupHold > 0f){
|
||||
|
Loading…
Reference in New Issue
Block a user