summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:35:45 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:35:45 +0000
commit6a8469f3af9fff8fd6670be7bab4b7652ef3f957 (patch)
tree35a4e1e2e49016d8c3a31d0052e6c341b95582f4 /crawl-ref/source/monstuff.cc
parent783d701df6b0352a730c211be593d91c27b07b4a (diff)
downloadcrawl-ref-6a8469f3af9fff8fd6670be7bab4b7652ef3f957.tar.gz
crawl-ref-6a8469f3af9fff8fd6670be7bab4b7652ef3f957.zip
Let pacified monsters wander again, although less often than other
monsters, in case the way to the exit is blocked and they need to find another way there. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6337 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index c20888d58e..e015897ed8 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -3108,7 +3108,7 @@ static void _handle_behaviour(monsters *mon)
// wandering monsters at least appear to have some sort of
// attention span. -- bwr
if (mon->x == mon->target_x && mon->y == mon->target_y
- || mons_is_batty(mon) || (!isPacified && one_chance_in(20)))
+ || mons_is_batty(mon) || one_chance_in(isPacified ? 30 : 20))
{
bool need_target = true;
if (travelling)