summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 07:51:57 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 07:51:57 +0000
commit3c8efd591ced0fbdad0da577af07011700df7562 (patch)
treee8a9a84b64e9e893c66f21c3a4fcf710dd25545d /crawl-ref/source/makeitem.cc
parent59eb3c3f326a284b63b58b95d9396746d9664bbe (diff)
downloadcrawl-ref-3c8efd591ced0fbdad0da577af07011700df7562.tar.gz
crawl-ref-3c8efd591ced0fbdad0da577af07011700df7562.zip
Fix 1895579: Uniques dropping their specific artefacts.
Asmodeus now won't drop the Sceptre, Dispater not the Staff, and Cerebov will also keep his Sword. Also, monsters will only pick up potions if they can use them, i.e. only vampires drink blood, and undead and non-living can't use !healing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4254 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 1c916d0c7b..3093e091e3 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2846,10 +2846,9 @@ static bool weapon_is_visibly_special(const item_def &item)
&& get_equip_desc(item) == ISFLAG_NO_DESC;
}
-static void give_monster_item(
- monsters *mon, int thing,
- bool force_item = false,
- bool (monsters::*pickupfn)(item_def&, int) = NULL)
+static void give_monster_item(monsters *mon, int thing,
+ bool force_item = false,
+ bool (monsters::*pickupfn)(item_def&, int) = NULL)
{
item_def &mthing = mitm[thing];