diff --git a/assets/voxygen/audio/sfx/abilities/heal_bomb.wav b/assets/voxygen/audio/sfx/abilities/heal_bomb.wav new file mode 100644 index 0000000000..6b8dad1c59 --- /dev/null +++ b/assets/voxygen/audio/sfx/abilities/heal_bomb.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f20ab33b5961aa650b311d380b5e973d34f5527c10cca102050c31f0ae8bf68 +size 1423964 diff --git a/voxygen/src/audio/sfx/mod.rs b/voxygen/src/audio/sfx/mod.rs index 1298b0af06..32aaa196da 100644 --- a/voxygen/src/audio/sfx/mod.rs +++ b/voxygen/src/audio/sfx/mod.rs @@ -291,9 +291,15 @@ impl SfxMgr { match outcome { Outcome::Explosion { pos, power, .. } => { + let file_ref = if power.is_sign_positive() { + "voxygen.audio.sfx.explosion" + } else { + "voxygen.audio.sfx.abilities.heal_bomb" + }; + audio.play_sfx( // TODO: from sfx config? - "voxygen.audio.sfx.explosion", + file_ref, *pos, Some((power.abs() / 2.5).min(1.5)), );