diff options
| author | Narishma-gb <194818981+Narishma-gb@users.noreply.github.com> | 2025-01-30 23:26:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 17:26:55 -0500 |
| commit | 43f21cc4948682b51b4c72bcef38631f95b47bfe (patch) | |
| tree | 2f647622559fce6bae9d4ebb1d669c5cec3db426 /engine/overworld | |
| parent | Consistently refer to CGB, not GBC (#491) (diff) | |
| download | pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.tar.gz pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.tar.xz pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.zip | |
Fix some label typos, and add some constants instead of raw numbers (#492)
Diffstat (limited to 'engine/overworld')
| -rw-r--r-- | engine/overworld/trainer_sight.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/overworld/trainer_sight.asm b/engine/overworld/trainer_sight.asm index f32b558a..da845fda 100644 --- a/engine/overworld/trainer_sight.asm +++ b/engine/overworld/trainer_sight.asm @@ -97,8 +97,8 @@ TrainerWalkUpToPlayer:: swap a dec a ld c, a ; bc = steps yet to go to reach player - xor a - ld b, a ; a = direction to go to + xor a ; NPC_MOVEMENT_DOWN + ld b, a jr .writeWalkScript .facingUp ld a, [wTrainerScreenY] @@ -111,7 +111,7 @@ TrainerWalkUpToPlayer:: dec a ld c, a ; bc = steps yet to go to reach player ld b, $0 - ld a, $40 ; a = direction to go to + ld a, NPC_MOVEMENT_UP jr .writeWalkScript .facingRight ld a, [wTrainerScreenX] @@ -124,7 +124,7 @@ TrainerWalkUpToPlayer:: dec a ld c, a ; bc = steps yet to go to reach player ld b, $0 - ld a, $c0 ; a = direction to go to + ld a, NPC_MOVEMENT_RIGHT jr .writeWalkScript .facingLeft ld a, [wTrainerScreenX] @@ -137,7 +137,7 @@ TrainerWalkUpToPlayer:: dec a ld c, a ; bc = steps yet to go to reach player ld b, $0 - ld a, $80 ; a = direction to go to + ld a, NPC_MOVEMENT_LEFT .writeWalkScript ld hl, wNPCMovementDirections2 ld de, wNPCMovementDirections2 |
