-- 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 = "Warrior",
	display_name = "战士系",
	desc = {
		"    战士精通于各种物理系战斗技 能，他们可以手持双手大剑造成毁 灭性打击，也可以身穿重甲手持盾 牌成为一个强有力的护卫。",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			Berserker = "allow",
			Bulwark = "allow",
			Archer= "allow",
			Brawler = "allow",
			["Arcane Blade"] = "allow",
		},
	},
	copy = {
		max_life = 120,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Berserker",
	display_name = "狂战士",
	desc = {
		"    狂战士手持双手武器，以毁灭 性的伤害将他的敌人砍成两半。",
		"    狂战士通常专注于造成伤害而 忽视自我防御。",
		"他们最重要的属性是力量和体 质。",
		"#GOLD#属性修正：:",
		"#LIGHT_BLUE# * +5 力量，+1 敏捷，+3 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+0 灵巧",
	},
	stats = { str=5, con=3, dex=1, },
	talents_types = {
		["technique/archery-training"]={false, 0.1},
		["technique/shield-defense"]={false, -0.1},
		["technique/2hweapon-offense"]={true, 0.3},
		["technique/2hweapon-cripple"]={true, 0.3},
		["technique/combat-techniques-active"]={true, 0.3},
		["technique/combat-techniques-passive"]={true, 0.3},
		["technique/combat-training"]={true, 0.3},
		["technique/superiority"]={false, 0.3},
		["technique/warcries"]={false, 0.3},
		["technique/field-control"]={false, 0},
		["technique/bloodthirst"]={false, 0.2},
		["cunning/survival"]={true, 0},
		["cunning/dirty"]={false, 0},
	},
	talents = {
		[ActorTalents.T_DEATH_DANCE] = 1,
		[ActorTalents.T_STUNNING_BLOW] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
		[ActorTalents.T_ARMOUR_TRAINING] = 2,
	},
	copy = {
		resolvers.equip{ id=true,
			{type="weapon", subtype="greatsword", name="铁质巨剑", autoreq=true, ego_chance=-1000, ego_chance=-1000},
			{type="armor", subtype="heavy", name="铁锁甲", autoreq=true, ego_chance=-1000, ego_chance=-1000},
		},
	},
	copy_add = {
		life_rating = 3,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Bulwark",
	display_name = "盾战士",
	desc = {
		"    盾战士精通于武器和使用盾牌 格斗并拥有极高的防御技能。",
		"    一个好的盾战士能够使用盾牌 承受来自各方的攻击，当时机一到 就立即将对手置于死地。",
		"他们最重要的属性是：力量和敏捷。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +5 力量，+2 敏捷，+2 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+0 灵巧",
	},
	stats = { str=5, con=2, dex=2, },
	talents_types = {
		["technique/archery-training"]={false, 0.1},
		["technique/shield-offense"]={true, 0.3},
		["technique/shield-defense"]={true, 0.3},
		["technique/2hweapon-offense"]={false, -0.1},
		["technique/combat-techniques-active"]={true, 0.3},
		["technique/combat-techniques-passive"]={true, 0.3},
		["technique/combat-training"]={true, 0.3},
		["technique/superiority"]={false, 0.3},
		["technique/warcries"]={false, 0.3},
		["technique/battle-tactics"]={false, 0.3},
		["technique/field-control"]={false, 0},
		["cunning/survival"]={true, 0},
		["cunning/dirty"]={false, 0},
	},
	talents = {
		[ActorTalents.T_SHIELD_PUMMEL] = 1,
		[ActorTalents.T_SHIELD_WALL] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
		[ActorTalents.T_ARMOUR_TRAINING] = 3,
	},
	copy = {
		resolvers.equip{ id=true,
			{type="weapon", subtype="longsword", name="铁剑", autoreq=true, ego_chance=-1000, ego_chance=-1000},
			{type="armor", subtype="shield", name="铁盾", autoreq=true, ego_chance=-1000, ego_chance=-1000},
			{type="armor", subtype="heavy", name="铁锁甲", autoreq=true, ego_chance=-1000, ego_chance=-1000}
		},
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Archer",
	display_name = "弓箭手",
	desc = {
		"    弓箭手是身手矫健的远程战士， 能将他的敌人钉在原地再射出如雨 般的箭矢消灭目标。",
		"    高等级的弓箭手可以射出特殊 的箭矢，可以是射穿目标，减速或 者使目标钉在原地。",
		"    弓箭手可以使用长弓和投石索。",
		"他们最重要的属性是：敏捷和力量 （装备弓时）或灵巧 (装备投石索)",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +2 力量，+5 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+2 灵巧",
	},
	stats = { dex=5, str=2, cun=2, },
	talents_types = {
		["technique/archery-training"]={true, 0.3},
		["technique/archery-utility"]={true, 0.3},
		["technique/archery-bow"]={true, 0.3},
		["technique/archery-sling"]={true, 0.3},
		["technique/combat-techniques-active"]={false, -0.1},
		["technique/combat-techniques-passive"]={true, -0.1},
		["technique/combat-training"]={true, 0.3},
		["technique/field-control"]={true, 0},
		["cunning/survival"]={true, 0},
		["cunning/dirty"]={false, 0},
	},
	talents = {
		[ActorTalents.T_SHOOT] = 1,
		[ActorTalents.T_FLARE] = 1,
		[ActorTalents.T_STEADY_SHOT] = 1,
		[ActorTalents.T_BOW_MASTERY] = 1,
		[ActorTalents.T_SLING_MASTERY] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
	},
	copy = {
		max_life = 110,
		resolvers.equip{ id=true,
			{type="weapon", subtype="longbow", 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="sling", name="粗制投石索", autoreq=true, ego_chance=-1000},
		},
		resolvers.generic(function(e)
			e.auto_shoot_talent = e.T_SHOOT
		end),
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Arcane Blade",
	display_name = "奥术之刃",
	desc = {
		"    奥术之刃是一个拥有魔法的战 士。",
		"    他们的魔法并非习得而是与生 俱来的，因此他们不能依靠法力恢 复而必须依靠额外的道具来恢复法 力值。",
		"    他们能施展一些有限的法术同 时也能将法术融合在他们的近战攻 击中。",
		"    他们使用双手武器来造成伤害。",
		"他们最重要的属性是：力量、敏捷 和魔法。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +3 力量，+3 敏捷，+0 体质",
		"#LIGHT_BLUE# * +3 魔法，+0 意志，+0 灵巧",
	},
	stats = { mag=3, str=3, dex=3},
	talents_types = {
		["spell/fire"]={true, 0.2},
		["spell/air"]={true, 0.2},
		["spell/conveyance"]={false, 0.2},
		["spell/aegis"]={false, 0.1},
		["spell/enhancement"]={true, 0.2},
		["technique/2hweapon-cripple"]={true, 0.1},
		["technique/combat-techniques-active"]={true, 0.1},
		["technique/combat-techniques-passive"]={false, 0.1},
		["technique/combat-training"]={true, 0.1},
		["technique/magical-combat"]={true, 0.3},
		["cunning/survival"]={true, -0.1},
		["cunning/dirty"]={false, -0.1},
	},
	unlockable_talents_types = {
		["spell/stone"]={false, 0.1, "mage_geomancer"},
	},
	talents = {
		[ActorTalents.T_FLAME] = 1,
		[ActorTalents.T_ARCANE_COMBAT] = 1,
		[ActorTalents.T_STUNNING_BLOW] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
	},
	copy = {
		max_life = 100,
		talent_cd_reduction={[ActorTalents.T_FLAME]=-3, [ActorTalents.T_LIGHTNING]=-3, [ActorTalents.T_EARTHEN_MISSILES]=-3, },
		resolvers.equip{ id=true,
			{type="weapon", subtype="greatsword", name="铁质巨剑", autoreq=true, ego_chance=-1000, ego_chance=-1000},
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000, ego_chance=-1000},
		},
		resolvers.inscription("RUNE:_MANASURGE", {cooldown=25, dur=10, mana=620}),
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Brawler",
	display_name = "武僧",
	locked = function() return profile.mod.allow_build.warrior_brawler end,
	locked_desc = "    虽然你击败了许多对手，你也知道 你命中注定要战斗至死，但你毫不 退缩，在鲜血之环你会知道只有依 靠你的双拳来面对这个世界。",
	desc = {
		"    魔法大爆炸造成的物资匮乏使得武 器成为一种奢侈品，并不是每个人 都能担负的起。",
		"    没有钢铁打造的装备，穷人们开始 依靠他们自身的力量开始与黑暗斗 争。",
		"    无论是一个职业拳手还是个业余的 门外汉，武僧技能现在是随处可学 的。",
		"    许多武僧技能可以累积连击点数然 后用一个终结技能造成额外的打击 效果。",
		"    武僧徒手战斗依靠双手的灵活机动 性，所以他们无法学习装备重甲、 盾牌或者武器。",
		"他们最重要的属性是：力量、敏捷 和灵巧",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +3 力量，+3 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+3 灵巧",
	},
	stats = { str=3, dex=3, cun=3},
	talents_types = {
		["cunning/dirty"]={false, 0},
		["cunning/tactical"]={true, 0.3},
		["cunning/survival"]={false, 0},
		["technique/combat-training"]={true, 0.1},
		["technique/field-control"]={true, 0},
		["technique/combat-techniques-active"]={true, 0.1},
		["technique/combat-techniques-passive"]={true, 0.1},
		["technique/pugilism"]={true, 0.3},
		["technique/finishing-moves"]={true, 0.3},
		["technique/grappling"]={false, 0.3},
		["technique/unarmed-discipline"]={false, 0.3},
		["technique/unarmed-training"]={true, 0.3},
		["technique/conditioning"]={true, 0.3},
	},
	talents = {
		[ActorTalents.T_UPPERCUT] = 1,
		[ActorTalents.T_DOUBLE_STRIKE] = 1,
		[ActorTalents.T_WEAPON_COMBAT] = 1,
		[ActorTalents.T_ARMOUR_TRAINING] = 1,

		-- base monk attack
		[ActorTalents.T_EMPTY_HAND] = 1,
	},
	copy = {
		combat = { sound = "actions/melee", sound_miss="actions/melee_miss" },
		resolvers.equip{ id=true,
			{type="armor", subtype="hands", name="铁臂铠", autoreq=true, ego_chance=-1000, ego_chance=-1000},
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000, ego_chance=-1000},
		},
	},
	copy_add = {
		life_rating = 2,
	},
}
