Skip to content

Commit

Permalink
Define all unused type names with rept (#1071)
Browse files Browse the repository at this point in the history
Fixes #1070
  • Loading branch information
Rangi42 authored Aug 16, 2023
1 parent f3b3108 commit 0d899cb
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 0d899cb

Please sign in to comment.