shithub: pokecrystal

Download patch

ref: 8bc89189cc8d6059d8eda1b2dd2ed952e7c6fd1d
parent: 9aef93701a6cd301a3343c58efac31528958be22
author: yenatch <yenatch@gmail.com>
date: Wed Feb 11 09:17:45 EST 2015

Use NUM_MOVES more liberally in wram.

--- a/wram.asm
+++ b/wram.asm
@@ -4,7 +4,7 @@
 	ds ((\1) + 7) / 8
 ENDM
 
-box_struct_length EQU 32
+box_struct_length EQU 24 + NUM_MOVES * 2
 box_struct: MACRO
 \1Species::        db
 \1Item::           db
@@ -801,7 +801,7 @@
 PlayerUsedMoves:: ; c712
 ; add a move that has been used once by the player
 ; added in order of use
-	ds 4
+	ds NUM_MOVES
 
 wc716:: ds 1
 wc717:: ds 1