summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 10:44:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 10:44:02 +0000
commitf22bd308c51e4f4425210e98d6623a6ed2be344a (patch)
tree1526b82248f63e17c4bba62c4278ab6d7efc10ad /crawl-ref/source/directn.cc
parentdb8fcd01b8752fe7d9e29763ddcb2e64da064af6 (diff)
downloadcrawl-ref-f22bd308c51e4f4425210e98d6623a6ed2be344a.tar.gz
crawl-ref-f22bd308c51e4f4425210e98d6623a6ed2be344a.zip
Just for kicks, reuse monster property mname to name zombies/skeletons
raised from unique monster's corpses. The unique number is stored in orig_monnum, so this doesn't apply to orcish followers. I thought it would be cool to have Sigmund the human zombie in your ranks, or to fight againt Blork the orc skeleton. The corpses are currently not differentiated (just "human corpse", "orc skeleton"), just the resulting undead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5343 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 5b85906d81..30cad152a3 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -2180,9 +2180,12 @@ std::string get_monster_desc(const monsters *mon, bool full_desc,
{
desc = mon->name(mondtype);
// For named monsters also mention the base type in the form of
- // "Morbeogh the orc priest".
+ // "Morbeogh the orc priest", "Sigmund the human zombie".
+ // Note that the only difference between DESC_BASENAME and DESC_PLAIN
+ // is that basename will ignore mname, so the monster _must_ be named
+ // for this to make any sense.
if (!(mon->mname).empty())
- desc += " " + mons_type_name(mon->type, DESC_NOCAP_THE);
+ desc += " the " + mon->name(DESC_BASENAME);
}
std::string weap = "";