projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bade1d
)
action: added tile getter to attack action
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 26 Jan 2026 03:22:23 +0000
(
04:22
+0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 26 Jan 2026 03:22:23 +0000
(
04:22
+0100)
src/action.s
patch
|
blob
|
history
diff --git
a/src/action.s
b/src/action.s
index b62f050e55c46e6043a7157a9c9fc6ed7fa49a17..707ffb2904b3dcf14bc0d4f4a1c6981e59058cef 100644
(file)
--- a/
src/action.s
+++ b/
src/action.s
@@
-21,5
+21,14
@@
dw action_attack
; de: actor
; bc: target tile
action_attack:
- BREAK
+ push de
+ call map_get_tile
+ ; hl = tile ptr
+ pop de
+
+ ld bc, t_act
+ add hl, bc ; hl = tact
+
+ ; check if there is something to attack
+
ret