diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-09-30 07:53:54 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-09-30 07:53:54 -0500 |
commit | 4e17e55da614123ce5f6dca6931038f1a836d91c (patch) | |
tree | 6ee641fea8b6f2758ae4569c0ae11b68111fc3ea /crawl-ref/source/mon-place.h | |
parent | 147fa4f2495976018fe7b0552588224296fb7164 (diff) | |
download | crawl-ref-4e17e55da614123ce5f6dca6931038f1a836d91c.tar.gz crawl-ref-4e17e55da614123ce5f6dca6931038f1a836d91c.zip |
Simplify the previous stat preservation routines for zombies.
The use of the original monster type for the stats and the base type is
now the default, so the parameter is removed. Additionally, the
original monster type is now properly passed in to the original
mgen_data() calls where applicable, so define_zombie() no longer needs
to effectively be called twice for spells and abilities that create
zombified types. (Yred's Enslave Soul still needs to call it, since it
bypasses the monster placement code entirely when it recreates the
monster.)
Diffstat (limited to 'crawl-ref/source/mon-place.h')
-rw-r--r-- | crawl-ref/source/mon-place.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h index a765cf2ebe..27378d464a 100644 --- a/crawl-ref/source/mon-place.h +++ b/crawl-ref/source/mon-place.h @@ -51,8 +51,7 @@ monster_type pick_local_zombifiable_monster(int power, monster_type cs = MONS_NO_MONSTER, const coord_def& pos = coord_def()); -void define_zombie(monster* mon, monster_type ztype, monster_type cs, - bool force_ztype = false); +void define_zombie(monster* mon, monster_type ztype, monster_type cs); // Converts a monster_type involving RANDOM_MONSTER and similar into an // explicit monster type usable on the current level. |