From: Lukas Krickl Date: Tue, 27 Jan 2026 16:26:13 +0000 (+0100) Subject: action: Added actor getter X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=8cf33a2685cfcbc85231170b264b46b1d9c60273;p=gbrg%2F.git action: Added actor getter --- diff --git a/src/action.s b/src/action.s index 707ffb2..19b389e 100644 --- a/src/action.s +++ b/src/action.s @@ -30,5 +30,14 @@ action_attack: add hl, bc ; hl = tact ; check if there is something to attack + ld a, [hl+] + ld c, a + ld h, [hl] + ld l, c + or a, h + ret z ; no actor here... + + ; hl = actor + BREAK ret