Skip to content

Commit

Permalink
Define all unused type names with rept
Browse files Browse the repository at this point in the history
Fixes #1070
  • Loading branch information
Rangi42 committed Aug 15, 2023
1 parent a5c36a7 commit 4be2d4f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions data/types/names.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TypeNames:
; entries correspond to types (see constants/type_constants.asm)
table_width 2, TypeNames

dw Normal
dw Fighting
dw Flying
Expand All @@ -12,17 +13,13 @@ TypeNames:
dw Ghost
dw Steel
assert_table_length UNUSED_TYPES

rept UNUSED_TYPES_END - UNUSED_TYPES - 1 ; discount CURSE_TYPE
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
endr
dw CurseType
assert_table_length UNUSED_TYPES_END

dw Fire
dw Water
dw Grass
Expand Down

0 comments on commit 4be2d4f

Please sign in to comment.