Skip to content
Snippets Groups Projects
descriptors.lua 2.7 KiB
Newer Older
  • Learn to ignore specific revisions
  • dg's avatar
    dg committed
    -- ToME - Tales of Middle-Earth
    -- Copyright (C) 2009, 2010 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
    
    
    dg's avatar
    dg committed
    newBirthDescriptor{
    	type = "base",
    	name = "base",
    	desc = {
    	},
    
    dg's avatar
    dg committed
    	descriptor_choices =
    	{
    		race =
    		{
    			__ALL__ = "never",
    			Human = "allow",
    			Elf = "allow",
    			Dwarf = "allow",
    			Hobbit = "allow",
    
    dg's avatar
    dg committed
    --			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,
    
    dg's avatar
    dg committed
    			Undead = function() return config.settings.tome.allow_build.undead and "allow" or "never" end,
    
    dg's avatar
    dg committed
    		},
    
    		class =
    		{
    			__ALL__ = "allow",
    
    dg's avatar
    dg committed
    			Wilder = function() return (
    
    dg's avatar
    dg committed
    				config.settings.tome.allow_build.wilder_summoner or
    				config.settings.tome.allow_build.wilder_wyrmic
    
    dg's avatar
    dg committed
    				) and "allow" or "never"
    			end,
    
    dg's avatar
    dg committed
    		},
    	},
    
    dg's avatar
    dg committed
    	talents = {},
    	experience = 1.0,
    
    dg's avatar
    dg committed
    	body = { INVEN = 1000, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
    
    dg's avatar
    dg committed
    
    	copy = {
    
    dg's avatar
    dg committed
    		money = 10,
    
    dg's avatar
    dg committed
    		resolvers.equip{ id=true,
    
    dg's avatar
    dg committed
    			{type="lite", subtype="lite", name="brass lantern"},
    		},
    
    dg's avatar
    dg committed
    		resolvers.inventory{ id=true,
    
    dg's avatar
    dg committed
    			{type="potion", subtype="potion", name="potion of lesser healing", ego_chance=-1000},
    			{type="potion", subtype="potion", name="potion of lesser healing", ego_chance=-1000},
    			{type="potion", subtype="potion", name="potion of lesser healing", ego_chance=-1000},
    
    dg's avatar
    dg committed
    		},
    
    dg's avatar
    dg committed
    		resolvers.generic(function(e)
    			e.hotkey[9] = {"inventory", "potion of lesser healing"}
    		end),
    
    dg's avatar
    dg committed
    	},
    
    dg's avatar
    dg committed
    }
    
    
    dg's avatar
    dg committed
    -- Races
    
    dg's avatar
    dg committed
    load("/data/birth/races/human.lua")
    load("/data/birth/races/elf.lua")
    load("/data/birth/races/hobbit.lua")
    load("/data/birth/races/dwarf.lua")
    
    dg's avatar
    dg committed
    load("/data/birth/races/orc.lua")
    load("/data/birth/races/troll.lua")
    --load("/data/birth/races/spider.lua")
    
    dg's avatar
    dg committed
    load("/data/birth/races/undead.lua")
    
    dg's avatar
    dg committed
    
    -- Sexes
    
    dg's avatar
    dg committed
    load("/data/birth/sexes.lua")
    
    dg's avatar
    dg committed
    
    -- Classes
    
    dg's avatar
    dg committed
    load("/data/birth/classes/warrior.lua")
    load("/data/birth/classes/archer.lua")
    load("/data/birth/classes/rogue.lua")
    load("/data/birth/classes/mage.lua")
    
    dg's avatar
    dg committed
    load("/data/birth/classes/wilder.lua")