From f6b3e40c7790de69a40c425e21368f17c9b181fb Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 27 Oct 2007 12:50:24 +0000 Subject: Trunk->0.3 merge (2497): Monster pickup fix for blademasters and master archers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2626 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mon-util.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index c80e119850..ac1a2f54ed 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -2856,6 +2856,15 @@ bool monsters::wants_weapon(const item_def &weap) const if (is_fixed_artefact( weap )) return (false); + // Blademasters and master archers like their starting weapon and + // don't want another, thank you. + if (type == MONS_DEEP_ELF_BLADEMASTER + || type == MONS_DEEP_ELF_MASTER_ARCHER) + { + return (false); + } + + // XXX: Make this check dependent on creature size. // wimpy monsters (Kob, gob) shouldn't pick up halberds etc // of course, this also block knives {dlb}: if ((::mons_species(type) == MONS_KOBOLD -- cgit v1.2.3-54-g00ecf