add LifeForm.is_alive bool

This commit is contained in:
yuni 2024-03-20 18:37:42 +01:00
parent 40489b3aad
commit e0c13af0eb

View file

@ -87,11 +87,13 @@ pub struct Talker {
#[derive(Component)]
pub struct LifeForm {
pub is_alive: bool,
pub adrenaline: f32,
pub adrenaline_baseline: f32,
pub adrenaline_jolt: f32,
}
impl Default for LifeForm { fn default() -> Self { Self {
is_alive: true,
adrenaline: 0.3,
adrenaline_baseline: 0.3,
adrenaline_jolt: 0.0,