death animation fallback

This commit is contained in:
yuni 2024-04-11 20:58:16 +02:00
parent 0c31055422
commit 9ea79ff80f

View file

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