-- 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 = "Celestial",
	display_name= "天空系",
	locked = function() return profile.mod.allow_build.divine end,
	locked_desc = "    天空魔法很少被人了解，这些 知识在被人遗忘的遥远的东方。",
	desc = {
		"Celestial classes are arcane users focused on the heavenly bodies.",
		"Most draw their powers from the Sun and the Moons.",
	},
	descriptor_choices =
	{
		subclass =
		{
			__ALL__ = "disallow",
			['Sun Paladin'] = "allow-nochange",
			Anorithil = "allow-nochange",
		},
	},
	copy = {
		class_start_check = function(self)
			if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf") then
				self.celestial_race_start_quest = self.starting_quest
				self.default_wilderness = {"zone-pop", "ruined-gates-of-morning"}
				self.starting_zone = "town-gates-of-morning"
				self.starting_quest = "start-sunwall"
				self.starting_intro = "sunwall"
				self.faction = "sunwall"
			end
		end,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Sun Paladin",
	display_name= "太阳骑士",
	locked = function() return profile.mod.allow_build.divine_sun_paladin end,
	locked_desc = "    东方升起的太阳充满荣耀，但 你首先得从黑暗之中寻找到他。",
	desc = {
		"    太阳骑士出生于阳光之门，在 遥远东方自由生活的人们最后堡垒 里。",
		"    他们的生涯受人尊敬，他们的 座右铭是：太阳是我们的给予者、 纯洁和实质的象征，我们为黑暗带 去光亮，任何反抗我们的力量都休想 通过。",
		"    他们能施展太阳之力将任何试 图破坏太阳之墙的力量击退。",
		"    同时精通武器和盾牌战斗并熟 悉魔法，在近身猛击对手之前他们 通常在远处就可以灼烧他们。",
		"他们最重要的属性是：力量和魔法。",
		"#GOLD#属性修正：",
		"#LIGHT_BLUE# * +5 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +4 魔法，+0 意志，+0 灵巧",
	},
	stats = { mag=4, str=5, },
	talents_types = {
		["technique/shield-offense"]={true, 0.1},
		["technique/combat-techniques-active"]={false, 0.1},
		["technique/combat-techniques-passive"]={true, 0.1},
		["technique/combat-training"]={true, 0.1},
		["cunning/survival"]={false, 0.1},
		["celestial/sun"]={true, 0},
		["celestial/chants"]={true, 0.3},
		["celestial/combat"]={true, 0.3},
		["celestial/light"]={true, 0.3},
		["celestial/guardian"]={false, 0.3},
	},
	birth_example_particles = "golden_shield",
	talents = {
		[ActorTalents.T_SEARING_LIGHT] = 1,
		[ActorTalents.T_WEAPON_OF_LIGHT] = 1,
		[ActorTalents.T_CHANT_OF_FORTITUDE] = 1,
		[ActorTalents.T_ARMOUR_TRAINING] = 3,
	},
	copy = {
		max_life = 110,
		resolvers.equip{ id=true,
			{type="weapon", subtype="mace", name="铁质狼牙棒", ingore_material_restriction=true, autoreq=true, ego_chance=-1000},
			{type="armor", subtype="shield", name="铁质护盾", ingore_material_restriction=true, autoreq=true, ego_chance=-1000},
			{type="armor", subtype="heavy", name="铁锁甲", ingore_material_restriction=true, autoreq=true, ego_chance=-1000},
		},
	},
	copy_add = {
		life_rating = 2,
	},
}

newBirthDescriptor{
	type = "subclass",
	name = "Anorithil",
	display_name= "星月术士",
	locked = function() return profile.mod.allow_build.divine_anorithil end,
	locked_desc = "    平衡天空的力量是一件令人望 而生畏的任务。他们站在黎明深处 同时掌控着黑暗与光明的力量。",
	desc = {
		"    星月术士出生于阳光之门，在 遥远东方自由生活的人们最后堡垒 里。",
		"    他们的生涯受人尊敬，他们的 座右铭是：我们站在太阳与月亮之 间，光与暗的交界。在灰色的黎明 中寻找我们的使命。",
		"    他们可以施展太阳、月亮的法 术将任何试图破坏太阳之墙的人消 灭。",
		"    他们掌握日月魔法，通常在使 用星怒之前他们就可以用太阳光线 灼烧他们的对手。",
		"他们最重要的属性是：魔法和灵巧。",
		"#GOLD#属性修正",
		"#LIGHT_BLUE# * +0 力量，+0 敏捷，+0 体质",
		"#LIGHT_BLUE# * +6 魔法，+0 意志，+3 灵巧",
	},
	stats = { mag=6, cun=3, },
	talents_types = {
		["cunning/survival"]={false, 0.1},
		["celestial/sun"]={true, 0.3},
		["celestial/chants"]={true, 0.3},
		["celestial/glyphs"]={false, 0.3},
		["celestial/circles"]={false, 0.3},
		["celestial/eclipse"]={true, 0.3},
		["celestial/light"]={true, 0.3},
		["celestial/twilight"]={true, 0.3},
		["celestial/hymns"]={true, 0.3},
		["celestial/star-fury"]={true, 0.3},
	},
	birth_example_particles = "darkness_shield",
	talents = {
		[ActorTalents.T_SEARING_LIGHT] = 1,
		[ActorTalents.T_MOONLIGHT_RAY] = 1,
		[ActorTalents.T_HYMN_OF_SHADOWS] = 1,
		[ActorTalents.T_TWILIGHT] = 1,
	},
	copy = {
		max_life = 90,
		resolvers.equip{ id=true,
			{type="weapon", subtype="staff", name="榆木法杖", ingore_material_restriction=true, autoreq=true, ego_chance=-1000},
			{type="armor", subtype="cloth", name="亚麻长袍", ingore_material_restriction=true, autoreq=true, ego_chance=-1000}
		},
	},
}
