From: Lukas Krickl Date: Fri, 6 Feb 2026 06:51:47 +0000 (+0100) Subject: actor: when an enemy dies it now changes the tile type X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=eecfb63b1669ed1363b338b19c86867f21d31b1b;p=gbrg%2F.git actor: when an enemy dies it now changes the tile type --- 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