refactor world wave

This commit is contained in:
2026-06-26 20:53:31 -07:00
parent 4d9c52c56a
commit bfc39201e1
4 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ spawn_enemy :: proc(world: ^World, kind: Enemy_Kind) {
e := acquire_enemy(world) // grab a free slot
if e == nil do return // if there are no slots, skil spawning
arch := get_enemy_archetype(kind, world.wave)
arch := get_enemy_archetype(kind, world.wave.current_wave)
e^ = Enemy {
position = world.path[0],
health = arch.health,