Replace explosion sound with heal bomb sound for sceptre M2

This commit is contained in:
nahuakang 2020-12-12 00:29:29 +01:00
parent 4bdd84ab46
commit f3ed13ca09
2 changed files with 10 additions and 1 deletions

BIN
assets/voxygen/audio/sfx/abilities/heal_bomb.wav (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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)),
);