summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mpr.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-29 20:36:26 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-29 20:36:26 +0000
commitbfb78773d40980efe0925662d12128ae101a7729 (patch)
tree873ccd4c6c216704e04c2fe3583412ec3dd88184 /crawl-ref/source/mpr.h
parentbee19fd8b7da68818a8d6a2d1a204308fb602efc (diff)
downloadcrawl-ref-bfb78773d40980efe0925662d12128ae101a7729.tar.gz
crawl-ref-bfb78773d40980efe0925662d12128ae101a7729.zip
Add two new channels, MSGCH_FRIEND_SPELL and MSGCH_FRIEND_ENCHANT,
whose sole purpose is to not interrupt resting if it's a friend doing the spellcasting or enchanting. Unspam the message handling for orcs going in a battle frenzy, and allow the message back into normal game. Fix 1953632: Named monsters' names are shown for unseen invisible monsters. Change general monster name handling to refer to friendly monsters as "your monster" rather than "the monster", like was already the case for monster speech. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4769 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mpr.h')
-rw-r--r--crawl-ref/source/mpr.h57
1 files changed, 30 insertions, 27 deletions
diff --git a/crawl-ref/source/mpr.h b/crawl-ref/source/mpr.h
index c61c5097f2..0219be6df5 100644
--- a/crawl-ref/source/mpr.h
+++ b/crawl-ref/source/mpr.h
@@ -20,33 +20,36 @@
// everything properly
enum msg_channel_type
{
- MSGCH_PLAIN, // regular text
- MSGCH_PROMPT, // various prompts
- MSGCH_GOD, // god/religion (param is god)
- MSGCH_PRAY, // praying messages (param is god)
- MSGCH_DURATION, // effect down/warnings
- MSGCH_DANGER, // serious life threats (ie very large HP attacks)
- MSGCH_WARN, // much less serious threats
- MSGCH_FOOD, // hunger notices
- MSGCH_RECOVERY, // recovery from disease/stat/poison condition
- MSGCH_SOUND, // messages about things the player hears
- MSGCH_TALK, // monster talk (param is monster type)
- MSGCH_TALK_VISUAL, // silent monster "talk" (not restricted by silence)
- MSGCH_INTRINSIC_GAIN, // player level/stat/species-power gains
- MSGCH_MUTATION, // player gain/lose mutations
- MSGCH_MONSTER_SPELL, // monsters casting spells
- MSGCH_MONSTER_ENCHANT,// monsters enchantments up and down
- MSGCH_MONSTER_DAMAGE, // monster damage reports (param is level)
- MSGCH_MONSTER_TARGET, // message marking the monster as a target
- MSGCH_ROTTEN_MEAT, // messages about chunks/corpses becoming rotten
- MSGCH_EQUIPMENT, // equipment listing messages
- MSGCH_FLOOR_ITEMS, // like equipment, but lists of floor items
- MSGCH_MULTITURN_ACTION, // delayed action messages
- MSGCH_EXAMINE, // messages describing monsters, features, items
- MSGCH_EXAMINE_FILTER, // "less important" instances of the above
- MSGCH_DIAGNOSTICS, // various diagnostic messages
- MSGCH_TUTORIAL, // messages for tutorial
- NUM_MESSAGE_CHANNELS // always last
+ MSGCH_PLAIN, // regular text
+ MSGCH_PROMPT, // various prompts
+ MSGCH_GOD, // god/religion (param is god)
+ MSGCH_PRAY, // praying messages (param is god)
+ MSGCH_DURATION, // effect down/warnings
+ MSGCH_DANGER, // serious life threats (ie very large HP attacks)
+ MSGCH_WARN, // much less serious threats
+ MSGCH_FOOD, // hunger notices
+ MSGCH_RECOVERY, // recovery from disease/stat/poison condition
+ MSGCH_SOUND, // messages about things the player hears
+ MSGCH_TALK, // monster talk (param is monster type)
+ MSGCH_TALK_VISUAL, // silent monster "talk" (not restricted by silence)
+ MSGCH_INTRINSIC_GAIN, // player level/stat/species-power gains
+ MSGCH_MUTATION, // player gain/lose mutations
+ MSGCH_MONSTER_SPELL, // monsters casting spells
+ MSGCH_MONSTER_ENCHANT, // monsters'*' enchantments up and down
+ MSGCH_FRIEND_SPELL, // allied monsters casting spells
+ MSGCH_FRIEND_ENCHANT, // allied monsters' enchantments up and down
+ MSGCH_MONSTER_DAMAGE, // monster damage reports (param is level)
+ MSGCH_MONSTER_TARGET, // message marking the monster as a target
+ MSGCH_ROTTEN_MEAT, // messages about chunks/corpses becoming rotten
+ MSGCH_EQUIPMENT, // equipment listing messages
+ MSGCH_FLOOR_ITEMS, // like equipment, but lists of floor items
+ MSGCH_MULTITURN_ACTION, // delayed action messages
+ MSGCH_EXAMINE, // messages describing monsters, features, items
+ MSGCH_EXAMINE_FILTER, // "less important" instances of the above
+ MSGCH_DIAGNOSTICS, // various diagnostic messages
+ MSGCH_TUTORIAL, // messages for tutorial
+
+ NUM_MESSAGE_CHANNELS // always last
};
enum msg_colour_type