shithub: pokecrystal

Download patch

ref: a99c75b7cd19cb267b4340d56a2197ddabcf99a3
parent: a136ae576c1f5ea4adb7b5f5720f734d52aafe0c
author: IIMarckus <[email protected]>
date: Wed Jul 4 17:53:32 EDT 2012

Add special 0x97, the generic Pokémon check.

--- a/main.asm
+++ b/main.asm
@@ -709,7 +709,7 @@
 	dbw BANK(SpecialDratini),SpecialDratini
 	dbw $04,$5485
 	dbw BANK(SpecialBeastsCheck),SpecialBeastsCheck
-	dbw $12,$6711
+	dbw BANK(SpecialMonCheck),SpecialMonCheck
 	dbw $03,$4225
 	dbw $5c,$4bd2
 	dbw $40,$766e
@@ -13870,13 +13870,21 @@
 	ld [$c2dd], a
 	ret
 
-Function_4a711: ; 0x4a711
+SpecialMonCheck: ; 0x4a711
+; Check if a Pokémon exists in PC or party.
+; It must exist in either party or PC, and have the player's OT and ID.
+
+; inputs:
+; $c2dd contains species to search for
 	call CheckOwnMonAnywhere
-	jr c, .asm_4a71b ; 0x4a714 $5
+	jr c, .exists
+
+	; doesn't exist
 	xor a
 	ld [$c2dd], a
 	ret
-.asm_4a71b
+
+.exists
 	ld a, $1
 	ld [$c2dd], a
 	ret
@@ -35829,7 +35837,7 @@
 	loadfont
 	2writetext UnknownText_0x71f22
 	keeptextopen
-	writebyte $f5
+	writebyte SUICUNE
 	special $0097
 	iffalse UnknownScript_0x71e46
 	special $0096