summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monspeak.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 02:51:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 02:51:44 +0000
commit0fb28d6c1b82e6c10e00c4cc9b946eb010d65017 (patch)
tree1377e3e61587069330bf28359a7a871723a458bf /crawl-ref/source/monspeak.cc
parent967e9e7bb84c639c1e5065c6a65a05972dbc88c5 (diff)
downloadcrawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.tar.gz
crawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.zip
Expand handling of monster intelligence and zombifiability to work on
the level of individual monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7148 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monspeak.cc')
-rw-r--r--crawl-ref/source/monspeak.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monspeak.cc b/crawl-ref/source/monspeak.cc
index a25720569b..71bf3fef1e 100644
--- a/crawl-ref/source/monspeak.cc
+++ b/crawl-ref/source/monspeak.cc
@@ -267,7 +267,7 @@ bool mons_speaks(const monsters *monster)
// animals only look at the current player form,
// smart monsters at the actual player genus
if (is_player_same_species(monster->type,
- mons_intel(monster->type) <= I_ANIMAL))
+ mons_intel(monster) <= I_ANIMAL))
{
prefixes.push_back("related"); // maybe overkill for Beogh?
}
@@ -373,7 +373,7 @@ bool mons_speaks(const monsters *monster)
// include info on if the monster's intelligence is at odds with
// its shape.
mon_body_shape shape = get_mon_shape(monster);
- mon_intel_type intel = mons_intel(monster->type);
+ mon_intel_type intel = mons_intel(monster);
if (shape >= MON_SHAPE_HUMANOID && shape <= MON_SHAPE_NAGA
&& intel < I_NORMAL)
{