summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.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/items.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/items.cc')
-rw-r--r--crawl-ref/source/items.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 70fa4e2fe1..c8f20d1cf0 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1012,7 +1012,7 @@ static void _origin_freeze(item_def &item, int x, int y)
}
}
-static std::string _origin_monster_name(const item_def &item)
+std::string origin_monster_name(const item_def &item)
{
const int monnum = item.orig_monnum - 1;
if (monnum == MONS_PLAYER_GHOST)
@@ -1022,11 +1022,6 @@ static std::string _origin_monster_name(const item_def &item)
return mons_type_name(monnum, DESC_NOCAP_A);
}
-static std::string _origin_monster_desc(const item_def &item)
-{
- return (_origin_monster_name(item));
-}
-
static std::string _origin_place_desc(const item_def &item)
{
return prep_branch_level_name(item.orig_place);
@@ -1114,7 +1109,7 @@ std::string origin_desc(const item_def &item)
else
{
desc += "You took " + _article_it(item) + " off "
- + _origin_monster_desc(item) + " ";
+ + origin_monster_name(item) + " ";
}
}
else