death animation fallback
This commit is contained in:
parent
0c31055422
commit
9ea79ff80f
14
src/actor.rs
14
src/actor.rs
|
@ -446,13 +446,6 @@ fn handle_player_death(
|
|||
duration: 4.0,
|
||||
});
|
||||
}
|
||||
DamageType::Trauma => {
|
||||
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::WakeUp));
|
||||
ew_effect.send(effects::SpawnEffectEvent {
|
||||
class: effects::Effects::FadeIn(Color::MAROON),
|
||||
duration: 1.0,
|
||||
});
|
||||
}
|
||||
DamageType::Asphyxiation => {
|
||||
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::WakeUp));
|
||||
ew_effect.send(effects::SpawnEffectEvent {
|
||||
|
@ -460,7 +453,12 @@ fn handle_player_death(
|
|||
duration: 1.0,
|
||||
});
|
||||
}
|
||||
_ => {
|
||||
DamageType::Trauma | _ => {
|
||||
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::WakeUp));
|
||||
ew_effect.send(effects::SpawnEffectEvent {
|
||||
class: effects::Effects::FadeIn(Color::MAROON),
|
||||
duration: 1.0,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue