Skip to content

Commit

Permalink
Define all unused type names with rept (pret#1071)
Browse files Browse the repository at this point in the history
Fixes pret#1070
  • Loading branch information
Rangi42 authored and Idain committed Sep 12, 2023
1 parent 46e64a4 commit ddbd967
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 ddbd967

Please sign in to comment.