rename "Restart Game" to "Take Off Helmet"

This commit is contained in:
yuni 2024-05-14 19:12:36 +02:00
parent 8f76a31cfa
commit 9f64bd65a7
3 changed files with 5 additions and 5 deletions

View file

@ -53,7 +53,7 @@ pub enum DamageType {
Trauma,
GForce,
Asphyxiation,
DivineIntervention,
Depressurization,
//Poison,
//Radiation,
//Freeze,

View file

@ -183,8 +183,8 @@ fn handle_player_death(
log.clear();
match death.0 {
actor::DamageType::DivineIntervention => {
settings.death_cause = "Divine Intervention".to_string();
actor::DamageType::Depressurization => {
settings.death_cause = "Depressurization".to_string();
ew_effect.send(visual::SpawnEffectEvent {
class: visual::Effects::FadeIn(Color::BLACK),
duration: 4.0,

View file

@ -51,7 +51,7 @@ pub const MENUDEF: &[(&str, MenuAction)] = &[
("", MenuAction::ToggleCamera),
("Toggle Fullscreen [F11]", MenuAction::ToggleFullscreen),
("", MenuAction::ToggleShadows),
("Restart Game", MenuAction::Restart),
("Take Off Helmet", MenuAction::Restart),
("Quit", MenuAction::Quit),
];
@ -538,7 +538,7 @@ pub fn handle_input(
},
MenuAction::Restart => {
settings.god_mode = false;
ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::DivineIntervention));
ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::Depressurization));
},
MenuAction::Quit => {
app_exit_events.send(bevy::app::AppExit);