diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 07:53:58 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 07:53:58 +0000 |
commit | b3878ade17db57b348d950892108b77ace2aa8f0 (patch) | |
tree | df25e90759a2e74b9b331f4dc5c781250a500dc5 /crawl-ref/source/makeitem.cc | |
parent | cb371dc5d4f25044434fe5b632a769abf5b949ad (diff) | |
download | crawl-ref-b3878ade17db57b348d950892108b77ace2aa8f0.tar.gz crawl-ref-b3878ade17db57b348d950892108b77ace2aa8f0.zip |
Disallow monster vampires to drain monsters (and the player) if they
have no blood - and yes, this means that using the right Transformation
can help you avoid this. Also, never drain player vampires.
Occasionally equip monster vampires with potions of blood, which they
drink in times of emergency with a healing effect between !healing and
!heal wounds.
Don't allow the player to use the Bat Form transformation (or end said
transformation) if doing so would result in death by stat loss.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4236 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 10 |
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 = |