From: Lukas Krickl Date: Thu, 29 Jan 2026 08:37:48 +0000 (+0100) Subject: action: Added simple actor_die call when an actor is attacked X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=b0cf8c204676b17794c534968b14ce03f2f02cf4;p=gbrg%2F.git action: Added simple actor_die call when an actor is attacked --- diff --git a/src/action.s b/src/action.s index 19b389e..eb113b5 100644 --- a/src/action.s +++ b/src/action.s @@ -32,12 +32,17 @@ action_attack: ; check if there is something to attack ld a, [hl+] ld c, a - ld h, [hl] - ld l, c + ld l, [hl] + ld h, c or a, h ret z ; no actor here... ; hl = actor - BREAK + + ; TODO: for now just kill the actor + ; later we need actual damage calculations + push hl + pop de + call act_die ret