From 0c2444906e66939c2f4d622899aae4326a4c84d9 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 20 May 2011 11:26:28 +0000 Subject: [PATCH] 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 --- game/modules/tome/class/GameState.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/modules/tome/class/GameState.lua b/game/modules/tome/class/GameState.lua index 75e13f875c..70a5e528d3 100644 --- a/game/modules/tome/class/GameState.lua +++ b/game/modules/tome/class/GameState.lua @@ -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"), -- GitLab