Use DEX_* constants for StarterDex

This commit is contained in:
Rangi 2020-07-06 19:50:36 -04:00
parent 772fcc7588
commit f113361952

View file

@ -1,9 +1,9 @@
; this function temporarily makes the starters (and Ivysaur) seen ; this function temporarily makes the starters (and Ivysaur) seen
; so that the full Pokedex information gets displayed in Oak's lab ; so that the full Pokedex information gets displayed in Oak's lab
StarterDex: StarterDex:
ld a, %01001011 ; set starter flags ld a, 1 << (DEX_BULBASAUR - 1) | 1 << (DEX_IVYSAUR - 1) | 1 << (DEX_CHARMANDER - 1) | 1 << (DEX_SQUIRTLE - 1)
ld [wPokedexOwned], a ld [wPokedexOwned], a
predef ShowPokedexData predef ShowPokedexData
xor a ; unset starter flags xor a
ld [wPokedexOwned], a ld [wPokedexOwned], a
ret ret