mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Comments for ToggleMaptileDecorations
This commit is contained in:
parent
a70624adfb
commit
60568e8833
@ -1085,17 +1085,18 @@ DecorationDesc_GiantOrnament:
|
|||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
ToggleMaptileDecorations:
|
ToggleMaptileDecorations:
|
||||||
lb de, 0, 4
|
; tile coordinates work the same way as for changeblock
|
||||||
|
lb de, 0, 4 ; bed coordinates
|
||||||
ld a, [wDecoBed]
|
ld a, [wDecoBed]
|
||||||
call SetDecorationTile
|
call SetDecorationTile
|
||||||
lb de, 7, 4
|
lb de, 7, 4 ; plant coordinates
|
||||||
ld a, [wDecoPlant]
|
ld a, [wDecoPlant]
|
||||||
call SetDecorationTile
|
call SetDecorationTile
|
||||||
lb de, 6, 0
|
lb de, 6, 0 ; poster coordinates
|
||||||
ld a, [wDecoPoster]
|
ld a, [wDecoPoster]
|
||||||
call SetDecorationTile
|
call SetDecorationTile
|
||||||
call SetPosterVisibility
|
call SetPosterVisibility
|
||||||
lb de, 0, 0
|
lb de, 0, 0 ; carpet top-left coordinates
|
||||||
call PadCoords_de
|
call PadCoords_de
|
||||||
ld a, [wDecoCarpet]
|
ld a, [wDecoCarpet]
|
||||||
and a
|
and a
|
||||||
@ -1103,15 +1104,15 @@ ToggleMaptileDecorations:
|
|||||||
call _GetDecorationSprite
|
call _GetDecorationSprite
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
push af
|
push af
|
||||||
lb de, 0, 2
|
lb de, 0, 2 ; carpet bottom-left coordinates
|
||||||
call PadCoords_de
|
call PadCoords_de
|
||||||
pop af
|
pop af
|
||||||
inc a
|
inc a
|
||||||
ld [hli], a
|
ld [hli], a ; carpet bottom-left block
|
||||||
inc a
|
inc a
|
||||||
ld [hli], a
|
ld [hli], a ; carpet bottom-middle block
|
||||||
dec a
|
dec a
|
||||||
ld [hl], a
|
ld [hl], a ; carpet bottom-right block
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SetPosterVisibility:
|
SetPosterVisibility:
|
||||||
@ -1177,6 +1178,7 @@ _GetDecorationSprite:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
PadCoords_de:
|
PadCoords_de:
|
||||||
|
; adjusts coordinates, the same way as Script_changeblock
|
||||||
ld a, d
|
ld a, d
|
||||||
add 4
|
add 4
|
||||||
ld d, a
|
ld d, a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user