diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-06 12:09:36 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-06 12:09:36 -0400 |
commit | 96a58ce52ac4b8c4c8b2ecbf0f185d1ebda10a6e (patch) | |
tree | 94af78e339c96436e8ee2180e19279788659056d /engine/hidden_object_functions18.asm | |
parent | aafed67874b49180b4640eeaf5b20981c24ce9fc (diff) |
Split out pikachu engine functions; sprite state data macros
Diffstat (limited to 'engine/hidden_object_functions18.asm')
-rwxr-xr-x | engine/hidden_object_functions18.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/hidden_object_functions18.asm b/engine/hidden_object_functions18.asm index 443f8369..cdba142b 100755 --- a/engine/hidden_object_functions18.asm +++ b/engine/hidden_object_functions18.asm @@ -3,7 +3,7 @@ GymStatues: ; 625e8 (18:65e8) ; if in a gym and don’t have the corresponding badge, a = GymStatueText1_id and jp PrintPredefTextID ; else ret call EnableAutoTextBoxDrawing - ld a, [wSpriteStateData1 + 9] + ld a, [wPlayerFacingDirection] cp SPRITE_FACING_UP ret nz ld hl, .BadgeFlags @@ -64,7 +64,7 @@ PrintBenchGuyText: ; 6245d (18:645d) .match ld a, [hli] ld b, a - ld a, [wSpriteStateData1 + 9] + ld a, [wPlayerFacingDirection] cp b jr nz, .loop ; player isn't facing left at the bench guy ld a, [hl] @@ -192,7 +192,7 @@ BookcaseText: ; 62511 (18:6511) db "@" OpenPokemonCenterPC: ; 62516 (18:6516) - ld a, [wSpriteStateData1 + 9] + ld a, [wPlayerFacingDirection] cp SPRITE_FACING_UP ; check to see if player is facing up ret nz call EnableAutoTextBoxDrawing |