From e0c13af0eb9305bbb762fecb5df10a8b8bcf3ce0 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 20 Mar 2024 18:37:42 +0100 Subject: [PATCH] add LifeForm.is_alive bool --- src/actor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actor.rs b/src/actor.rs index 6ee91d8..0bda0af 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -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,