diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-20 03:29:01 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-20 03:29:01 +0100 |
commit | 630cb13277100dd2dfbdd6881b64086b5580405f (patch) | |
tree | 3415e70d076511f58e6498c8c2020dff7f0b1387 /crawl-ref/source/mon-place.h | |
parent | 93f01275cadbe79330f1b8329fe58ea556035773 (diff) | |
download | crawl-ref-630cb13277100dd2dfbdd6881b64086b5580405f.tar.gz crawl-ref-630cb13277100dd2dfbdd6881b64086b5580405f.zip |
Rewrite zombie selection.
It now uses regular mon_pick instead of an extremely quirky loop that spins
around with a low chance of success, relaxing requirements slowly. If there
are no zombifiables for the given branch, monsters from parallel branches
get allowed too.
Note that there are two code paths for zombie selection, the other one
being requesting a zombie via mapdef.
REAL CHANGE: depth is actually obeyed now, rather than merely kind of.
This gets rid of all those rat and kobold zombies later on, at the cost of
severely reducing variety in some cases. The base depth is current level+4,
like before.
Diffstat (limited to 'crawl-ref/source/mon-place.h')
-rw-r--r-- | crawl-ref/source/mon-place.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h index 88dcf98b13..18219ee473 100644 --- a/crawl-ref/source/mon-place.h +++ b/crawl-ref/source/mon-place.h @@ -40,13 +40,11 @@ monster_type pick_random_zombie(); /* *********************************************************************** * 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(int power, - bool hack_hd = false, +monster_type pick_local_zombifiable_monster(level_id place, monster_type cs = MONS_NO_MONSTER, const coord_def& pos = coord_def()); |