diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 23:18:30 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 23:20:10 -0800 |
commit | 25e42bedb537cfcf27d837d59df48e42e93f2bd4 (patch) | |
tree | 9088ff06a80c6008f573d0de538f244200c212f6 /crawl-ref/source/itemname.h | |
parent | a7ae274043d1829aedc5b9eb66235d720343e5bc (diff) | |
download | crawl-ref-25e42bedb537cfcf27d837d59df48e42e93f2bd4.tar.gz crawl-ref-25e42bedb537cfcf27d837d59df48e42e93f2bd4.zip |
Corpse names for unusally named monsters
Fix corpse names (and zombie names) for monsters which are named with
name_adjective, name_suffix or name_replace.
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r-- | crawl-ref/source/itemname.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h index 731c7b7443..271bf2d340 100644 --- a/crawl-ref/source/itemname.h +++ b/crawl-ref/source/itemname.h @@ -10,7 +10,8 @@ #include "externs.h" -#define CORPSE_NAME_KEY "corpse_name_key" +#define CORPSE_NAME_KEY "corpse_name_key" +#define CORPSE_NAME_TYPE_KEY "corpse_name_type_key" struct item_types_pair { @@ -126,6 +127,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); +std::string get_corpse_name(const item_def &corpse, + unsigned long *name_type = NULL); #endif |