summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-11 02:04:06 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-11 02:04:06 +0000
commitda22878d26b040a59f621a3a79730ee4dd7f9816 (patch)
treef5685508acc38089b9248e2a908d00e3c912e53a /crawl-ref/source/itemname.h
parentc811dc1ac36c6e69df242cb04d5f7512d4fe4d5b (diff)
downloadcrawl-ref-da22878d26b040a59f621a3a79730ee4dd7f9816.tar.gz
crawl-ref-da22878d26b040a59f621a3a79730ee4dd7f9816.zip
Allow for the creation of named zombies and spectral things from named
non-unique monsters (including polymorphed uniques, so you can get things like "A rat shaped Royal Jelly zombie"). Include the name of unique and named monsters in their corpse names, for things like "The corpse of the Lernaean hydra" or "The human corpse of Sigmund". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8407 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index d735708246..b98715bcfd 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -12,6 +12,8 @@
#include "externs.h"
+#define CORPSE_NAME_KEY "corpse_name_key"
+
struct item_types_pair
{
object_class_type base_type;
@@ -146,4 +148,7 @@ std::vector<std::string> item_name_list_for_glyph(unsigned glyph);
* *********************************************************************** */
const char* wand_type_name(int wandtype);
+bool is_named_corpse(const item_def &corpse);
+std::string get_corpse_name(const item_def &corpse);
+
#endif