-- 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 = "Afflicted",
	display_name= "痛苦系",
	locked = function() return profile.mod.allow_build.afflicted end,
	locked_desc = "    那些在阴影之中、独自一人、 惹人讨厌、被人遗弃，他们的力量 也许很强大，但是他们的名字被人 诅咒。",
	desc = {
		"    痛苦系因为他们与恶魔的联系 而变得扭曲。",
		"    他们能利用他们力量的优势， 但为此付出的代价。。。",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			Cursed = "allow",
			Doomed = "allow",
		},
	},
	copy = {
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Cursed",
	display_name= "被诅咒者",
	locked = function() return profile.mod.allow_build.afflicted_cursed end,
	locked_desc = "    诅咒者可以进入灵魂，使它充 满憎恨，战胜另外一个人的憎恨诅 咒来领会这种可怕的力量。",
	desc = {
		"    被诅咒者通过无知、贪婪或者 愚昧的黑暗指示让那些罪恶受到审 判。",
		"    他们唯一的主人是那些生者心 中的憎恨。",
		"    从他们遇到的死亡中吸取力量 使被诅咒者成为恐怖的战士。",
		"    更可怕的是，任何接近被诅咒 者的人对受恐惧光环的影响而发狂。",
		"他们最重要的属性是：力量和意志。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +5 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+4 意志，+0 灵巧",
	},
	stats = { wil=4, str=5, },
	talents_types = {
		["cursed/gloom"]={true, 0.0},
		["cursed/slaughter"]={true, 0.3},
		["cursed/endless-hunt"]={true, 0.3},
		["cursed/strife"]={true, 0.3},
		["cursed/cursed-form"]={true, 0.0},
		["cursed/unyielding"]={true, 0.0},
		["technique/combat-training"]={true, 0.3},
		["cunning/survival"]={false, 0.0},
		["cursed/rampage"]={false, 0.0},
		["cursed/dark-figure"]={false, 0.0},
	},
	talents = {
		[ActorTalents.T_UNNATURAL_BODY] = 1,
		[ActorTalents.T_GLOOM] = 1,
		[ActorTalents.T_SLASH] = 1,
		[ActorTalents.T_WEAPONS_MASTERY] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
	},
	copy = {
		max_life = 110,
		resolvers.equip{ id=true,
			{type="weapon", subtype="battleaxe", name="铁质战斧", autoreq=true, ego_chance=-1000},
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000}
		},
		chooseCursedAuraTree = true
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Doomed",
	display_name= "末日使者",
	locked = function() return profile.mod.allow_build.afflicted_doomed end,
	locked_desc = "    在一个未知的地方你必须战胜 你自己并看到你自己的末日。",
	desc = {
		"    末日使者是一些没落的法师， 他们曾经为了获取强大魔法力量和 野心而进行黑暗交易。",
		"    被黑暗剥夺了魔法力量的他们 开始学习驾驭他们精神上燃烧的憎 恨的力量。",
		"    只有时间会证明他们是选择了 一条新的道路还是永远受末日的惩 罚。",
		"    末日使者从黑暗的阴影中发动 攻击。",
		"    他们攻击他们敌人的方式是让 他们遇到的所有敌人精神失控。",
		"他们最重要的属性是：意志和灵巧。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +0 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+4 意志，+5 灵巧",
	},
	stats = { wil=4, cun=4, },
	talents_types = {
		["cursed/dark-sustenance"]={true, 0.3},
		["cursed/force-of-will"]={true, 0.3},
		["cursed/gestures"]={true, 0.3},
		["cursed/punishments"]={true, 0.3},
		["cursed/shadows"]={true, 0.3},
		["cursed/darkness"]={true, 0.3},
		["cursed/cursed-form"]={true, 0.0},
		["cunning/survival"]={false, 0.0},
		["cursed/dark-figure"]={false, 0.0},
	},
	talents = {
		[ActorTalents.T_UNNATURAL_BODY] = 1,
		[ActorTalents.T_FEED] = 1,
		[ActorTalents.T_GESTURE_OF_PAIN] = 1,
		[ActorTalents.T_WILLFUL_STRIKE] = 1,
		[ActorTalents.T_CALL_SHADOWS] = 1,
	},
	copy = {
		max_life = 90,
		resolvers.equip{ id=true,
			{type="armor", subtype="cloth", name="linen robe", autoreq=true, ego_chance=-1000},
		},
		chooseCursedAuraTree = true
	},
	copy_add = {
	},
}
