shithub: pokecrystal

Download patch

ref: b17553218bd5a60231a55ebc57c8ffd3523f5a99
parent: 6718981fb12b579a3ecb13b5ff01ce730514af52
author: yenatch <[email protected]>
date: Tue Jun 3 20:34:01 EDT 2014

Add a dereferenced stats screen function.

This was probably used in the stats screen in JP versions.
It fell out of use when the stats screen layout was redon in localization.

--- a/main.asm
+++ b/main.asm
@@ -57412,7 +57412,7 @@
 	callba GetGender
 	pop hl
 	ret c
-	ld a, "♂""
+	ld a, "♂"
 	jr nz, .asm_4df75
 	ld a, "♀"
 .asm_4df75
@@ -57421,12 +57421,29 @@
 ; 4df77 (13:5f77)
 
 Unknown_4df77: ; 4df77
-INCBIN "baserom.gbc",$4df77,$4df8f - $4df77
+	dw $de41
+	dw $d3ea
+	dw $b082
+	dw $d002
+; 4df7f
 
+Function4df7f: ; 4df7f
+	ld hl, $c4a7
+	ld bc, 20
+	ld d, 18
+.asm_4df87
+	ld a, $31
+	ld [hl], a
+	add hl, bc
+	dec d
+	jr nz, .asm_4df87
+	ret
+; 4df8f
+
 ; known jump sources: 4df3b (13:5f3b), 4e348 (13:6348)
 Function4df8f: ; 4df8f (13:5f8f)
 	ld hl, $c52c
-	ld b, $14
+	ld b, 20
 	ld a, $62
 .asm_4df96
 	ld [hli], a