Skip to content
Snippets Groups Projects
Commit 17ea4a83 authored by dg's avatar dg
Browse files

fix zone transition

fix wilder allowed after new char


git-svn-id: http://svn.net-core.org/repos/t-engine4@480 51575b47-30f0-44d4-a5cc-537603b46e54
parent a82ce67e
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ function _M:selectType(type)
local allowed = true
for j, od in ipairs(self.descriptors) do
if od.descriptor_choices[type] then
local what = od.descriptor_choices[type][d.name] or od.descriptor_choices[type].__ALL__
local what = util.getval(od.descriptor_choices[type][d.name]) or util.getval(od.descriptor_choices[type].__ALL__)
if what and what == "allow" then
allowed = true
elseif what and what == "never" then
......
......@@ -56,6 +56,7 @@ function _M:leave()
save:saveZone(self)
save:close()
end
game.level = nil
end
--- Parses the npc/objects list and compute rarities for random generation
......
......@@ -10,8 +10,8 @@ newBirthDescriptor{
subclass =
{
__ALL__ = "never",
Summoner = config.settings.tome.allow_build.wilder_summoner and "allow" or "never",
Wyrmic = config.settings.tome.allow_build.wilder_wyrmic and "allow" or "never",
Summoner = function() return config.settings.tome.allow_build.wilder_summoner and "allow" or "never" end,
Wyrmic = function() return config.settings.tome.allow_build.wilder_wyrmic and "allow" or "never" end,
},
},
copy = {
......
......@@ -12,18 +12,19 @@ newBirthDescriptor{
Elf = "allow",
Dwarf = "allow",
Hobbit = "allow",
-- Orc = config.settings.tome.allow_build.evil and "allow" or "never",
-- Troll = config.settings.tome.allow_build.evil and "allow" or "never",
-- Spider = config.settings.tome.allow_build.spider and "allow" or "never",
-- Orc = function() return config.settings.tome.allow_build.evil and "allow" or "never" end,
-- Troll = function() return config.settings.tome.allow_build.evil and "allow" or "never" end,
-- Spider = function() return config.settings.tome.allow_build.spider and "allow" or "never" end,
},
class =
{
__ALL__ = "allow",
Wilder = (
Wilder = function() return (
config.settings.tome.allow_build.wilder_summoner or
config.settings.tome.allow_build.wilder_wyrmic
) and "allow" or "never",
) and "allow" or "never"
end,
},
},
talents = {},
......
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