different head different range

This commit is contained in:
2025-04-11 11:33:48 +03:00
parent 98839ae221
commit 806d10e1bd
7 changed files with 42 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
use crate::{
GameState,
ai::Ai,
head::ActiveHead,
heads::{HEAD_COUNT, HeadState},
hitpoints::{Hitpoints, Kill},
keys::KeySpawn,
@@ -30,6 +31,7 @@ fn init(mut commands: Commands, query: Query<(Entity, &EnemySpawn)>) {
.insert((
Hitpoints::new(100),
Npc(HeadState::new(id, 10).with_ability(crate::abilities::HeadAbility::Thrown)),
ActiveHead(id),
Ai,
))
.observe(on_kill);