diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 21:48:24 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 21:48:24 +0000 |
commit | 633a81c7f6b92c1e85f9efde063a01bf3ac34f27 (patch) | |
tree | 7b4b2547d52ba3574eed4afa2e86e293c5d531bf /crawl-ref/source/monstuff.cc | |
parent | 8bb521bee8bc20d670518a43c7c4cfab150f90ea (diff) | |
download | crawl-ref-633a81c7f6b92c1e85f9efde063a01bf3ac34f27.tar.gz crawl-ref-633a81c7f6b92c1e85f9efde063a01bf3ac34f27.zip |
Per jpeg's suggestion, don't make pacified monsters wander around their
target so often by ignoring the 1/20 chance of their doing so (unless
the monster in question is batty).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6306 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 902cad17ff..7b79da8b2f 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3104,7 +3104,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) || one_chance_in(20)) + || mons_is_batty(mon) || (!isPacified && one_chance_in(20))) { bool need_target = true; if (travelling) |