projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf33a2
)
action: Added simple actor_die call when an actor is attacked
author
Lukas Krickl
<lukas@krickl.dev>
Thu, 29 Jan 2026 08:37:48 +0000
(09:37 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Thu, 29 Jan 2026 08:37:48 +0000
(09:37 +0100)
src/action.s
patch
|
blob
|
history
diff --git
a/src/action.s
b/src/action.s
index 19b389e921bbc07200009e4fe349fc349aefa7fa..eb113b5371503540b913de134d7dccd2841157fa 100644
(file)
--- 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