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

---------------------------------------------------------
--                       Elves                         --
---------------------------------------------------------
newBirthDescriptor{
	type = "race",
	name = "Elf",
	display_name = "精灵",
	desc = {
		"    精灵这个名字通常被用来不正 确地称呼整个精灵种族。",
		"    精灵分为 3个相互联系的种族 而目前只有两种还幸存着。",
		"    除了永恒精灵用魔法保持永生 其他精灵通常能活一千年。",
		"    在不同的精灵种族之间他们对 世界的看法很不相同。",
	},
	descriptor_choices =
	{
		subrace =
		{
			Shalore = "allow",
			Thalore = "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",
		},
	},
	copy = {
		type = "humanoid", subtype="elf",
		starting_zone = "trollmire",
		starting_quest = "start-allied",
		resolvers.inventory{ id=true, {defined="ORB_SCRYING"} },
		resolvers.generic(function(e) e.hotkey[10] = {"inventory", "鉴定水晶球"} end),
	},
}

---------------------------------------------------------
--                       Elves                         --
---------------------------------------------------------
newBirthDescriptor
{
	type = "subrace",
	name = "Shalore",
	display_name = "永恒精灵",
	desc = {
		"    永恒精灵与魔法世界有着千丝 万缕的联系，曾一度出现过许多伟 大的魔法师。",
		"    尽管如此，他们仍试图保持避 世并隐藏他们的魔法能力。因为他 们深深记得那一段血腥的历史魔法 会战（Spellblaze）还有紧随其后 的魔法猎捕（Spellhunt）。",
		"    他们天生掌握#GOLD#不朽的恩赐#WHITE#，允 许他们在短时间内提高移动速度。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * -2 力量，+1 敏捷，+0 体质",
		"#LIGHT_BLUE# * +2 魔法，+3 意志，+1 灵巧",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 9",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 35%",
	},
	inc_stats = { str=-2, mag=2, wil=3, cun=1, dex=1, con=0 },
	experience = 1.3,
	talents_types = { ["race/shalore"]={true, 0} },
	talents = { [ActorTalents.T_SHALOREN_SPEED]=1 },
	copy = {
		moddable_tile = "elf_#sex#",
		moddable_tile_base = "base_shalore_01.png",
		moddable_tile_ornament = {female="braid_02"},
		random_name_def = "shalore_#sex#", random_name_max_syllables = 4,
		default_wilderness = {"playerpop", "shaloren"},
		starting_zone = "scintillating-caves",
		starting_quest = "start-shaloren",
		faction = "shalore",
		starting_intro = "shalore",
		life_rating = 9,
		resolvers.inscription("RUNE:_SHIELDING", {cooldown=14, dur=5, power=100}),
		resolvers.inscription("RUNE:_PHASE_DOOR", {cooldown=7, range=10}),
	},
	experience = 1.35,
	random_escort_possibilities = { {"scintillating-caves", 2, 3}, {"daikara", 1, 3}, {"old-forest", 1, 5}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
}

newBirthDescriptor
{
	type = "subrace",
	name = "Thalore",
	display_name = "自然精灵",
	desc = {
		"    在大部分岁月里，自然精灵隐 藏在丛林里，很少离开。岁月流逝， 这一习惯都没有改变。",
		"    他们长期隐居在自然中，由于 和自然的紧密联系，自然精灵成为 自然秩序的保护者，并与他们的近 亲永恒精灵处于对立状态。",
		"    他们天生掌握#GOLD#自然之怒#WHITE#，允许他们 在短时间内提高伤害和抵抗。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +2 力量，+3 敏捷，+1 体质",
		"#LIGHT_BLUE# * -2 魔法，+1 意志，+0 灵巧",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 11",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 35%",
	},
	inc_stats = { str=2, mag=-2, wil=1, cun=0, dex=3, con=1 },
	experience = 1.3,
	talents_types = { ["race/thalore"]={true, 0} },
	talents = { [ActorTalents.T_THALOREN_WRATH]=1 },
	copy = {
		moddable_tile = "elf_#sex#",
		moddable_tile_base = "base_thalore_01.png",
		moddable_tile_ornament = {female="braid_01"},
		random_name_def = "thalore_#sex#",
		default_wilderness = {"playerpop", "thaloren"},
		starting_zone = "norgos-lair",
		starting_quest = "start-thaloren",
		faction = "thalore",
		starting_intro = "thalore",
		life_rating = 11,
		resolvers.inscription("INFUSION:_REGENERATION", {cooldown=10, dur=5, heal=60}),
		resolvers.inscription("INFUSION:_WILD", {cooldown=12, what={physical=true}, dur=4, power=14}),
	},
	experience = 1.35,
	random_escort_possibilities = { {"norgos-lair", 2, 3}, {"heart-gloom", 1, 2}, {"daikara", 1, 3}, {"old-forest", 1, 5}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
}
