aboutsummaryrefslogtreecommitdiffstats
path: root/data/moves/tmhm_moves.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-25 16:33:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-25 16:44:41 -0400
commit95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch)
tree5a7b79846bd7f07e40310da46b21873774a08ef7 /data/moves/tmhm_moves.asm
parentRemove unused _GREEN TitleMons data (diff)
downloadpokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.gz
pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.xz
pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.zip
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'data/moves/tmhm_moves.asm')
-rw-r--r--data/moves/tmhm_moves.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/moves/tmhm_moves.asm b/data/moves/tmhm_moves.asm
index a5b0bfec..123df8c6 100644
--- a/data/moves/tmhm_moves.asm
+++ b/data/moves/tmhm_moves.asm
@@ -2,6 +2,7 @@
; define constants for the item IDs and for the corresponding move values.
TechnicalMachines:
+ table_width 1, TechnicalMachines
n = 1
REPT NUM_TMS
@@ -14,6 +15,7 @@ ENDC
PURGE MOVE_FOR_TM
n = n + 1
ENDR
+ assert_table_length NUM_TMS
n = 1
REPT NUM_HMS
@@ -26,3 +28,4 @@ ENDC
PURGE MOVE_FOR_HM
n = n + 1
ENDR
+ assert_table_length NUM_TM_HM