Skip to content
Snippets Groups Projects
Commit 0c244490 authored by dg's avatar dg
Browse files

Random zones from the Exploratory Farportal will not let you get out of the...

Random zones from the Exploratory Farportal will not let you get out of the normal level range, nor let you miss the way back home


git-svn-id: http://svn.net-core.org/repos/t-engine4@3418 51575b47-30f0-44d4-a5cc-537603b46e54
parent 78750565
No related branches found
No related tags found
No related merge requests found
......@@ -1232,6 +1232,7 @@ function _M:createRandomZone(zbase)
ambient_music = rng.table(musics),
min_material_level = data.min_material_level,
max_material_level = data.max_material_level,
persistent = "zone_temporary",
reload_lists = false,
generator = {
map = layout.gen(data),
......@@ -1239,6 +1240,7 @@ function _M:createRandomZone(zbase)
trap = { class = "engine.generator.trap.Random", nb_trap = nb_trap, },
object = { class = "engine.generator.object.Random", nb_object = nb_object, },
},
levels = { [1] = { generator = { map = { up = data:getFloor() } } } },
npc_list = npcs,
grid_list = grids,
object_list = mod.class.Object:loadList("/data/general/objects/objects.lua"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment