summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monspeak.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 21:42:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 21:42:02 +0000
commit3b4bc6d2509c72358a181200606f5bb93689d9c7 (patch)
tree7623632766c29b64f7c90f1c84638a191218148b /crawl-ref/source/monspeak.cc
parenta6d89fbabb631ecbdcbb86c59aa70c28fd7da696 (diff)
downloadcrawl-ref-3b4bc6d2509c72358a181200606f5bb93689d9c7.tar.gz
crawl-ref-3b4bc6d2509c72358a181200606f5bb93689d9c7.zip
* 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
Diffstat (limited to 'crawl-ref/source/monspeak.cc')
-rw-r--r--crawl-ref/source/monspeak.cc10
1 files changed, 8 insertions, 2 deletions
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 );