summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-06-09 13:54:43 -0400
committerEnne Walker <enne.walker@gmail.com>2010-06-09 16:13:21 -0400
commit1cc7a59057f13fc35b69af69289a4369b5b66e07 (patch)
treedb60ebb124b5e1dfcfd509891420266981066bda /crawl-ref/source/itemname.h
parent5f7ba71ba70b5957157e4210b079d88614fb4fa2 (diff)
downloadcrawl-ref-1cc7a59057f13fc35b69af69289a4369b5b66e07.tar.gz
crawl-ref-1cc7a59057f13fc35b69af69289a4369b5b66e07.zip
Replace item.special magic numbers with enums.
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index 6c936501c5..9352ffb055 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -72,6 +72,22 @@ enum potion_description_qualifier_type
PDQ_NQUALS
};
+// Primary and secondary description counts for some types of items.
+// If you change these counts, update itemname.cc.
+enum
+{
+ NDSC_JEWEL_PRI = 13,
+ NDSC_JEWEL_SEC = 13,
+ NDSC_STAVE_PRI = 4,
+ NDSC_STAVE_SEC = 10,
+ NDSC_WAND_PRI = 12,
+ NDSC_WAND_SEC = 16,
+ NDSC_POT_PRI = PDC_NCOLOURS,
+ NDSC_POT_SEC = PDQ_NQUALS,
+ NDSC_BOOK_PRI = 10,
+ NDSC_BOOK_SEC = 8,
+};
+
bool is_vowel( const char chr );
int property( const item_def &item, int prop_type );