refactor base health
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ update_enemies :: proc(world: ^World, dt: f32) {
|
||||
if !e.active do continue
|
||||
|
||||
if e.path_index >= len(world.world_map.path) {
|
||||
world.base_health -= 1
|
||||
world.player.base_health -= 1
|
||||
e.active = false
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user