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

---------------------------------------------------------
--                       Humans                        --
---------------------------------------------------------
newBirthDescriptor{
	type = "race",
	name = "Human",
	display_name = "人类",
	desc = {
		"    人类与半身人一起是Maj'Eyal 的主要种族，他们曾互相争战了几 千年，直到在领袖们的领导下将人 类和半身人的国度联合起来。",
		"    联合王国的人们已经保持了一 个世纪的和平。",
		"    人类被分为两个亚种：高等人 类和普通人类。高等人类体内流淌 着魔法的血液，他们拥有额外的属 性和感知能力并更长命。",
		"    其他人类天生有更强的学习能 力，他们能做任何他们想做的事成 为任何他们想成为的人。",
	},
	descriptor_choices =
	{
		subrace =
		{
			["Cornac"] = "allow",
			["Higher"] = "allow",
			__ALL__ = "disallow",
		},
		subclass =
		{
			-- Only human and elves make sense to play celestials
			['Sun Paladin'] = "allow",
			['Anorithil'] = "allow",
			-- Only human, elves, halflings and undeads are supposed to be archmages
			Archmage = "allow",
		},
	},
	talents = {},
	copy = {
		faction = "allied-kingdoms",
		type = "humanoid", subtype="human",
		resolvers.inscription("INFUSION:_REGENERATION", {cooldown=10, dur=5, heal=60}),
		resolvers.inscription("INFUSION:_WILD", {cooldown=12, what={physical=true}, dur=4, power=14}),
		resolvers.inventory{ id=true, {defined="ORB_SCRYING"} },
		resolvers.generic(function(e) e.hotkey[10] = {"inventory", "鉴定水晶球"} end),
	},
	random_escort_possibilities = { {"trollmire", 2, 3}, {"ruins-kor-pul", 1, 2}, {"daikara", 1, 3}, {"old-forest", 1, 5}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
}

---------------------------------------------------------
--                       Humans                        --
---------------------------------------------------------
newBirthDescriptor
{
	type = "subrace",
	name = "Higher",
	display_name = "高等人类",
	desc = {
		"    自Allure纪元起，高等人类就 是人类种族的一支特殊分支，他们 的身体里潜藏着魔力。为了保持血 统的纯正，他们一般不和普通人类 通婚。",
		"    他们天生掌握#GOLD#纯血之礼#WHITE#，允许 他们在短暂的时间内治疗伤口。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +1 力量，+1 敏捷，+0 体质",
		"#LIGHT_BLUE# * +1 魔法，+1 意志，+0 灵巧",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 11",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 15%",
	},
	inc_stats = { str=1, mag=1, dex=1, wil=1 },
	experience = 1.15,
	talents_types = { ["race/higher"]={true, 0} },
	talents = {
		[ActorTalents.T_HIGHER_HEAL]=1,
	},
	copy = {
		moddable_tile = "human_#sex#",
		moddable_tile_base = "base_higher_01.png",
		random_name_def = "higher_#sex#",
		life_rating = 11,
		default_wilderness = {"playerpop", "allied"},
		starting_zone = "trollmire",
		starting_quest = "start-allied",
		starting_intro = "higher",
	},
}

newBirthDescriptor
{
	type = "subrace",
	name = "Cornac",
	display_name = "普通人类",
	desc = {
		"    普通人类是来自联合国度北部 的普通人。",
		"    人类天生适应性强，他们可以 在出生时获得1点天赋解锁点（其 他种族只能在10、20和30级时获得 1点）。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +0 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+0 灵巧",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 10",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 0%",
	},
	experience = 1.0,
	copy = {
		moddable_tile = "human_#sex#",
		moddable_tile_base = "base_cornac_01.png",
		random_name_def = "cornac_#sex#",
		unused_talents_types = 1,
		life_rating = 10,
		default_wilderness = {"playerpop", "allied"},
		starting_zone = "trollmire",
		starting_quest = "start-allied",
		starting_intro = "cornac",
	},
}
