You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Object masks
This commit is contained in:
16
home/map.asm
16
home/map.asm
@@ -1170,33 +1170,33 @@ CoordinatesEventText:: ; 2702
|
||||
; 2707
|
||||
|
||||
|
||||
Function2707:: ; 2707
|
||||
CheckObjectMask:: ; 2707
|
||||
ld a, [hMapObjectIndexBuffer1]
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld hl, wd81e
|
||||
ld hl, wObjectMasks
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ret
|
||||
; 2712
|
||||
|
||||
Function2712:: ; 2712
|
||||
MaskObject:: ; 2712
|
||||
ld a, [hMapObjectIndexBuffer1]
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld hl, wd81e
|
||||
ld hl, wObjectMasks
|
||||
add hl, de
|
||||
ld [hl], $ff
|
||||
ld [hl], -1 ; ,masked
|
||||
ret
|
||||
; 271e
|
||||
|
||||
Function271e:: ; 271e
|
||||
UnmaskObject:: ; 271e
|
||||
ld a, [hMapObjectIndexBuffer1]
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld hl, wd81e
|
||||
ld hl, wObjectMasks
|
||||
add hl, de
|
||||
ld [hl], $0
|
||||
ld [hl], 0 ; unmasked
|
||||
ret
|
||||
; 272a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user