Skip to content

Commit f573b89

Browse files
committed
Set player HP to 0 when killed
1 parent bb08dd8 commit f573b89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gameplay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ void hitmob(u8 index, u8 dmg) {
884884
dirty_tile(pos);
885885

886886
if (index == PLAYER_MOB) {
887+
mob_hp[index] = 0;
887888
inv_update_hp();
888889
gameover_timer = GAMEOVER_FRAMES;
889890
} else {

0 commit comments

Comments
 (0)