Define all unused type names with rept (#1071)

Fixes #1070
This commit is contained in:
Rangi
2023-08-16 10:22:35 -04:00
committed by GitHub
parent f3b31087e3
commit 0d899cbd3b

View File

@@ -1,6 +1,7 @@
TypeNames: TypeNames:
; entries correspond to types (see constants/type_constants.asm) ; entries correspond to types (see constants/type_constants.asm)
table_width 2, TypeNames table_width 2, TypeNames
dw Normal dw Normal
dw Fighting dw Fighting
dw Flying dw Flying
@@ -12,17 +13,13 @@ TypeNames:
dw Ghost dw Ghost
dw Steel dw Steel
assert_table_length UNUSED_TYPES assert_table_length UNUSED_TYPES
rept UNUSED_TYPES_END - UNUSED_TYPES - 1 ; discount CURSE_TYPE
dw Normal dw Normal
dw Normal endr
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw CurseType dw CurseType
assert_table_length UNUSED_TYPES_END assert_table_length UNUSED_TYPES_END
dw Fire dw Fire
dw Water dw Water
dw Grass dw Grass