Give an internal Pokédex status variable its own label.

This new label is used in revision 1.1 of Pokémon Crystal.
This commit is contained in:
IIMarckus 2015-02-14 01:40:38 -07:00
parent d7bc1d12f2
commit b028e13834
3 changed files with 10 additions and 9 deletions

View File

@ -314,7 +314,7 @@ Function401ae: ; 401ae (10:41ae)
Function40217: ; 40217 (10:4217)
call LowVolume
xor a
ld [wcf65], a
ld [wPokedexStatus], a
xor a
ld [hBGMapMode], a ; $ff00+$d4
call ClearSprites
@ -373,9 +373,9 @@ Function40258: ; 40258 (10:4258)
; 40292 (10:4292)
Function40292: ; 40292
ld a, [wcf65]
ld a, [wPokedexStatus]
xor $1
ld [wcf65], a
ld [wPokedexStatus], a
call Function40bb1
ld [wc2d6], a
callba Function4424d
@ -386,7 +386,7 @@ Function40292: ; 40292
Function402aa: ; 402aa (10:42aa)
call Function41401
xor a
ld [wcf65], a
ld [wPokedexStatus], a
xor a
ld [hBGMapMode], a ; $ff00+$d4
call Function407fd

View File

@ -38165,7 +38165,7 @@ Function4424d: ; 4424d
push af
call FarString
pop bc
ld a, [wcf65]
ld a, [wPokedexStatus]
or a
ret z
push bc
@ -89618,21 +89618,21 @@ Functionfb877: ; fb877
call ClearTileMap
call Function1ad2
call ClearSprites
ld a, [wcf65]
ld a, [wPokedexStatus]
push af
ld a, [hSCX]
add $5
ld [hSCX], a
xor a
ld [wcf65], a
ld [wPokedexStatus], a
callba Function41a7f
call Functiona80
ld a, $1
ld [wcf65], a
ld [wPokedexStatus], a
callba Function4424d
call Functiona80
pop af
ld [wcf65], a
ld [wPokedexStatus], a
call MaxVolume
call Function4b6
ld a, [hSCX]

View File

@ -1165,6 +1165,7 @@ CurSpecies:: ; cf60
wcf61:: ds 2
wcf63:: ds 1
wcf64:: ds 1
wPokedexStatus::
wcf65:: ds 1
wcf66:: ds 1