From 0fb28d6c1b82e6c10e00c4cc9b946eb010d65017 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 6 Oct 2008 02:51:44 +0000 Subject: 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 --- crawl-ref/source/spells1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 4666e8f176..56a49cff5c 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -652,7 +652,7 @@ static bool _can_pacify_monster(const monsters *mon, const int healed) // I was thinking of jellies when I wrote this, but maybe we shouldn't // exclude zombies and such... (jpeg) - if (mons_intel(mon->type) <= I_PLANT) // no self-awareness + if (mons_intel(mon) <= I_PLANT) // no self-awareness return (false); const mon_holy_type holiness = mons_holiness(mon); @@ -671,7 +671,7 @@ static bool _can_pacify_monster(const monsters *mon, const int healed) if (mons_is_sleeping(mon)) // not aware of what is happening return (false); - const int factor = (mons_intel(mon->type) <= I_ANIMAL) ? 3 : // animals + const int factor = (mons_intel(mon) <= I_ANIMAL) ? 3 : // animals (is_player_same_species(mon->type)) ? 2 // same species : 1; // other -- cgit v1.2.3-54-g00ecf