Skip to content

Commit 8894e29

Browse files
Add documentation for HideHeadbuttTree (#1152)
1 parent 961fad9 commit 8894e29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/events/field_moves.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ HeadbuttTreeGFX:
7979
INCBIN "gfx/overworld/headbutt_tree.2bpp"
8080

8181
HideHeadbuttTree:
82+
; Replaces all four headbutted tree tiles with tile $05
83+
; Assumes any tileset with headbutt trees has grass at tile $05
8284
xor a
8385
ldh [hBGMapMode], a
8486
ld a, [wPlayerDirection]
@@ -92,7 +94,7 @@ HideHeadbuttTree:
9294
ld h, [hl]
9395
ld l, a
9496

95-
ld a, $05 ; grass block
97+
ld a, $05 ; grass tile
9698
ld [hli], a
9799
ld [hld], a
98100
ld bc, SCREEN_WIDTH

0 commit comments

Comments
 (0)