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

---------------------------------------------------------
--                      Halflings                      --
---------------------------------------------------------
newBirthDescriptor{
	type = "race",
	name = "Halfling",
	display_name = "半身人",
	desc = {
		"    半身人是一个身材十分矮小的 种族，高度很少有超过4英尺。",
		"    只要愿意，他们可以像人类一 样做到任何事情，并且更有纪律，更 擅长学习。",
		"    半身人军队已经征服了很多国 家，并且在Allure纪元时他们可以和 人类联合王国制衡。",
		"    半身人身手敏捷，好运，但缺少力量。",
	},
	descriptor_choices =
	{
		subrace =
		{
			__ALL__ = "disallow",
			Halfling = "allow",
		},
		subclass = {
			-- Only human, elves, halflings and undeads are supposed to be archmages
			Archmage = "allow",
		},
	},
	copy = {
		faction = "allied-kingdoms",
		type = "humanoid", subtype="halfling",
		default_wilderness = {"playerpop", "allied"},
		starting_zone = "trollmire",
		starting_quest = "start-allied",
		starting_intro = "halfling",
		size_category = 2,
		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}, },
}

---------------------------------------------------------
--                      Halflings                      --
---------------------------------------------------------
newBirthDescriptor
{
	type = "subrace",
	name = "Halfling",
	display_name = "半身人",
	desc = {
		"    半身人是一个身材十分矮小的 种族，高度很少有超过4英尺。",
		"    只要愿意，他们可以像人类一 样做到任何事情，并且更有纪律，更 擅长学习。",
		"    半身人军队已经征服了很多国 家，并且在Allure纪元时他们可以和 人类联合王国制衡。",
		"    他们天生掌握#GOLD#小不点的幸运#WHITE#技 能可以使他们在几个回合内提高 暴击几率。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * -3 力量，+3 敏捷，+1 体质",
		"#LIGHT_BLUE# * +0 魔法，+0 意志，+3 灵巧",
		"#LIGHT_BLUE# * +5 幸运",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 12",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 20%",
	},
	inc_stats = { str=-3, dex=3, con=1, cun=3, lck=5, },
	experience = 1.20,
	talents_types = { ["race/halfling"]={true, 0} },
	talents = {
		[ActorTalents.T_HALFLING_LUCK]=1,
	},
	copy = {
		moddable_tile = "halfling_#sex#",
		random_name_def = "halfling_#sex#",
		life_rating = 12,
	},
}
