zone.lua
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011 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 = "Fearscape",
level_range = {35, 45},
level_scheme = "player",
max_level = 1,
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 = 65, height = 65,
-- all_remembered = true,
-- all_lited = true,
persistent = "zone",
no_worldport = true,
is_demon_plane = true,
ambient_music = "Straight Into Ambush.ogg",
min_material_level = 3,
max_material_level = 5,
generator = {
map = {
class = "engine.generator.map.Forest",
edge_entrances = {2,8},
zoom = 3,
sqrt_percent = 30,
noise = "fbm_perlin",
floor = "LAVA_FLOOR",
wall = "LAVA_WALL",
up = "LAVA_FLOOR",
down = "LAVA_FLOOR",
do_ponds = {
nb = {2, 3},
size = {w=25, h=25},
pond = {{0.6, "LAVA"}, {0.8, "LAVA"}},
},
},
actor = {
class = "engine.generator.actor.Random",
nb_npc = {40, 40},
guardian = "DRAEBOR",
},
object = {
class = "engine.generator.object.Random",
nb_object = {0, 0},
},
trap = {
class = "engine.generator.trap.Random",
nb_trap = {12, 15},
},
},
on_enter = function(lev, old_lev, newzone)
if newzone then game.player:learnLore("fearscape-entry") end
end,
}