Skip to content
Snippets Groups Projects
leather-belt.lua 1.68 KiB
Newer Older
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

newEntity{
	define_as = "BASE_LEATHER_BELT",
	slot = "BELT",
	type = "armor", subtype="belt",
	display = "(", color=colors.UMBER, image = resolvers.image_material("belt", "leather"),
	encumber = 1,
	rarity = 6,
	desc = [[A belt that goes around your waist.]],
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/generic.lua",
dg's avatar
dg committed
	egos = "/data/general/objects/egos/belt.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
}

newEntity{ base = "BASE_LEATHER_BELT",
dg's avatar
dg committed
	name = "rough leather belt", short_name = "rough",
dg's avatar
dg committed
	level_range = {1, 20},
	cost = 1,
	material_level = 1,
}

newEntity{ base = "BASE_LEATHER_BELT",
dg's avatar
dg committed
	name = "hardened leather belt", short_name = "hardened",
dg's avatar
dg committed
	level_range = {20, 40},
	cost = 2,
	material_level = 3,
}

newEntity{ base = "BASE_LEATHER_BELT",
dg's avatar
dg committed
	name = "drakeskin leather belt", short_name = "drakeskin",
dg's avatar
dg committed
	level_range = {40, 50},
	cost = 4,
	material_level = 5,
}