diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2011-12-13 11:11:34 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2011-12-13 13:04:28 -0600 |
commit | 0b1556c6a121885bebdef0715902bec3de0628ef (patch) | |
tree | 00fc472da9dd6e35764249d03341bf851bd07f4d /crawl-ref/source/mon-place.h | |
parent | bafccbf6c3c35be3ef2c59f66fb6c7ef5f311dd8 (diff) | |
download | crawl-ref-0b1556c6a121885bebdef0715902bec3de0628ef.tar.gz crawl-ref-0b1556c6a121885bebdef0715902bec3de0628ef.zip |
Fix Fedhas' turning zombies into skeletons.
monster::upgrade_type() wasn't adjusting their HP, AC or EV properly,
and it really shouldn't have been used anyway, since zombie -> skeleton
is a downgrade.
The new function downgrade_zombie_to_skeleton() handles this now.
mon-place.cc may not be the best place for it, but keeping it there
means that all the zombified stat adjustment functions are in one place.
Diffstat (limited to 'crawl-ref/source/mon-place.h')
-rw-r--r-- | crawl-ref/source/mon-place.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h index 1f1bf6dcac..0ca45d5c4a 100644 --- a/crawl-ref/source/mon-place.h +++ b/crawl-ref/source/mon-place.h @@ -54,6 +54,8 @@ void roll_zombie_hp(monster* mon); void define_zombie(monster* mon, monster_type ztype, monster_type cs); +bool downgrade_zombie_to_skeleton(monster* mon); + // Converts a monster_type involving RANDOM_MONSTER and similar into an // explicit monster type usable on the current level. monster_type resolve_monster_type(monster_type mon_type, |