Skip to content
Snippets Groups Projects
lites.lua 2.17 KiB
Newer Older
  • Learn to ignore specific revisions
  • dg's avatar
    dg committed
    -- ToME - Tales of Maj'Eyal
    
    dg's avatar
    dg committed
    -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
    
    dg's avatar
    dg committed
    --
    -- 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
    newEntity{
    	define_as = "BASE_LITE",
    	slot = "LITE",
    
    dg's avatar
    dg committed
    	type = "lite", subtype="lite", image = resolvers.image_material("lite", {"brass","","dwarven","","faenorian"}),
    
    dg's avatar
    dg committed
    	display = "~",
    
    dg's avatar
    dg committed
    	desc = [[Light up the dark places of the world!]],
    
    dg's avatar
    dg committed
    	randart_able = "/data/general/objects/random-artifacts/generic.lua",
    
    dg's avatar
    dg committed
    	egos = "/data/general/objects/egos/lite.lua", egos_chance = { prefix=resolvers.mbonus(15, 3), suffix=resolvers.mbonus(15, 3) },
    
    dg's avatar
    dg committed
    }
    
    newEntity{ base = "BASE_LITE",
    
    dg's avatar
    dg committed
    	name = "brass lantern", color=colors.UMBER, short_name = "brass",
    
    dg's avatar
    dg committed
    	desc = [[A brass container with a wick emerging from it, protected from draughts by a sheet of greased paper. It can be carried by a handle.]],
    	level_range = {1, 20},
    	rarity = 7,
    	encumber = 2,
    	cost = 0.5,
    
    dg's avatar
    dg committed
    	material_level = 1,
    
    dg's avatar
    dg committed
    
    	wielder = {
    		lite = 2,
    	},
    }
    
    newEntity{ base = "BASE_LITE",
    
    dg's avatar
    dg committed
    	name = "alchemist's lamp", color=colors.LIGHT_UMBER, short_name = "alchemist",
    
    dg's avatar
    dg committed
    	desc = [[A normal brass lantern, enhanced by alchemy to make it brighter.]],
    
    dg's avatar
    dg committed
    	level_range = {20, 35},
    
    dg's avatar
    dg committed
    	encumber = 1,
    
    dg's avatar
    dg committed
    	cost = 3,
    
    dg's avatar
    dg committed
    	material_level = 3,
    
    dg's avatar
    dg committed
    
    	wielder = {
    		lite = 3,
    	},
    }
    
    newEntity{ base = "BASE_LITE",
    
    dg's avatar
    dg committed
    	name = "dwarven lantern", color=colors.GOLD, short_name = "dwarven",
    
    dg's avatar
    dg committed
    	desc = [[Made by the Dwarves, this lantern provides light in the darkest recesses of the earth.]],
    
    dg's avatar
    dg committed
    	level_range = {35, 50},
    
    dg's avatar
    dg committed
    	encumber = 1,
    	cost = 4,
    
    dg's avatar
    dg committed
    	material_level = 5,
    
    dg's avatar
    dg committed
    
    	wielder = {
    		lite = 4,
    	},
    }
    
    dg's avatar
    dg committed