refactor base health
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user