shithub: pokecrystal

Download patch

ref: 6c492cb86d4362ed481ea0ef991e47f8a4233e3b
parent: 3735185ec24dd73de6863c58be4ddd4fc86ba00c
author: yenatch <yenatch@gmail.com>
date: Wed Feb 11 08:15:38 EST 2015

Comment PrintTempMonStats.

--- a/battle/core.asm
+++ b/battle/core.asm
@@ -7630,7 +7630,7 @@
 	call TextBox
 	hlcoord 11, 1
 	ld bc, $0004
-	predef Function50b7b
+	predef PrintTempMonStats
 	ld c, $1e
 	call DelayFrames
 	call Functiona80
--- a/items/item_effects.asm
+++ b/items/item_effects.asm
@@ -1431,7 +1431,7 @@
 
 	hlcoord 11, 1
 	ld bc, $0004
-	predef Function50b7b
+	predef PrintTempMonStats
 
 	call Functiona80
 
--- a/main.asm
+++ b/main.asm
@@ -7801,7 +7801,7 @@
 	add_predef StatsScreenInit
 	add_predef DrawPlayerHP
 	add_predef DrawEnemyHP
-	add_predef Function50b7b ; $28
+	add_predef PrintTempMonStats ; $28
 	add_predef GetTypeName
 	add_predef PrintMoveType
 	add_predef PrintType
@@ -56517,7 +56517,7 @@
 	jr nz, .asm_4e1bb
 	hlcoord 11, 8
 	ld bc, $6
-	predef Function50b7b
+	predef PrintTempMonStats
 	ret
 
 Function4e1cc: ; 4e1cc (13:61cc)
@@ -59438,40 +59438,40 @@
 ; 50b7b
 
 
-Function50b7b: ; 50b7b
-; Print a monster's stats on level up.
+PrintTempMonStats: ; 50b7b
+; Print TempMon's stats at hl, with spacing bc.
 	push bc
 	push hl
-	ld de, String_50bb5
+	ld de, .StatNames
 	call PlaceString
 	pop hl
 	pop bc
 	add hl, bc
-	ld bc, $0014
+	ld bc, SCREEN_WIDTH
 	add hl, bc
 	ld de, TempMonAttack
 	ld bc, $0203
-	call Function50bab
+	call .PrintStat
 	ld de, TempMonDefense
-	call Function50bab
+	call .PrintStat
 	ld de, TempMonSpclAtk
-	call Function50bab
+	call .PrintStat
 	ld de, TempMonSpclDef
-	call Function50bab
+	call .PrintStat
 	ld de, TempMonSpeed
 	jp PrintNum
 ; 50bab
 
-Function50bab: ; 50bab
+.PrintStat: ; 50bab
 	push hl
 	call PrintNum
 	pop hl
-	ld de, $0028
+	ld de, SCREEN_WIDTH * 2
 	add hl, de
 	ret
 ; 50bb5
 
-String_50bb5: ; 50bb5
+.StatNames: ; 50bb5
 	db   "ATTACK"
 	next "DEFENSE"
 	next "SPCL.ATK"