ref: bd35b37262fd80b355f6b1d942e5e936871be1ec
parent: c80eddf988523b81c2e26b57a648ee6069c8955c
author: yenatch <yenatch@gmail.com>
date: Thu Mar 22 19:09:49 EDT 2018
use constants for wEvosMoves size
--- a/constants/evolution_constants.asm
+++ b/constants/evolution_constants.asm
@@ -1,4 +1,9 @@
+; See data/evos_moves.asm
+
; Evolution types
EV_LEVEL EQU 1
EV_ITEM EQU 2
EV_TRADE EQU 3
+
+MAX_EVOLUTIONS EQU 3
+EVOLUTION_SIZE EQU 4
--- a/data/evos_moves.asm
+++ b/data/evos_moves.asm
@@ -1,3 +1,6 @@
+; See constants/evolution_constants.asm
+; The max number of evolutions per monster is MAX_EVOLUTIONS
+
EvosMovesPointerTable:
dw RhydonEvosMoves
dw KangaskhanEvosMoves
@@ -1243,7 +1246,6 @@
db EV_ITEM,THUNDER_STONE,1,JOLTEON
db EV_ITEM,WATER_STONE,1,VAPOREON
db 0
-EeveeEvosEnd:
;Learnset
db 27,QUICK_ATTACK
db 31,TAIL_WHIP
--- a/wram.asm
+++ b/wram.asm
@@ -1253,7 +1253,7 @@
NEXTU
-wEvosMoves:: ds 13
+wEvosMoves:: ds MAX_EVOLUTIONS * EVOLUTION_SIZE + 1
.end::
ENDU