shithub: pokered

Download patch

ref: f1133619526999de6ad1e0b5f36a7e69f4b8ef1f
parent: 772fcc7588a4e1fbe146a02b429cf64282c81dcb
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Jul 6 15:50:36 EDT 2020

Use DEX_* constants for StarterDex

--- a/engine/events/starter_dex.asm
+++ b/engine/events/starter_dex.asm
@@ -1,9 +1,9 @@
 ; this function temporarily makes the starters (and Ivysaur) seen
 ; so that the full Pokedex information gets displayed in Oak's lab
 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
 	predef ShowPokedexData
-	xor a ; unset starter flags
+	xor a
 	ld [wPokedexOwned], a
 	ret