Unify directional movement macros

This commit is contained in:
pikalaxalt
2016-05-14 13:46:14 -04:00
parent 3108c9fa6a
commit 1fa6aecbfc
95 changed files with 1914 additions and 2093 deletions

View File

@@ -598,10 +598,10 @@ Special_SurfStartStep: ; 8379
ret
.movement_data
slow_step_down
slow_step_up
slow_step_left
slow_step_right
slow_step DOWN
slow_step UP
slow_step LEFT
slow_step RIGHT
FollowNotExact:: ; 839e
push bc
@@ -827,12 +827,12 @@ QueueFollowerFirstStep: ; 848a
jr z, .check_y
jr c, .left
and a
ld a, movement_step_right
ld a, movement_step + RIGHT
ret
.left
and a
ld a, movement_step_left
ld a, movement_step + LEFT
ret
.check_y
@@ -843,12 +843,12 @@ QueueFollowerFirstStep: ; 848a
jr z, .same_xy
jr c, .up
and a
ld a, movement_step_down
ld a, movement_step + DOWN
ret
.up
and a
ld a, movement_step_up
ld a, movement_step + UP
ret
.same_xy