summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-speak.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-09-17 11:38:47 -0400
committerNeil Moore <neil@s-z.org>2013-09-17 11:42:22 -0400
commit98ea790a5a98019386e88a116cf401a2e12ec988 (patch)
tree5cd2c1713606e4d61cb2827a50ce1ce8ec5df592 /crawl-ref/source/mon-speak.cc
parent8ee74395fa23d74b23b617024b1e2fb5311103e5 (diff)
downloadcrawl-ref-98ea790a5a98019386e88a116cf401a2e12ec988.tar.gz
crawl-ref-98ea790a5a98019386e88a116cf401a2e12ec988.zip
Don't let mute creatures speak (Reaver, #7559).
This includes offers of Beogh worship. We don't distinguish between vocalisations and other sounds, so this will block some messages it really should not, for example the catoblepas "speech": @The_monster@ stomps on the ground. WARN: You hear tremors.
Diffstat (limited to 'crawl-ref/source/mon-speak.cc')
-rw-r--r--crawl-ref/source/mon-speak.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-speak.cc b/crawl-ref/source/mon-speak.cc
index 6bbd4cf6af..2a55f19b53 100644
--- a/crawl-ref/source/mon-speak.cc
+++ b/crawl-ref/source/mon-speak.cc
@@ -818,6 +818,9 @@ bool mons_speaks_msg(monster* mons, const string &msg,
bool noticed = false; // Any messages actually printed?
+ if (mons->has_ench(ENCH_MUTE))
+ silence = true;
+
for (int i = 0, size = lines.size(); i < size; ++i)
{
string line = lines[i];