rename "Restart Game" to "Take Off Helmet"
This commit is contained in:
parent
8f76a31cfa
commit
9f64bd65a7
|
@ -53,7 +53,7 @@ pub enum DamageType {
|
||||||
Trauma,
|
Trauma,
|
||||||
GForce,
|
GForce,
|
||||||
Asphyxiation,
|
Asphyxiation,
|
||||||
DivineIntervention,
|
Depressurization,
|
||||||
//Poison,
|
//Poison,
|
||||||
//Radiation,
|
//Radiation,
|
||||||
//Freeze,
|
//Freeze,
|
||||||
|
|
|
@ -183,8 +183,8 @@ fn handle_player_death(
|
||||||
log.clear();
|
log.clear();
|
||||||
|
|
||||||
match death.0 {
|
match death.0 {
|
||||||
actor::DamageType::DivineIntervention => {
|
actor::DamageType::Depressurization => {
|
||||||
settings.death_cause = "Divine Intervention".to_string();
|
settings.death_cause = "Depressurization".to_string();
|
||||||
ew_effect.send(visual::SpawnEffectEvent {
|
ew_effect.send(visual::SpawnEffectEvent {
|
||||||
class: visual::Effects::FadeIn(Color::BLACK),
|
class: visual::Effects::FadeIn(Color::BLACK),
|
||||||
duration: 4.0,
|
duration: 4.0,
|
||||||
|
|
|
@ -51,7 +51,7 @@ pub const MENUDEF: &[(&str, MenuAction)] = &[
|
||||||
("", MenuAction::ToggleCamera),
|
("", MenuAction::ToggleCamera),
|
||||||
("Toggle Fullscreen [F11]", MenuAction::ToggleFullscreen),
|
("Toggle Fullscreen [F11]", MenuAction::ToggleFullscreen),
|
||||||
("", MenuAction::ToggleShadows),
|
("", MenuAction::ToggleShadows),
|
||||||
("Restart Game", MenuAction::Restart),
|
("Take Off Helmet", MenuAction::Restart),
|
||||||
("Quit", MenuAction::Quit),
|
("Quit", MenuAction::Quit),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -538,7 +538,7 @@ pub fn handle_input(
|
||||||
},
|
},
|
||||||
MenuAction::Restart => {
|
MenuAction::Restart => {
|
||||||
settings.god_mode = false;
|
settings.god_mode = false;
|
||||||
ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::DivineIntervention));
|
ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::Depressurization));
|
||||||
},
|
},
|
||||||
MenuAction::Quit => {
|
MenuAction::Quit => {
|
||||||
app_exit_events.send(bevy::app::AppExit);
|
app_exit_events.send(bevy::app::AppExit);
|
||||||
|
|
Loading…
Reference in a new issue