Add documentation for HideHeadbuttTree
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
Rangi42 2024-11-28 22:03:14 -05:00
parent 9b19999aee
commit 3257bc1924

View File

@ -74,6 +74,8 @@ HeadbuttTreeGFX:
INCBIN "gfx/overworld/headbutt_tree.2bpp"
HideHeadbuttTree:
; Replaces all four headbutted tree tiles with tile $05
; Assumes any tileset with headbutt trees has grass at tile $05
xor a
ldh [hBGMapMode], a
ld a, [wPlayerDirection]
@ -87,7 +89,7 @@ HideHeadbuttTree:
ld h, [hl]
ld l, a
ld a, $05 ; grass block
ld a, $05 ; grass tile
ld [hli], a
ld [hld], a
ld bc, SCREEN_WIDTH