shithub: pokecrystal

Download patch

ref: 8e1e583640fcb82cb8d6327a0174a892b4ba0ad2
parent: 7a09fc9f750aec50dd568226083b279004ffe155
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Sun Jan 14 15:58:49 EST 2018

Close #470 (JOHTO_POKEMON)

--- a/constants/pokemon_constants.asm
+++ b/constants/pokemon_constants.asm
@@ -170,6 +170,7 @@
 	const DRAGONITE  ; 95
 	const MEWTWO     ; 96
 	const MEW        ; 97
+JOHTO_POKEMON EQU const_value
 	const CHIKORITA  ; 98
 	const BAYLEEF    ; 99
 	const MEGANIUM   ; 9a
--- a/engine/link.asm
+++ b/engine/link.asm
@@ -2050,7 +2050,7 @@
 	ld a, [hli]
 	cp -1
 	jr z, .checkitem
-	cp MEW + 1
+	cp JOHTO_POKEMON
 	jr nc, .mon_too_new
 	dec b
 	jr nz, .loop
--- a/engine/pic_animation.asm
+++ b/engine/pic_animation.asm
@@ -1024,7 +1024,7 @@
 	ld hl, UnownFramesPointers
 	jr z, .got_frames
 	ld a, [wPokeAnimSpecies]
-	cp CHIKORITA
+	cp JOHTO_POKEMON
 	ld b, BANK(FramesPointers)
 	ld c, BANK(KantoFrames)
 	ld hl, FramesPointers