summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 16:44:48 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 16:44:48 +0000
commit9d74ad5fb0661a0fc2ac424adcbed85761954d25 (patch)
tree368af85251f5cfc610f25d3e3fa7e1088e5bd4aa /crawl-ref/source/message.cc
parent9505de56091b195cb5d33ef88dcf9cfcc724cc89 (diff)
downloadcrawl-ref-9d74ad5fb0661a0fc2ac424adcbed85761954d25.tar.gz
crawl-ref-9d74ad5fb0661a0fc2ac424adcbed85761954d25.zip
Yet another change to monster speech and silencing...
I found my previous change to block all messages passed through MSGCH_TALK when silenced was too restrictive, so I've added another channel MSGCH_TALK_VISUAL and adapted the monster speech files accordingly. For example, imps can now also "talk" when silenced, but only the visual stuff will actually be output. (This automatically takes care of lowering the output likelihood.) And no, this doesn't hurt any, as visual talk also won't interrupt travel or resting. And I added a how-to file on monster speech, which was the main reason for my silence during the last couple of hours. It's not that the database system is that complicated but it surely can't hurt to give players who want to add something an idea of what is possible and how to go about it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2108 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r--crawl-ref/source/message.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index 49a92b0f9d..c09c1056b1 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -273,6 +273,7 @@ int channel_to_colour( msg_channel_type channel, int param )
break;
case MSGCH_TALK:
+ case MSGCH_TALK_VISUAL:
ret = WHITE;
break;
@@ -485,7 +486,8 @@ static void mpr_check_patterns(const std::string& message,
// reusing travel_stop_message here
if (channel != MSGCH_DIAGNOSTICS && channel != MSGCH_EQUIPMENT
- && channel != MSGCH_SOUND && channel != MSGCH_TALK)
+ && channel != MSGCH_TALK && channel != MSGCH_TALK_VISUAL
+ && channel != MSGCH_SOUND)
{
interrupt_activity( AI_MESSAGE, channel_to_str(channel) + ":" + message );
}