summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2012-07-04 21:53:32 -0600
committerIIMarckus <iimarckus@gmail.com>2012-07-04 21:53:32 -0600
commita99c75b7cd19cb267b4340d56a2197ddabcf99a3 (patch)
tree477e1045647d7486c14aa1867720510a144f661f /main.asm
parenta136ae576c1f5ea4adb7b5f5720f734d52aafe0c (diff)
Add special 0x97, the generic Pokémon check.
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm18
1 files changed, 13 insertions, 5 deletions
diff --git a/main.asm b/main.asm
index bb3c3d12d..fa931eb72 100644
--- a/main.asm
+++ b/main.asm
@@ -709,7 +709,7 @@ SpecialsPointers: ; 0xc029
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 @@ SpecialBeastsCheck: ; 0x4a6e8
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 @@ UnknownScript_0x71e2e: ; 0x71e2e
loadfont
2writetext UnknownText_0x71f22
keeptextopen
- writebyte $f5
+ writebyte SUICUNE
special $0097
iffalse UnknownScript_0x71e46
special $0096