shithub: pokecrystal

Download patch

ref: 21248effe489af1624d3b43cc2abbe3c7849865a
parent: 5342f8d6300898faa312d9b5dec248cfe0cfb757
author: yenatch <[email protected]>
date: Fri Aug 30 18:25:50 EDT 2013

NUM_POKEMON in main.asm

--- a/main.asm
+++ b/main.asm
@@ -7380,7 +7380,7 @@
 	jr z, .NotAPokemon
 	cp EGG
 	jr z, .Pokemon
-	cp $fc
+	cp NUM_POKEMON + 1
 	jr c, .Pokemon
 
 .NotAPokemon
@@ -25312,7 +25312,7 @@
 	jr z, .asm_132f3
 	cp EGG
 	jr z, .asm_132f3
-	cp $fc
+	cp NUM_POKEMON + 1
 	jr c, .asm_132f8
 
 .asm_132f3
@@ -25346,7 +25346,7 @@
 	jr z, .asm_1331e
 	cp EGG
 	jr z, .asm_1331e
-	cp $fc
+	cp NUM_POKEMON + 1
 	jr c, .asm_13321
 
 .asm_1331e
@@ -46769,7 +46769,7 @@
 .asm_425a2
 	inc c
 	ld a, c
-	cp CELEBI
+	cp NUM_POKEMON
 	jr c, .asm_42583
 	and a
 	ret
@@ -56572,9 +56572,9 @@
 Function8d04c: ; 8d04c
 	call Function8d0ec
 	call Function8d132
-	cp $fd
+	cp EGG
 	jr z, .asm_8d0b9
-	cp $fc
+	cp NUM_POKEMON + 1
 	jr z, .asm_8d0b6
 	call Function8d1a2
 	ld a, [$c3ba]
@@ -63320,9 +63320,9 @@
 Functioncca09: ; cca09
 	call Functionccaaa
 	call Functionce7d1
-	cp $fd
+	cp EGG
 	jp z, $4aa5
-	cp $fc
+	cp NUM_POKEMON + 1
 	jp z, $4aa2
 	push af
 	ld hl, $d419