refactor base health

This commit is contained in:
2026-06-27 00:38:22 -07:00
parent 28165ed399
commit e7806dcd66
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ update_phase :: proc(world: ^World) {
}
check_end :: proc(world: ^World) {
if world.base_health <= 0 {
if world.player.base_health <= 0 {
world.phase = .Game_Over
}