diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:33:05 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:44:41 -0400 |
commit | 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch) | |
tree | 5a7b79846bd7f07e40310da46b21873774a08ef7 /data/moves/animations.asm | |
parent | e1f6bb53939be34f55e05cbbd19cd758936b3422 (diff) |
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'data/moves/animations.asm')
-rw-r--r-- | data/moves/animations.asm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/moves/animations.asm b/data/moves/animations.asm index 8249c50d..0d8a2bd4 100644 --- a/data/moves/animations.asm +++ b/data/moves/animations.asm @@ -1,4 +1,5 @@ AttackAnimationPointers: + table_width 2, AttackAnimationPointers dw PoundAnim dw KarateChopAnim dw DoubleSlapAnim @@ -164,6 +165,7 @@ AttackAnimationPointers: dw SlashAnim dw SubstituteAnim dw StruggleAnim + assert_table_length NUM_ATTACKS dw ShowPicAnim dw EnemyFlashAnim dw PlayerFlashAnim @@ -201,6 +203,7 @@ AttackAnimationPointers: dw HidePicAnim dw ThrowRockAnim dw ThrowBaitAnim + assert_table_length NUM_ATTACK_ANIMS dw ZigZagScreenAnim ; each animation is a list of subanimations |