shithub: pokecrystal

Download patch

ref: b47c4bc6fda7fbccb116c9c14f67415b6f389743
parent: 82317a7a23e6bb51664f2a6d6db5e6ea43399de8
author: yenatch <yenatch@gmail.com>
date: Sun May 17 22:16:11 EDT 2015

Use more constants in the event scripting engine.

--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -1465,9 +1465,9 @@
 Script_loadpikachudata: ; 0x973f0
 ; script command 0x5a
 
-	ld a, $19
+	ld a, PIKACHU
 	ld [wd22e], a
-	ld a, $5
+	ld a, 5
 	ld [CurPartyLevel], a
 	ret
 ; 0x973fb
@@ -2214,7 +2214,7 @@
 ;     id (SingleByteParam)
 ;     memory (SingleByteParam)
 
-	ld a, $7
+	ld a, TRAINER_NAME
 	ld [wcf61], a
 	jr Unknown_9771c ; 0x97730 $ea
 ; 0x97732