shithub: pokecrystal

Download patch

ref: 145e752266fbbc1a5ad039c35ecd2e84753278ae
parent: 97e981985bdbbe24ee32490735af48fc5d544edb
author: Rangi <[email protected]>
date: Tue Nov 17 11:14:45 EST 2020

Use assert to ensure correct base data size

--- a/data/pokemon/base_stats.asm
+++ b/data/pokemon/base_stats.asm
@@ -283,3 +283,5 @@
 INCLUDE "data/pokemon/base_stats/lugia.asm"
 INCLUDE "data/pokemon/base_stats/ho_oh.asm"
 INCLUDE "data/pokemon/base_stats/celebi.asm"
+.End:
+	assert BaseData.End - BaseData == NUM_POKEMON * BASE_DATA_SIZE