From 3b4bc6d2509c72358a181200606f5bb93689d9c7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 18 Jan 2009 21:42:02 +0000 Subject: * Also add blood bottling to command help for Vampires. * Better feedback when quiver cycling doesn't do anything. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8552 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monspeak.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monspeak.cc') diff --git a/crawl-ref/source/monspeak.cc b/crawl-ref/source/monspeak.cc index e0e863b3d5..6bdbfec5e6 100644 --- a/crawl-ref/source/monspeak.cc +++ b/crawl-ref/source/monspeak.cc @@ -533,14 +533,18 @@ bool mons_speaks(const monsters *monster) else { if (!monster->mname.empty() && _polyd_can_speak(monster)) + { msg = _get_speak_string(prefixes, monster->name(DESC_PLAIN), monster, no_player, no_foe, no_foe_name, no_god, unseen); + } if (msg.empty()) + { msg = _get_speak_string(prefixes, monster->base_name(DESC_PLAIN), monster, no_player, no_foe, no_foe_name, no_god, unseen); + } } // The exact name brought no results, try monster genus. @@ -636,9 +640,11 @@ bool mons_speaks(const monsters *monster) } if (msg.empty() || msg == "__NEXT") + { msg = _get_speak_string(prefixes, get_mon_shape_str(shape), monster, no_player, no_foe, no_foe_name, no_god, unseen); + } if (msg == "__NONE") { @@ -751,7 +757,7 @@ void mons_speaks_msg(const monsters *monster, const std::string &msg, // intent, we're falsely categorizing various things in the // function as spells and danger warning... everything else // just goes into the talk channel -- bwr - // [jpeg] Added MSGCH_TALK_VISUAL for silent "chatter" + // [jpeg] Added MSGCH_TALK_VISUAL for silent "chatter". msg_channel_type msg_type = def_chan; std::string param = ""; @@ -791,7 +797,7 @@ void mons_speaks_msg(const monsters *monster, const std::string &msg, line = line.substr(pos + 1); } - // except for VISUAL none of the above influence these + // Except for VISUAL none of the above influence these. if (line == "__YOU_RESIST" && (!silence || param == "VISUAL")) { canned_msg( MSG_YOU_RESIST ); -- cgit v1.2.3-54-g00ecf