summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-07 17:31:08 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-07 17:31:08 +0000
commit7fd9d9a617f65db7695d4858deed6f2cc01fd72c (patch)
treecc91af45fc2b41de12e2fd0fa1a6beaa7bfd5779 /crawl-ref
parentc3b47f1e1b4b72496dce147b8e7a14b4d584757d (diff)
downloadcrawl-ref-7fd9d9a617f65db7695d4858deed6f2cc01fd72c.tar.gz
crawl-ref-7fd9d9a617f65db7695d4858deed6f2cc01fd72c.zip
High-HD monsters no longer pick up wands.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1787 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mon-util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 9f2f83775c..7cbeed364f 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2697,7 +2697,8 @@ bool monsters::pickup_missile(item_def &item, int near)
bool monsters::pickup_wand(item_def &item, int near)
{
- return pickup(item, MSLOT_WEAPON, near);
+ // Only low-HD monsters bother with wands.
+ return hit_dice < 14 && pickup(item, MSLOT_WEAPON, near);
}
bool monsters::pickup_scroll(item_def &item, int near)