Wave & shield ability sounds
This commit is contained in:
BIN
core/assets/sounds/block/shieldWave.ogg
Normal file
BIN
core/assets/sounds/block/shieldWave.ogg
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,8 @@
|
||||
package mindustry.entities.abilities;
|
||||
|
||||
import arc.*;
|
||||
import arc.audio.*;
|
||||
import arc.math.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import arc.util.*;
|
||||
import mindustry.content.*;
|
||||
@@ -13,6 +15,8 @@ public class ShieldRegenFieldAbility extends Ability{
|
||||
public float amount = 1, max = 100f, reload = 100, range = 60;
|
||||
public Effect applyEffect = Fx.shieldApply;
|
||||
public Effect activeEffect = Fx.shieldWave;
|
||||
public Sound sound = Sounds.shieldWave;
|
||||
public float soundVolume = 0.7f;
|
||||
public boolean parentizeEffects;
|
||||
|
||||
protected float timer;
|
||||
@@ -57,6 +61,7 @@ public class ShieldRegenFieldAbility extends Ability{
|
||||
|
||||
if(applied){
|
||||
activeEffect.at(unit.x, unit.y, unit.type.shieldColor(unit));
|
||||
sound.at(unit, 1f + Mathf.range(0.1f), soundVolume);
|
||||
}
|
||||
|
||||
timer = 0f;
|
||||
|
||||
@@ -26,4 +26,4 @@ org.gradle.caching=true
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=ec20fc49b9
|
||||
archash=c10d68b7a1
|
||||
|
||||
Reference in New Issue
Block a user