-- 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 = "Chronomancer",
	display_name = "时空系",
	locked = function() return profile.mod.allow_build.chronomancer end,
	locked_desc = "    他们是一些另辟蹊径的人，在 普通生活的道路上寻找出那条隐藏 的路。",
	desc = {
		"With one foot literally in the past and one in the future, Chronomancers manipulate the present at a whim and wield a power that only bows to nature's own need to keep the balance. The wake in spacetime they leave behind them makes their own Chronomantic abilites that much stronger and that much harder to control.  The wise Chronomancer learns to maintain the balance between his own thirst for cosmic power and the universe's need to flow undisturbed, for the hole he tears that amplifies his own abilities just may be the same hole that one day swallows him.",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			["Paradox Mage"] = "allow",
			["Temporal Warden"] = "allow",
		},
	},
	copy = {
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Paradox Mage",
	display_name = "时光法师",
	locked = function() return profile.mod.allow_build.chronomancer_paradox_mage end,
	locked_desc = "    一只手如果能拍到自己那么就 可以单手鼓掌，去寻找时空的力量 吧。",
	desc = {
		"    时光法师学习时空的构造，不 仅仅是扭曲时空而且还能重塑时空。",
		"    大多数时光法师没有基本的格 斗技能，但他们可以利用宇宙的力 量来进行战斗。",
		"    时光法师掌握各种知识，并从 时光学院里学习更多复杂的内容。",
		"他们最重要的属性时：魔法和意志。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +0 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +5 魔法，+3 意志，+1 灵巧",
	},
	stats = { mag=5, wil=3, cun=1, },
	talents_types = {
		["chronomancy/age-manipulation"]={true, 0.3},
	--	["chronomancy/anomalies"]={true, 0},
		["chronomancy/chronomancy"]={true, 0.3},
		["chronomancy/energy"]={true, 0.3},
		["chronomancy/gravity"]={true, 0.3},
		["chronomancy/matter"]={true, 0.3},
		["chronomancy/paradox"]={false, 0.3},
		["chronomancy/speed-control"]={true, 0.3},
		["chronomancy/timeline-threading"]={false, 0.3},
		["chronomancy/timetravel"]={true, 0.3},
		["chronomancy/spacetime-weaving"]={true, 0.3},
		["cunning/survival"]={false, 0},
	},
	talents = {
		[ActorTalents.T_SPACETIME_TUNING] = 1,
		[ActorTalents.T_STATIC_HISTORY] = 1,
		[ActorTalents.T_DIMENSIONAL_STEP] = 1,
		[ActorTalents.T_DUST_TO_DUST] = 1,
		[ActorTalents.T_TURN_BACK_THE_CLOCK] = 1,
		},
	copy = {
		max_life = 90,
		resolvers.equip{ id=true,
			{type="weapon", subtype="staff", name="榆木法杖", autoreq=true, ego_chance=-1000},
			{type="armor", subtype="cloth", name="亚麻长袍", autoreq=true, ego_chance=-1000},
		},
	},
	copy_add = {
		life_rating = -4,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Temporal Warden",
	display_name = "时空守卫",
	locked = function() return profile.mod.allow_build.chronomancer_temporal_warden end,
	locked_desc = "    我用维持过去保护将来，我们 用战斗来守护时间的秩序。",
	desc = {
		"    时空守卫学习混合箭术，双武 器战斗和时空法术。",
		"    通过他们使用时空法术，他们 控制战斗使他们敌人笼罩在箭雨之 下或者近身格斗。",
		"    他们对时空法术的学习使他们 能够放大自身的物理、魔法能力同 时控制自身和周围的速度。",
		"他们最重要的属性是：力量、敏捷、 意志和魔法。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +2 力量，+3 敏捷，+0 体质",
		"#LIGHT_BLUE# * +2 魔法，+2 意志，+0 灵巧",
	},
	stats = { str=2, wil=2, dex=3, mag=2},
	talents_types = {
		["technique/archery-bow"]={true, 0.1},
		["technique/archery-utility"]={false, 0.1},
		["technique/dualweapon-attack"]={true, 0.1},
		["technique/dualweapon-training"]={false, 0.1},
		["technique/combat-training"]={true, 0.2},
		["cunning/survival"]={false, 0},
		["chronomancy/chronomancy"]={true, 0.1},
		["chronomancy/speed-control"]={true, 0.1},
	--	["chronomancy/temporal-archery"]={true, 0.3},
		["chronomancy/temporal-combat"]={true, 0.3},
		["chronomancy/timetravel"]={false, 0},
		["chronomancy/spacetime-weaving"]={true, 0},
		["chronomancy/spacetime-folding"]={true, 0.3},
	},
	birth_example_particles = "temporal_focus",
	talents = {
		[ActorTalents.T_SHOOT] = 1,
		[ActorTalents.T_SPACETIME_TUNING] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
		[ActorTalents.T_DUAL_STRIKE] = 1,
		[ActorTalents.T_CELERITY] = 1,
		[ActorTalents.T_STRENGTH_OF_PURPOSE] = 1,
		},
	copy = {
		max_life = 100,
		resolvers.equip{ id=true,
			{type="weapon", subtype="longsword", name="铁剑", autoreq=true, ego_chance=-1000},
			{type="weapon", subtype="dagger", name="铁匕首", autoreq=true, ego_chance=-1000},
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000},
		},
		resolvers.inventory{ id=true, inven="QS_MAINHAND",
			{type="weapon", subtype="longbow", name="榆木长弓", autoreq=true, ego_chance=-1000},
		},
	},
}
