mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Replace explosion sound with heal bomb sound for sceptre M2
This commit is contained in:
parent
4bdd84ab46
commit
f3ed13ca09
BIN
assets/voxygen/audio/sfx/abilities/heal_bomb.wav
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/audio/sfx/abilities/heal_bomb.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -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)),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user