Verify data table and name list sizes with assertion macros

Fixes #312
This commit is contained in:
Rangi 2021-03-25 16:33:05 -04:00
parent e1f6bb5393
commit 95ec2cf039
139 changed files with 863 additions and 437 deletions

View file

@ -1292,7 +1292,7 @@ ItemUseMedicine:
ld [hl], a
pop hl
call .recalculateStats
ld hl, VitaminText
ld hl, VitaminStats
ld a, [wcf91]
sub HP_UP - 1
ld c, a
@ -1425,12 +1425,7 @@ VitaminNoEffectText:
text_far _VitaminNoEffectText
text_end
VitaminText:
db "HEALTH@"
db "ATTACK@"
db "DEFENSE@"
db "SPEED@"
db "SPECIAL@"
INCLUDE "data/battle/stat_names.asm"
ItemUseBait:
ld hl, ThrewBaitText
@ -2490,7 +2485,7 @@ GetMaxPP:
dec a
push hl
ld hl, Moves
ld bc, MoveEnd - Moves
ld bc, MOVE_LENGTH
call AddNTimes
ld de, wcd6d
ld a, BANK(Moves)