summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-01-30 21:03:27 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-01-30 21:03:27 -0700
commit08548d2bf3d08e4dc82e2b670d5d3460bda9de54 (patch)
treeaad44cf56c4c0f46ad073346b87e2ddb1a1241be /crawl-ref/source/mon-pick.cc
parentc3eaa25662d0e13871b7ff2fc66403d9bb9dbed4 (diff)
downloadcrawl-ref-08548d2bf3d08e4dc82e2b670d5d3460bda9de54.tar.gz
crawl-ref-08548d2bf3d08e4dc82e2b670d5d3460bda9de54.zip
Functionality for branch zombie lists (currently unused).
This is designed with the Hell zombie problem in mind, though recent tweaks have also caused, say, Crypt to have problems with generating zombies outside of _place_assorted_zombies() - right now it only naturally generates deep dwarf zombies and elf zombies. If you don't want to use it for a branch, just set the zombie list to the basic monster list and the current behaviour is retained. That's the case for all branches currently.
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r--crawl-ref/source/mon-pick.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc
index 62c36c5bd7..29fb6e724b 100644
--- a/crawl-ref/source/mon-pick.cc
+++ b/crawl-ref/source/mon-pick.cc
@@ -229,6 +229,13 @@ const pop_entry* fish_population(branch_type br, bool lava)
return population_water[br].pop;
}
+const pop_entry* zombie_population(branch_type br)
+{
+ COMPILE_CHECK(ARRAYSZ(population_zombie) == NUM_BRANCHES);
+ ASSERT_RANGE(br, 0, NUM_BRANCHES);
+ return population_zombie[br].pop;
+}
+
#if defined(DEBUG_DIAGNOSTICS) || defined(DEBUG_TESTS)
static bool _not_skeletonable(monster_type mt)
{