summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-14 11:45:19 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-14 11:45:19 +0000
commit96a3b31ff02c4f260140f26d9cb79948c67b2dec (patch)
treef31731e5e41ee3cd678776e55914818f33fe19eb /crawl-ref/source/fight.cc
parentb023db56a817c7dea12b16004eb9cb72de1b3edb (diff)
downloadcrawl-ref-96a3b31ff02c4f260140f26d9cb79948c67b2dec.tar.gz
crawl-ref-96a3b31ff02c4f260140f26d9cb79948c67b2dec.zip
Vampires are now only poison resistant if thirsty or worse, and I've
added a list of their current resistances and such to the status (@) output, depending on their state of hunger. If poison resistant they'll now also attempt to drain monsters of type CE_POISONOUS. The regeneration rate at full and "alive" has been lowered significantly. (The effect of a permanent ring of regeneration without any of the drawbacks was much too strong.) Oh, and non-thirsty vampires (satiated or above) can now be rotted, e.g. by potions of decay. Also, Red Draconians and White Draconians now gain their resistances at xl 14 rather than 18, as suggested in FR 1865186. (I'm leaving the rest of that FR alone for now.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3632 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 99ca63105f..551073571e 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2036,7 +2036,8 @@ bool melee_attack::apply_damage_brand()
// don't drink poisonous or mutagenic blood
if (mons_has_blood(def->type)
- && (chunk_type == CE_CLEAN || chunk_type == CE_CONTAMINATED))
+ && (chunk_type == CE_CLEAN || chunk_type == CE_CONTAMINATED
+ || chunk_type == CE_POISONOUS && player_res_poison() ))
{
mprf( "You draw %s's blood!",
def->name(DESC_NOCAP_THE, true).c_str() );