From 3bfcf00baeb7c0a2e1b45aa9038c80dc24e37214 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 23 Mar 2024 15:07:35 +0100 Subject: feat: towers prioritize non-player targets --- src/shared/tower.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/shared/tower.rs') diff --git a/src/shared/tower.rs b/src/shared/tower.rs index a21048a..4601112 100644 --- a/src/shared/tower.rs +++ b/src/shared/tower.rs @@ -64,5 +64,11 @@ impl TowerBundle { #[derive(Component, Default)] pub struct Tower { - pub last_target_player_id: Option, + pub last_target: Option, +} + +#[derive(Component, Clone, Copy)] +pub struct LastTarget { + pub entity: Entity, + pub player_id: PlayerId, } -- cgit v1.2.3