summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 53000eed75..fb51386cf2 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2920,6 +2920,16 @@ static void give_wand(monsters *mon, int level)
static void give_potion(monsters *mon, int level)
{
//mv - give potion
+ if (mons_species( mon->type ) == MONS_VAMPIRE && one_chance_in(5))
+ {
+ const int thing_created =
+ items(0, OBJ_POTIONS, POT_BLOOD, true, level, 0);
+ if (thing_created == NON_ITEM)
+ return;
+
+ mitm[thing_created].flags = 0;
+ give_monster_item(mon, thing_created);
+ }
if (mons_is_unique( mon->type ) && one_chance_in(3))
{
const int thing_created =