Forked from
tome / Tales of MajEyal
13433 commits behind the upstream repository.
-
dg authored
git-svn-id: http://svn.net-core.org/repos/t-engine4@1671 51575b47-30f0-44d4-a5cc-537603b46e54
dg authoredgit-svn-id: http://svn.net-core.org/repos/t-engine4@1671 51575b47-30f0-44d4-a5cc-537603b46e54
zone.lua 2.04 KiB
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return {
name = "Ruins of Telmur",
level_range = {35, 40},
level_scheme = "player",
max_level = 5,
decay = {300, 800},
actor_adjust_level = function(zone, level, e) return zone.base_level + e:getRankLevelAdjust() + level.level-1 + rng.range(-1,2) end,
width = 20, height = 20,
all_remembered = true,
all_lited = true,
persistant = "zone",
ambiant_music = "Remembrance.ogg",
generator = {
map = {
class = "engine.generator.map.Roomer",
nb_rooms = 5,
rooms = {"simple", "pilar", {"money_vault",5}},
lite_room_chance = 20,
['.'] = "FLOOR",
['#'] = "WALL",
up = "UP",
down = "DOWN",
door = "DOOR",
},
actor = {
class = "engine.generator.actor.Random",
nb_npc = {14, 14},
guardian = "SHADE_OF_SARUMAN",
},
object = {
class = "engine.generator.object.Random",
nb_object = {6, 9},
},
trap = {
class = "engine.generator.trap.Random",
nb_trap = {6, 9},
},
},
on_enter = function(lev, old_lev, newzone)
if newzone and not game.level.shown_warning then
require("engine.ui.Dialog"):simplePopup("Orthanc", "As you approch the tower you notice it is utterly destroyed, only the basement remaining.")
game.level.shown_warning = true
end
end,
levels =
{
[1] = {
generator = { map = {
up = "UP_WILDERNESS",
}, },
},
},
}