diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-04-06 13:34:19 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-04-06 13:34:19 +0200 |
commit | 5011c052c0d2764a80dd3767b5a05e9a493f2e2f (patch) | |
tree | 944bc9b89c4414f6a8c76eb1a6aacddd1053ac04 /crawl-ref/source/mon-place.h | |
parent | 59209a2c43d080e314e485be6769cf0d93369345 (diff) | |
download | crawl-ref-5011c052c0d2764a80dd3767b5a05e9a493f2e2f.tar.gz crawl-ref-5011c052c0d2764a80dd3767b5a05e9a493f2e2f.zip |
Merge monster choice code for defining zombies.
_define_zombie and pick_local_zombifiable_monster_type had almost
the same code...
Diffstat (limited to 'crawl-ref/source/mon-place.h')
-rw-r--r-- | crawl-ref/source/mon-place.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h index f235b74ffc..53bca6364d 100644 --- a/crawl-ref/source/mon-place.h +++ b/crawl-ref/source/mon-place.h @@ -39,10 +39,17 @@ int place_monster(mgen_data mg, bool force_pos = false); monster_type pick_random_zombie(); /* *********************************************************************** - * Returns a monster class type of a zombie that would be generated + * Returns a monster class type of a zombie for generation * on the player's current level. + * hack_hd: Hack to increase monster HD outside main dungeon. + * cs: Restrict to monster types that fit this zombie type + * (e.g. monsters with skeletons for MONS_SKELETON_SMALL) + * pos: Check habitat at position. * *********************************************************************** */ -monster_type pick_local_zombifiable_monster_type(int power); +monster_type pick_local_zombifiable_monster(int power, + bool hack_hd = false, + monster_type cs = MONS_NO_MONSTER, + const coord_def& pos = coord_def()); class level_id; |