summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-05 12:05:42 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-05 12:05:42 +0000
commit4ea301d9910996cd3ef97a56b3cba86fd95685bb (patch)
tree6e874ba47e6d6b7da7c5f8349ce5da6db0b7515b /crawl-ref/source/monstuff.cc
parentb1dfd6626d73db44b352a800237921cf9aeeb0ef (diff)
downloadcrawl-ref-4ea301d9910996cd3ef97a56b3cba86fd95685bb.tar.gz
crawl-ref-4ea301d9910996cd3ef97a56b3cba86fd95685bb.zip
[1632567] Greedy explore now tries to do the Right Thing with mimics.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@915 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index a3620b3c70..e6f9f17a24 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -77,7 +77,7 @@ static bool immobile_monster[MAX_MONSTERS];
// This function creates an artificial item to represent a mimic's appearance.
// Eventually, mimics could be redone to be more like Dancing wepaons...
// there'd only be one type and it would look like the item it carries. -- bwr
-void get_mimic_item( const struct monsters *mimic, item_def &item )
+void get_mimic_item( const monsters *mimic, item_def &item )
{
ASSERT( mimic != NULL && mons_is_mimic( mimic->type ) );
@@ -1769,7 +1769,7 @@ bool simple_monster_message(struct monsters *monster, const char *event,
{
char buff[INFO_SIZE];
- if (mons_near( monster )
+ if (mons_near( monster )
&& (channel == MSGCH_MONSTER_SPELL || player_monster_visible(monster)))
{
snprintf( buff, sizeof(buff), "%s%s",
@@ -5337,7 +5337,7 @@ static int map_wand_to_mspell(int wand_type)
return (mzap);
}
-void seen_monster(struct monsters *monster)
+void seen_monster(monsters *monster)
{
if ( monster->flags & MF_SEEN )
return;
@@ -5345,9 +5345,10 @@ void seen_monster(struct monsters *monster)
// First time we've seen this particular monster
monster->flags |= MF_SEEN;
- if ( MONST_INTERESTING(monster) &&
- monster->type != MONS_PANDEMONIUM_DEMON &&
- monster->type != MONS_PLAYER_GHOST )
+ if ( !mons_is_mimic(monster->type)
+ && MONST_INTERESTING(monster)
+ && monster->type != MONS_PANDEMONIUM_DEMON
+ && monster->type != MONS_PLAYER_GHOST )
{
take_note(
Note(NOTE_SEEN_MONSTER, monster->type, 0,