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

newBirthDescriptor{
	type = "class",
	name = "Corrupter",
	display_name= "堕落系",
	locked = function() return profile.mod.allow_build.corrupter end,
	locked_desc = "    黑暗的思想、黑色的血液、 卑鄙的行为... 那些背信弃义的 人会发现他们的力量所在。",
	desc = {
		"    堕落者身上有魔鬼的印记，他 们是世界的祸害，为魔鬼卖命，服 务于他们的主人，或者他们自己成 为主人。",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			Reaver = "allow",
			Corruptor = "allow",
		},
	},
	copy = {
		max_life = 120,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Reaver",
	display_name= "收割者",
	locked = function() return profile.mod.allow_build.corrupter_reaver end,
	locked_desc = "    收割你队伍里的3个灵魂，你 会发现黑暗的力量进入你的体内。",
	desc = {
		"    收割者是一个恐怖的对手，军 队中的每一个部下都装备武器。",
		"    他们可以驾驭魔鬼的枯萎术， 将恐怖的疾病传染给他的目标，然 后击碎他们的头颅。",
		"他们最重要的属性是：力量和魔法。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +4 力量，+1 敏捷，+0 体质",
		"#LIGHT_BLUE# * +4 魔法，+0 意志，+0 灵巧",
	},
	stats = { str=4, mag=4, dex=1, },
	talents_types = {
		["technique/combat-training"]={true, 0.3},
		["cunning/survival"]={false, 0.1},
		["corruption/sanguisuge"]={true, 0.3},
		["corruption/reaving-combat"]={true, 0.3},
		["corruption/scourge"]={true, 0.3},
		["corruption/plague"]={true, 0.3},
		["corruption/hexes"]={false, 0.3},
		["corruption/curses"]={false, 0.3},
		["corruption/bone"]={true, 0.3},
	},
	talents = {
		[ActorTalents.T_CORRUPTED_STRENGTH] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
		[ActorTalents.T_DRAIN] = 1,
		[ActorTalents.T_REND] = 1,
	},
	copy = {
		resolvers.equip{ id=true,
			{type="weapon", subtype="waraxe", name="铁斧", autoreq=true, ego_chance=-1000},
			{type="weapon", subtype="waraxe", name="铁斧", autoreq=true, ego_chance=-1000},
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000}
		},
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Corruptor",
	display_name= "堕落者",
	locked = function() return profile.mod.allow_build.corrupter_corruptor end,
	locked_desc = "    枯萎和邪恶组成了强大的力量。 接受诱惑成为堕落者中的一员吧。",
	desc = {
		"    堕落者是一个恐怖的对手，使 用黑暗魔法并汲取目标的灵魂。",
		"    他们驾驭魔鬼的枯萎术，压制 灵魂，偷取生命力量来补充自己。",
		"    最强大的堕落者甚至可以召唤 恶魔来守护他们。",
		"他们最重要的属性是：魔法和意志。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +0 力量，+0 敏捷，+2 体质",
		"#LIGHT_BLUE# * +4 魔法，+3 意志，+0 灵巧",
	},
	stats = { mag=4, wil=3, con=2, },
	talents_types = {
		["cunning/survival"]={false, 0},
		["corruption/sanguisuge"]={true, 0.3},
		["corruption/hexes"]={true, 0.3},
		["corruption/curses"]={true, 0.3},
		["corruption/bone"]={false, 0.3},
		["corruption/plague"]={true, 0.3},
		["corruption/shadowflame"]={false, 0.3},
		["corruption/blood"]={true, 0.3},
		["corruption/vim"]={true, 0.3},
		["corruption/blight"]={true, 0.3},
	},
	talents = {
		[ActorTalents.T_DRAIN] = 1,
		[ActorTalents.T_BLOOD_SPRAY] = 1,
		[ActorTalents.T_SOUL_ROT] = 1,
		[ActorTalents.T_PACIFICATION_HEX] = 1,
	},
	copy = {
		resolvers.equip{ id=true,
			{type="weapon", subtype="staff", name="榆木法杖", autoreq=true, ego_chance=-1000},
			{type="armor", subtype="cloth", name="亚麻长袍", autoreq=true, ego_chance=-1000}
		},
	},
}
