summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 23:05:28 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 23:05:28 +0000
commitdbeaea2cefc46c4f325e5b82f982bdce567a96bd (patch)
treecb3fc965a36584fc0e4ef9f28cd5aa5fbcba3570 /crawl-ref/source/monstuff.cc
parent6f8607037f31748e1bddd2d3addf5d1d50f0b2c4 (diff)
downloadcrawl-ref-dbeaea2cefc46c4f325e5b82f982bdce567a96bd.tar.gz
crawl-ref-dbeaea2cefc46c4f325e5b82f982bdce567a96bd.zip
Implement [2489129]: Remove the maximum HP hack for zombified monsters
other than spectral things, and make them use the M_NO_REGEN flag instead. Also, make them unable to flee, in order to preserve previous behavior and fix [2482719]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8286 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 992c06637b..6eeea59214 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -6804,12 +6804,6 @@ static void _handle_monster_move(int i, monsters *monster)
continue;
}
- if (mons_is_zombified(monster)
- && monster->type != MONS_SPECTRAL_THING)
- {
- monster->max_hit_points = monster->hit_points;
- }
-
if (igrd(monster->pos()) != NON_ITEM
&& (mons_itemuse(monster) == MONUSE_WEAPONS_ARMOUR
|| mons_itemuse(monster) == MONUSE_EATS_ITEMS))
@@ -8461,6 +8455,8 @@ bool monster_descriptor(int which_class, unsigned char which_descriptor)
if (which_descriptor == MDSC_NOMSG_WOUNDS)
{
+ // Zombified monsters other than spectral things don't show
+ // wounds.
if (mons_class_is_zombified(which_class)
&& which_class != MONS_SPECTRAL_THING)
{