rename "Restart Game" to "Take Off Helmet"
This commit is contained in:
parent
8f76a31cfa
commit
9f64bd65a7
|
@ -53,7 +53,7 @@ pub enum DamageType {
|
|||
Trauma,
|
||||
GForce,
|
||||
Asphyxiation,
|
||||
DivineIntervention,
|
||||
Depressurization,
|
||||
//Poison,
|
||||
//Radiation,
|
||||
//Freeze,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue