summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-13 13:22:31 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-13 13:22:31 +0000
commit0cac1ce29227a7352540e9b3479db5b3fc8f55d6 (patch)
treeaeaf1d99c0ef8c01c91dd74904d458e8bee2e3cd
parent8dc30e2aaa5c1c00b8094d178244d7d67cf647fa (diff)
downloadcrawl-ref-0cac1ce29227a7352540e9b3479db5b3fc8f55d6.tar.gz
crawl-ref-0cac1ce29227a7352540e9b3479db5b3fc8f55d6.zip
In monsters::can_drown(), make monster vampires able to drown, as player
vampires can. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3620 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/mon-util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index e0a2cd14ee..77595aea39 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2492,11 +2492,12 @@ bool monsters::can_pass_through_feat(dungeon_feature_type grid) const
bool monsters::can_drown() const
{
- // Mummies can fall apart in water; ghouls and demons can drown in
- // water/lava.
+ // Mummies can fall apart in water; ghouls, vampires, and demons can
+ // drown in water/lava.
return (!mons_res_asphyx(this)
|| mons_genus(type) == MONS_MUMMY
|| mons_genus(type) == MONS_GHOUL
+ || mons_genus(type) == MONS_VAMPIRE
|| holiness() == MH_DEMONIC);
}