Fixed continuous weapon sounds / Improved naval support audio
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mindustry.entities.abilities;
|
||||
|
||||
import arc.*;
|
||||
import arc.audio.*;
|
||||
import arc.graphics.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.math.*;
|
||||
@@ -19,6 +20,7 @@ public class EnergyFieldAbility extends Ability{
|
||||
public float damage = 1, reload = 100, range = 60;
|
||||
public Effect healEffect = Fx.heal, hitEffect = Fx.hitLaserBlast, damageEffect = Fx.chainLightning;
|
||||
public StatusEffect status = StatusEffects.electrified;
|
||||
public Sound shootSound = Sounds.spark;
|
||||
public float statusDuration = 60f * 6f;
|
||||
public float x, y;
|
||||
public boolean hitBuildings = true;
|
||||
@@ -139,6 +141,10 @@ public class EnergyFieldAbility extends Ability{
|
||||
}
|
||||
}
|
||||
|
||||
if(anyNearby){
|
||||
shootSound.at(unit);
|
||||
}
|
||||
|
||||
timer = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user