-- 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

newEntity{
	define_as = "BASE_RING",
	slot = "FINGER",
	type = "jewelry", subtype="ring", image = resolvers.image_material("ring", {"copper", "steel", "gold", "stralite", "voratun"}),
	display = "=",
	encumber = 0.1,
	rarity = 6,
	desc = [[戒指可以具有魔法属性。]],
	randart_able = { attack=40, physical=40, spell=40, def=40, misc=40 },
	-- Most rings are ego items
	egos = "/data/general/objects/egos/rings.lua", egos_chance = { prefix=resolvers.mbonus(50, 40), suffix=resolvers.mbonus(50, 40) }, egos_chance_decay = 0.5,
}
newEntity{
	define_as = "BASE_AMULET",
	slot = "NECK",
	type = "jewelry", subtype="amulet", image = resolvers.image_material("amulet", {"copper", "steel", "gold", "stralite", "voratun"}),
	display = '"',
	encumber = 0.1,
	rarity = 8,
	desc = [[项链可以具有魔法属性。]],
	randart_able = { attack=40, physical=40, spell=40, def=40, misc=40 },
	egos = "/data/general/objects/egos/amulets.lua", egos_chance = { prefix=resolvers.mbonus(50, 40), suffix=resolvers.mbonus(50, 40) }, egos_chance_decay = 0.5,
}

newEntity{ base = "BASE_RING",
	name = "铜戒指", color = colors.UMBER,
	unided_name = "铜戒指", short_name = "copper",
	level_range = {1, 10},
	cost = 1,
	material_level = 1,
}
newEntity{ base = "BASE_RING",
	name = "钢戒指", color = colors.SLATE,
	unided_name = "钢戒指", short_name = "steel",
	level_range = {10, 20},
	cost = 2,
	material_level = 2,
}
newEntity{ base = "BASE_RING",
	name = "金戒指", color = colors.YELLOW,
	unided_name = "金戒指", short_name = "gold",
	level_range = {20, 30},
	cost = 5,
	material_level = 3,
}
newEntity{ base = "BASE_RING",
	name = "蓝锆石戒指", color = {r=50, g=50, b=50},
	unided_name = "蓝锆石戒指", short_name = "stralite",
	level_range = {30, 40},
	cost = 10,
	material_level = 4,
}
newEntity{ base = "BASE_RING",
	name = "沃瑞钽戒指", color = colors.WHITE,
	unided_name = "沃瑞钽戒指", short_name = "voratun",
	level_range = {40, 50},
	cost = 15,
	material_level = 5,
}

newEntity{ base = "BASE_AMULET",
	name = "铜项链", color = colors.UMBER,
	unided_name = "铜项链", short_name = "copper",
	level_range = {1, 10},
	cost = 1,
	material_level = 1,
}
newEntity{ base = "BASE_AMULET",
	name = "钢项链", color = colors.SLATE,
	unided_name = "钢项链", short_name = "steel",
	level_range = {10, 20},
	cost = 2,
	material_level = 2,
}
newEntity{ base = "BASE_AMULET",
	name = "金项链", color = colors.YELLOW,
	unided_name = "金项链", short_name = "gold",
	level_range = {20, 30},
	cost = 5,
	material_level = 3,
}
newEntity{ base = "BASE_AMULET",
	name = "蓝锆石项链", color = {r=50, g=50, b=50},
	unided_name = "蓝锆石项链", short_name = "stralite",
	level_range = {30, 40},
	cost = 10,
	material_level = 4,
}
newEntity{ base = "BASE_AMULET",
	name = "沃瑞钽项链", color = colors.WHITE,
	unided_name = "沃瑞钽项链", short_name = "voratun",
	level_range = {40, 50},
	cost = 15,
	material_level = 5,
}
