shithub: pokered

Download patch

ref: 61dbfa440bd83b8bb490ec7e1c44ea6f0aed66df
parent: 0dea0cc3fb815aae7d7a5e856aabf9b402d45cd0
author: yenatch <yenatch@gmail.com>
date: Fri May 23 11:20:53 EDT 2014

Use a dedicated label for base stats.

The existing {Bulbasaur,Ivysaur,...}BaseStats labels are for convenience.

--- a/engine/evos_moves.asm
+++ b/engine/evos_moves.asm
@@ -156,7 +156,7 @@
 	call Predef ; indirect jump to IndexToPokedex (41010 (10:5010))
 	ld a, [$d11e]
 	dec a
-	ld hl, BulbasaurBaseStats ; $43de
+	ld hl, BaseStats
 	ld bc, $1c
 	call AddNTimes
 	ld de, W_MONHEADER
--- a/main.asm
+++ b/main.asm
@@ -3028,7 +3028,7 @@
 GetMonHeader:: ; 1537 (0:1537)
 	ld a,[H_LOADEDROMBANK]
 	push af
-	ld a,BANK(BulbasaurBaseStats)
+	ld a,BANK(BaseStats)
 	ld [H_LOADEDROMBANK],a
 	ld [$2000],a
 	push bc
@@ -3056,7 +3056,7 @@
 	ld a,[$d11e]
 	dec a
 	ld bc,28
-	ld hl,BulbasaurBaseStats
+	ld hl,BaseStats
 	call AddNTimes
 	ld de,W_MONHEADER
 	ld bc,28
@@ -17121,6 +17121,7 @@
 
 INCLUDE "data/moves.asm"
 
+BaseStats:
 INCLUDE "data/base_stats.asm"
 
 INCLUDE "data/cries.asm"