-- 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 = "Wilder",
	display_name= "野性系",
	locked = function() return profile.mod.allow_build.wilder_wyrmic or profile.mod.allow_build.wilder_summoner or profile.mod.allow_build.wilder_stone_warden end,
	locked_desc = "    自然能力超越了纯粹的技能。 经历自然的真正力量来领略它神奇 的恩赐。",
	desc = {
		"    野性系是大自然的守护者，召 唤生物，被称之为德鲁伊...",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			Summoner = "allow",
			Wyrmic = "allow",
			["Stone Warden"] = "allow",
		},
	},
	copy = {
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Summoner",
	display_name= "召唤师",
	locked = function() return profile.mod.allow_build.wilder_summoner end,
	locked_desc = "    不是所有的力量来自于其中， 倾听自然的祈祷，倾听它的力量， 从中发现我们真正的力量。",
	desc = {
		"    召唤师从不孤身战斗，他们时 刻准备召唤出宠物为他们而战。",
		"    召唤师可以同时召唤战争猎犬 和火焰龙。",
		"他们最重要的属性是：意志和灵巧。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +0 力量，+1 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+5 意志，+3 灵巧",
	},
	getStatDesc = function(stat, actor)
		if stat == actor.STAT_CUN then
			return "Max summons: "..math.floor(actor:getCun()/10)
		end
	end,
	stats = { wil=5, cun=3, dex=1, },
	talents_types = {
		["wild-gift/call"]={true, 0.2},
		["wild-gift/harmony"]={false, 0.1},
		["wild-gift/summon-melee"]={true, 0.3},
		["wild-gift/summon-distance"]={true, 0.3},
		["wild-gift/summon-utility"]={true, 0.3},
		["wild-gift/summon-augmentation"]={false, 0.3},
		["wild-gift/summon-advanced"]={false, 0.3},
		["cunning/survival"]={true, 0},
		["technique/combat-techniques-active"]={false, 0},
		["technique/combat-techniques-passive"]={false, 0},
		["technique/combat-training"]={true, 0},
	},
	talents = {
		[ActorTalents.T_WAR_HOUND] = 1,
		[ActorTalents.T_RITCH_FLAMESPITTER] = 1,
		[ActorTalents.T_MEDITATION] = 1,
		[ActorTalents.T_TRAP_DETECTION] = 1,
	},
	copy = {
		max_life = 90,
		resolvers.equip{ id=true,
			{type="armor", subtype="light", name="粗制皮甲", autoreq=true, ego_chance=-1000}
		},
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Wyrmic",
	display_name= "龙战士",
	locked = function() return profile.mod.allow_build.wilder_wyrmic end,
	locked_desc = "    豪华、庄严、强壮... 在通往 龙的道路上和他们一同呼吸，用你 的眼睛凝视他们跳动的心脏，在 你的齿间品味他们的威严。",
	desc = {
		"    龙战士是学习守护巨龙战斗方 式的战士。",
		"    他们从不同的龙之中学习技能。",
		"他们最重要的属性是：力量和意志。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +5 力量，+0 敏捷，+1 体质",
		"#LIGHT_BLUE# * +0 魔法，+3 意志，+0 灵巧",
	},
	stats = { str=5, wil=3, con=1, },
	talents_types = {
		["wild-gift/call"]={true, 0.2},
		["wild-gift/harmony"]={false, 0.1},
		["wild-gift/sand-drake"]={true, 0.3},
		["wild-gift/fire-drake"]={true, 0.3},
		["wild-gift/cold-drake"]={true, 0.3},
		["wild-gift/storm-drake"]={true, 0.3},
		["cunning/survival"]={false, 0},
		["technique/shield-offense"]={true, 0.1},
		["technique/2hweapon-offense"]={true, 0.1},
		["technique/combat-techniques-active"]={false, 0},
		["technique/combat-techniques-passive"]={true, 0},
		["technique/combat-training"]={true, 0},
	},
	talents = {
		[ActorTalents.T_ICE_CLAW] = 1,
		[ActorTalents.T_MEDITATION] = 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}
		},
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Stone Warden",
	display_name= "石头看守",
	locked = function() return profile.mod.allow_build.wilder_stone_warden and true or "hide" end,
	locked_desc = "",
	desc = {
		"    矮人们在对自然的崇拜和畏惧 之中训练出了石头看守。",
		"    当其他种族认为自然力量和魔 法力量是互相对立的时候，矮人将这两种力量结合在了一起。",
		"    石头看守是武装的战士，使用 盾牌引导他的力量。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +2 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +4 魔法，+3 意志，+0 灵巧",
	},
	not_on_random_boss = true,
	stats = { str=2, wil=3, mag=4, },
	talents_types = {
		["wild-gift/call"]={true, 0.2},
		["wild-gift/earthen-stone"]={true, 0.3},
		["wild-gift/earthen-vines"]={true, 0.3},
		["spell/arcane-shield"]={true, 0.3},
		["spell/earth"]={true, 0.2},
		["spell/stone"]={false, 0.2},
		["cunning/survival"]={true, 0},
		["technique/combat-training"]={true, 0},
	},
	talents = {
		[ActorTalents.T_STONE_VINES] = 1,
		[ActorTalents.T_STONESHIELD] = 1,
		[ActorTalents.T_ELDRITCH_BLOW] = 1,
		[ActorTalents.T_ARMOUR_TRAINING] = 3,
		[ActorTalents.T_WEAPONS_MASTERY] = 1,
	},
	copy = {
		max_life = 110,
		resolvers.equip{ id=true,
			{type="weapon", subtype="mace", 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,
	},
}
