ref: e2cf3eb7bdc31d42b55c06ed0c36856d647eb18c
parent: 4eb8165158cb72c1c73dcf1a5094aab9c9783910
author: Rangi <[email protected]>
date: Thu Jun 28 18:35:29 EDT 2018
Add more collision nybble constants
--- a/constants/collision_constants.asm
+++ b/constants/collision_constants.asm
@@ -113,3 +113,5 @@
HI_NYBBLE_WALK_ALT EQU $50
HI_NYBBLE_WARPS EQU $70
HI_NYBBLE_LEDGES EQU $a0
+HI_NYBBLE_SIDE_WALLS EQU $b0
+HI_NYBBLE_UNUSED_C0 EQU $c0
--- a/engine/overworld/npc_movement.asm
+++ b/engine/overworld/npc_movement.asm
@@ -142,9 +142,9 @@
Function6f7f:
ld d, a
and $f0
- cp $b0
+ cp HI_NYBBLE_SIDE_WALLS
jr z, .done
- cp $c0
+ cp HI_NYBBLE_UNUSED_C0
jr z, .done
xor a
ret
--- a/home/map.asm
+++ b/home/map.asm
@@ -1643,9 +1643,9 @@
.CheckHiNybble:
and $f0
- cp $b0
+ cp HI_NYBBLE_SIDE_WALLS
ret z
- cp $c0
+ cp HI_NYBBLE_UNUSED_C0
ret
GetFacingTileCoord::