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/monstuff.cc | |
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/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 201d374041..6c849a2ba6 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -333,11 +333,16 @@ monster_type fill_out_corpse(const monsters* monster, item_def& corpse, corpse.colour = monster->colour; if (!monster->mname.empty()) + { corpse.props[CORPSE_NAME_KEY] = monster->mname; + corpse.props[CORPSE_NAME_TYPE_KEY] + = (long) (monster->flags & MF_NAME_MASK); + } else if (mons_is_unique(monster->type)) { corpse.props[CORPSE_NAME_KEY] = mons_type_name(monster->type, DESC_PLAIN); + corpse.props[CORPSE_NAME_TYPE_KEY] = (long) 0; } return (corpse_class); |