Newer
Older
-- Copyright (C) 2009 - 2014 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 = "Ardhungol",
dg
committed
level_range = {25, 32},
actor_adjust_level = function(zone, level, e) return zone.base_level + e:getRankLevelAdjust() + level.level-1 + rng.range(-1,2) end,
-- all_remembered = true,
-- all_lited = true,
color_shown = {0.5, 1, 0.7, 1},
color_obscure = {0.5*0.6, 1*0.6, 0.7*0.6, 0.6},
ambient_music = {"The Ancients.ogg","weather/dungeon_base.ogg"},
min_material_level = 3,
max_material_level = 4,
generator = {
map = {
class = "engine.generator.map.Cavern",
zoom = 16,
floor = function() if rng.percent(96) then return "CAVEFLOOR" else return "WORMHOLE" end end,
wall = "CAVEWALL",
up = "CAVE_LADDER_UP",
down = "CAVE_LADDER_DOWN",
door = "CAVEFLOOR",
class = "mod.class.generator.actor.Random",
guardian = "UNGOLE",
},
object = {
class = "engine.generator.object.Random",
nb_object = {6, 9},
},
trap = {
class = "engine.generator.trap.Random",
},
},
levels =
{
[1] = {
generator = { map = {
[2] = { width = 40, height = 40, generator = {map = {min_floor=600}} },
[3] = { width = 20, height = 20, generator = {map = {min_floor=200}, actor = {nb_npc = {20, 25}}} },
-- Place a lore note on each level
game:placeRandomLoreObject("NOTE"..level.level)
game.state:makeAmbientSounds(level, {
dungeon2={ chance=250, volume_mod=1, pitch=1, random_pos={rad=10}, files={"ambient/dungeon/dungeon1","ambient/dungeon/dungeon2","ambient/dungeon/dungeon3","ambient/dungeon/dungeon4","ambient/dungeon/dungeon5"}},
})
end,