Skip to content
Snippets Groups Projects
Commit 000753ec authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@3705 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5b3ffc59
No related branches found
No related tags found
No related merge requests found
-- 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
newBirthDescriptor{
type = "class",
name = "None",
desc = {
"Your race can not select a class, it has its own powers.",
},
descriptor_choices =
{
subclass =
{
__ALL__ = "disallow",
None = "allow",
},
},
}
newBirthDescriptor{
type = "subclass",
name = "None",
desc = {
"Your race can not select a class, it has its own powers.",
},
not_on_random_boss = true,
}
......@@ -56,6 +56,11 @@ newBirthDescriptor{
-- Nobody can be a sun paladin but elves
['Anorithil'] = "disallow",
},
class =
{
-- Specific to some races
None = "disallow",
},
},
talents = {},
experience = 1.0,
......@@ -246,3 +251,4 @@ load("/data/birth/classes/corrupted.lua")
load("/data/birth/classes/afflicted.lua")
load("/data/birth/classes/chronomancer.lua")
load("/data/birth/classes/psionic.lua")
load("/data/birth/classes/none.lua")
......@@ -65,7 +65,7 @@ newBirthDescriptor
class =
{
__ALL__ = "disallow",
Warrior = "allow",
None = "allow",
},
subclass =
{
......
......@@ -569,6 +569,9 @@ function _M:generateClasses()
if self.descriptors_by_type.difficulty == "Tutorial" then
self:classUse(tree[1], 1)
self:classUse(tree[1].nodes[1], 2)
elseif tree[1].id == "None" then
self:classUse(tree[1], 1)
self:classUse(tree[1].nodes[1], 2)
end
end
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