Skip to content
Snippets Groups Projects
Commit d14f4151 authored by DarkGod's avatar DarkGod
Browse files

Escort quests will now spawn in the Infinite Dungeon (between levels 5 and 40)

parent e96a567f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -118,7 +118,9 @@ function _M:onBirth(birther)
-- Make a list of random escort levels
local race_def = birther.birth_descriptor_def.race[self.descriptor.race]
local subrace_def = birther.birth_descriptor_def.subrace[self.descriptor.subrace]
local world = birther.birth_descriptor_def.world[self.descriptor.world]
local def = subrace_def.random_escort_possibilities or race_def.random_escort_possibilities
if world.random_escort_possibilities then def = world.random_escort_possibilities end -- World overrides
if def then
local zones = {}
for i, zd in ipairs(def) do for j = zd[2], zd[3] do zones[#zones+1] = {zd[1], j} end end
......
......@@ -108,6 +108,7 @@ newBirthDescriptor{
"Every 10 levels after level 50 the maximum points of each talent will increase by one.",
},
descriptor_choices = default_eyal_descriptors{ difficulty = { Tutorial = "never"} },
random_escort_possibilities = { {"infinite-dungeon", 5, 40} },
copy = {
-- Can levelup forever
resolvers.generic(function(e) e.max_level = nil end),
......
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