From 9f64bd65a7313b25969bc1a5308cb928cc4edf42 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 14 May 2024 19:12:36 +0200 Subject: [PATCH] rename "Restart Game" to "Take Off Helmet" --- src/actor.rs | 2 +- src/game.rs | 4 ++-- src/menu.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index c217c99..0319ce9 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -53,7 +53,7 @@ pub enum DamageType { Trauma, GForce, Asphyxiation, - DivineIntervention, + Depressurization, //Poison, //Radiation, //Freeze, diff --git a/src/game.rs b/src/game.rs index c4077e8..12bdadf 100644 --- a/src/game.rs +++ b/src/game.rs @@ -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, diff --git a/src/menu.rs b/src/menu.rs index c4498b5..8b4f2f5 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -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);