different head different range
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user