summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-util.cc6
-rw-r--r--crawl-ref/source/mon-util.h2
2 files changed, 6 insertions, 2 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)
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h
index 2e40854be4..789d424eb0 100644
--- a/crawl-ref/source/mon-util.h
+++ b/crawl-ref/source/mon-util.h
@@ -644,7 +644,7 @@ bool mons_enslaved_body_and_soul(const monsters *mon);
bool mons_enslaved_twisted_soul(const monsters *mon);
bool mons_enslaved_intact_soul(const monsters *mon);
bool mons_enslaved_soul(const monsters *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);
// last updated 12may2000 {dlb}