From a061b97e5c541b2dc6c46184f78d5a18b35d9254 Mon Sep 17 00:00:00 2001
From: Alexander Foremny <aforemny@posteo.de>
Date: Sat, 23 Mar 2024 13:59:20 +0100
Subject: fix: only players regen health

---
 src/shared/player.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/shared/player.rs')

diff --git a/src/shared/player.rs b/src/shared/player.rs
index 6b21bac..d166a7d 100644
--- a/src/shared/player.rs
+++ b/src/shared/player.rs
@@ -1,6 +1,6 @@
-use crate::shared::faction::*;
 use crate::shared::activation::*;
 use crate::shared::buffs::*;
+use crate::shared::faction::*;
 use crate::shared::shape::*;
 use crate::shared::stats::*;
 use crate::shared::*;
@@ -19,6 +19,7 @@ pub struct PlayerBundle {
     activation: Activation,
     shape: Shape,
     faction: Faction,
+    player: Player,
     replicate: Replicate,
 }
 
@@ -51,6 +52,7 @@ impl PlayerBundle {
             activation: Activation::default(),
             shape: Shape::player(),
             faction: Faction::default(),
+            player: Player::default(),
             replicate,
         }
     }
@@ -64,3 +66,6 @@ pub struct PlayerPosition(pub Vec2);
 
 #[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
 pub struct PlayerColor(pub Color);
+
+#[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq, Default)]
+pub struct Player;
-- 
cgit v1.2.3