summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 16:59:23 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 16:59:23 +0000
commit6fd898e22140b8d794ad3646d71107eb5eaf6c66 (patch)
treef7382a90788a9b54465c7ad94b6f3beb81754aad /crawl-ref/source/mon-util.cc
parent58ac4b5e85d0d11952322ef72558f538519b77c0 (diff)
downloadcrawl-ref-6fd898e22140b8d794ad3646d71107eb5eaf6c66.tar.gz
crawl-ref-6fd898e22140b8d794ad3646d71107eb5eaf6c66.zip
Make name_zombified_unique() return a bool to indicate whether it
succeeded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8271 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index b69357040f..9588e310e1 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -977,7 +977,7 @@ bool mons_enslaved_soul(const monsters *mon)
|| mons_enslaved_intact_soul(mon));
}
-void name_zombified_unique(monsters *mon, int mc, const std::string mon_name)
+bool name_zombified_unique(monsters *mon, int mc, const std::string mon_name)
{
if (mons_is_unique(mc))
{
@@ -987,7 +987,11 @@ void name_zombified_unique(monsters *mon, int mc, const std::string mon_name)
// to avoid mentions of e.g "Blork the orc the orc zombie".
if (mc == MONS_BLORK_THE_ORC)
mon->mname = "Blork";
+
+ return (true);
}
+
+ return (false);
}
int downscale_zombie_damage(int damage)