Skip to content
Snippets Groups Projects
cloak.lua 1.89 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_CLOAK",
dg's avatar
dg committed
	slot = "CLOAK",
dg's avatar
dg committed
	type = "armor", subtype="cloak",
	add_name = " (#ARMOR#)",
	display = "(", color=colors.UMBER, image = resolvers.image_material("cloak", "cloth"),
	moddable_tile = resolvers.moddable_tile("cloak"),
dg's avatar
dg committed
	encumber = 2,
	rarity = 6,
	desc = [[A cloth coat typically worn as a loose outer garment. It is spacious enough to be worn even over bulky metal armour.]],
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/generic.lua",
dg's avatar
dg committed
	egos = "/data/general/objects/egos/cloak.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
}

newEntity{ base = "BASE_CLOAK",
dg's avatar
dg committed
	name = "linen cloak", short_name = "linen",
dg's avatar
dg committed
	level_range = {1, 20},
	cost = 2,
	material_level = 1,
	wielder = {
		combat_def = 1,
	},
}

newEntity{ base = "BASE_CLOAK",
dg's avatar
dg committed
	name = "cashmere cloak", short_name = "cashmere",
dg's avatar
dg committed
	level_range = {20, 40},
	cost = 4,
	material_level = 3,
	wielder = {
		combat_def = 2,
	},
}

newEntity{ base = "BASE_CLOAK",
dg's avatar
dg committed
	name = "elven-silk cloak", short_name = "e.silk",
dg's avatar
dg committed
	level_range = {40, 50},
	cost = 7,
	material_level = 5,
	wielder = {
		combat_def = 3,
	},
}