different ammo per head (#30)

This commit is contained in:
extrawurst
2025-04-18 19:21:11 +02:00
committed by GitHub
parent 68ea17a93a
commit 94cd9c9cc4
7 changed files with 36 additions and 21 deletions

View File

@@ -34,7 +34,13 @@ fn init(mut commands: Commands, query: Query<(Entity, &EnemySpawn)>, heads_db: R
Hitpoints::new(100),
Npc,
ActiveHead(id),
ActiveHeads::new([Some(HeadState::new(id, 10)), None, None, None, None]),
ActiveHeads::new([
Some(HeadState::new(id, heads_db.as_ref())),
None,
None,
None,
None,
]),
Ai,
))
.observe(on_kill);