From eecfb63b1669ed1363b338b19c86867f21d31b1b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 6 Feb 2026 07:51:47 +0100 Subject: [PATCH] actor: when an enemy dies it now changes the tile type --- src/actor.s | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/actor.s b/src/actor.s index efe03c1..ede45ac 100644 --- a/src/actor.s +++ b/src/actor.s @@ -330,13 +330,32 @@ act_die: ; actor dealloc ; sets type to 0 ; and clears tact + ; updates tile type + ; requests redraw ; inputs: ; de: bat act_die_clear_tact: xor a, a ld [de], a ; set type == 0 - + + push de call act_clear_tact + pop de + + ld hl, act_pos_y + add hl, de + ld a, [hl+] + ld b, a + ld a, [hl] + ld c, a + call map_get_tile + + ld a, TT_BLOOD + ld [hl], a + + ld a, [draw_flags] + or a, DRAW_F_REDRAW_MAP + ld [draw_flags], a ret -- 2.30.2