mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Add more collision nybble constants
This commit is contained in:
parent
4eb8165158
commit
e2cf3eb7bd
@ -113,3 +113,5 @@ HI_NYBBLE_WALK EQU $40
|
|||||||
HI_NYBBLE_WALK_ALT EQU $50
|
HI_NYBBLE_WALK_ALT EQU $50
|
||||||
HI_NYBBLE_WARPS EQU $70
|
HI_NYBBLE_WARPS EQU $70
|
||||||
HI_NYBBLE_LEDGES EQU $a0
|
HI_NYBBLE_LEDGES EQU $a0
|
||||||
|
HI_NYBBLE_SIDE_WALLS EQU $b0
|
||||||
|
HI_NYBBLE_UNUSED_C0 EQU $c0
|
||||||
|
@ -142,9 +142,9 @@ Function6f5f:
|
|||||||
Function6f7f:
|
Function6f7f:
|
||||||
ld d, a
|
ld d, a
|
||||||
and $f0
|
and $f0
|
||||||
cp $b0
|
cp HI_NYBBLE_SIDE_WALLS
|
||||||
jr z, .done
|
jr z, .done
|
||||||
cp $c0
|
cp HI_NYBBLE_UNUSED_C0
|
||||||
jr z, .done
|
jr z, .done
|
||||||
xor a
|
xor a
|
||||||
ret
|
ret
|
||||||
|
@ -1643,9 +1643,9 @@ GetMovementPermissions::
|
|||||||
|
|
||||||
.CheckHiNybble:
|
.CheckHiNybble:
|
||||||
and $f0
|
and $f0
|
||||||
cp $b0
|
cp HI_NYBBLE_SIDE_WALLS
|
||||||
ret z
|
ret z
|
||||||
cp $c0
|
cp HI_NYBBLE_UNUSED_C0
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GetFacingTileCoord::
|
GetFacingTileCoord::
|
||||||
|
Loading…
Reference in New Issue
Block a user