summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnmon.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-03-14 12:16:13 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-03-14 12:22:56 +0100
commit0448cb3a83729ec9fa736040d4421fa9ec765ef7 (patch)
treef41e4cd9b2ff17fb91512ac70a6863af7498ef98 /crawl-ref/source/l_dgnmon.cc
parenta743b71986562ee5a51a7522bf1caa38fa4bb56d (diff)
downloadcrawl-ref-0448cb3a83729ec9fa736040d4421fa9ec765ef7.tar.gz
crawl-ref-0448cb3a83729ec9fa736040d4421fa9ec765ef7.zip
Don't restrict set_random_mon_list() to portal vaults only.
Encompass vaults are valid users too -- like, non-fire monsters shouldn't generally spawn on minmay_sea_of_fire except for stairs. And even regular vaults might reasonably use it with some care, especially if the old selector is included as an alternative ("gnoll / place:D:4").
Diffstat (limited to 'crawl-ref/source/l_dgnmon.cc')
-rw-r--r--crawl-ref/source/l_dgnmon.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/crawl-ref/source/l_dgnmon.cc b/crawl-ref/source/l_dgnmon.cc
index 65f4bd6444..87e448349d 100644
--- a/crawl-ref/source/l_dgnmon.cc
+++ b/crawl-ref/source/l_dgnmon.cc
@@ -50,15 +50,6 @@ void register_monslist(lua_State *ls)
static int dgn_set_random_mon_list(lua_State *ls)
{
- // Don't complain if we're being called when the map is being loaded
- // and validated.
- if (you.level_type != LEVEL_PORTAL_VAULT
- && (you.entering_level || Generating_Level))
- {
- luaL_error(ls, "Can only be used in portal vaults.");
- return (0);
- }
-
const int nargs = lua_gettop(ls);
map_def *map = NULL;
@@ -79,16 +70,6 @@ static int dgn_set_random_mon_list(lua_State *ls)
map = *_map;
}
- if (map)
- {
- if (map->orient != MAP_ENCOMPASS || map->place.is_valid()
- || !map->depths.empty())
- {
- luaL_error(ls, "Can only be used in portal vaults.");
- return (0);
- }
- }
-
int list_pos = (map != NULL) ? 2 : 1;
mons_list mlist = _lua_get_mlist(ls, list_pos);