Skip to content
Snippets Groups Projects
Commit 55e96a30 authored by dg's avatar dg
Browse files

Blighted Ruins are only 3 levels

git-svn-id: http://svn.net-core.org/repos/t-engine4@6018 51575b47-30f0-44d4-a5cc-537603b46e54
parent f233dbe4
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ newBirthDescriptor{
-- Force undead faction to undead
resolvers.genericlast(function(e) e.faction = "undead" end),
starting_zone = "blighted-ruins",
starting_level = 4, starting_level_force_down = true,
starting_level = 3, starting_level_force_down = true,
starting_quest = "start-undead",
undead = 1,
forbid_nature = 1,
......
......@@ -21,7 +21,7 @@ return {
name = "Blighted Ruins",
level_range = {1, 8},
level_scheme = "player",
max_level = 4,
max_level = 3,
decay = {300, 800},
actor_adjust_level = function(zone, level, e) return zone.base_level + e:getRankLevelAdjust() + (zone.max_level - level.level) + rng.range(-1,2) end,
level_adjust_level = function(zone, level) return zone.base_level + (zone.max_level - level.level) end,
......@@ -69,7 +69,7 @@ return {
up = "UP_WILDERNESS",
}, },
},
[4] = {
[3] = {
no_level_connectivity = true,
generator = { map = {
class = "engine.generator.map.Static",
......@@ -77,23 +77,9 @@ return {
}, },
},
},
on_enter = function(_, _, newzone)
if newzone and not game.zone.created_lore then
local levels = {2,3,4,5,6}
game.zone.created_lore = {}
for i = 1, 4 do
local lev = rng.tableRemove(levels)
game.zone.created_lore[lev] = i
print("Lore "..i.." on level "..lev)
end
end
end,
post_process = function(level)
-- Put lore near the up stairs
if game.zone.created_lore and game.zone.created_lore[level.level] then
-- Place a lore note on the level
game:placeRandomLoreObject("NOTE"..game.zone.created_lore[level.level])
end
game:placeRandomLoreObjectScale("NOTE", 5, 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"}},
......
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