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

---------------------------------------------------------
--                       Dwarves                       --
---------------------------------------------------------
newBirthDescriptor{
	type = "race",
	name = "Dwarf",
	display_name = "矮人",
	desc = {
		"    矮人是一支隐秘的种族，生活 于地下世界钢铁王座。",
		"    他们是支强壮的种族并以大师 级手艺而闻名，但是，由于在过去 的战乱中为了自身利益抛弃了其他 种族，他们仍然不受欢迎。",
		"    矮人们出于对金钱的热衷和他 们对王国的热爱而联合在一起。",
	},
	descriptor_choices =
	{
		subrace =
		{
			__ALL__ = "disallow",
			Dwarf = "allow",
		},
	},
	copy = {
		faction = "iron-throne",
		type = "humanoid", subtype="dwarf",
		calendar = "dwarf",
		default_wilderness = {"playerpop", "dwarf"},
		starting_zone = "reknor-escape",
		starting_quest = "start-dwarf",
		starting_intro = "dwarf",
		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}, },
}

---------------------------------------------------------
--                       Dwarves                       --
---------------------------------------------------------
newBirthDescriptor
{
	type = "subrace",
	name = "Dwarf",
	display_name = "矮人",
	desc = {
		"    矮人是一支隐秘的种族，生活 于地下世界钢铁王座。",
		"    他们是支强壮的种族并以大师 级手艺而闻名，但是，由于在过去 的战乱中为了自身利益抛弃了其他 种族，他们仍然不受欢迎。",
		"    他们天生掌握#GOLD#钢筋铁骨#WHITE#，允许 他们在短时间内提高护甲和抵抗。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +4 力量，-2 敏捷，+3 体质",
		"#LIGHT_BLUE# * -2 魔法，+3 意志，+0 灵巧",
		"#GOLD#每等级增加生命值：#LIGHT_BLUE# 12",
		"#GOLD#经验惩罚：#LIGHT_BLUE# 25%",
	},
	inc_stats = { str=4, con=3, wil=3, mag=-2, dex=-2 },
	talents_types = { ["race/dwarf"]={true, 0} },
	talents = {
		[ActorTalents.T_DWARF_RESILIENCE]=1,
	},
	copy = {
		moddable_tile = "dwarf_#sex#",
		moddable_tile_ornament = {male="beard_02", female="braid_01"},
		random_name_def = "dwarf_#sex#",
		life_rating=12,
	},
	experience = 1.25,
}
