##################################################
#TGP Japan Templates

#Japanese Pearl Diver

tgp_japan_yearly_events_pearl_diver_template = {
	age = { 18 70 }
	#Force the character to always be brave and calm
	trait = brave
	trait = calm
	#Have it either be diligent or patient
	random_traits_list = {
		count = 1
		diligent = {}
		patient = {}
	}
	#Have it either be whole of body or athletic
	random_traits_list = {
		count = 1
		whole_of_body = {}
		athletic = {}
	}
	random_traits = no
	prowess = { 7 10 }
	diplomacy = { 6 10 }
	martial = { 6 8 }
	stewardship = { 5 8 }
	intrigue = { 2 5 }
	learning = { 8 12 }
	faith = root.location.faith
	culture = root.location.culture

	#Majority of the divers were female
	gender_female_chance = {
		if = {
			limit = { 
				root.location.faith = { has_doctrine = doctrine_gender_male_dominated } 
			}
			add = 90
		}
		else_if = {
			limit = { 
				root.location.faith = { has_doctrine = doctrine_gender_female_dominated } 
			}
			add = 10
		}
		else = {
			add = 50
		}
	}
}

#Older/"retired" Japanese Samurai Warrior (Tengu)

tgp_japan_yearly_events_tengu_warrior_template = {
	age = { 35 70 }
	gender_female_chance = root_soldier_female_chance
	trait = reclusive
	trait = lifestyle_blademaster

	#Give two of the following personality traits
	random_traits_list = {
		count = 2
		brave = {}
		calm {}
		content = {}
		diligent = {}
		just = {}
		patient = {}
		impatient = {}
		temperate = {}
		zealous = {}
	}
	
	#Give one of the following personality traits
	random_traits_list = {
		count = 1
		wrathful = {}
		vengeful = {}
		humble = {}
		arrogant = {}
		arbitrary = {}
		cynical = {}
		callous = {}
		stubborn = {}
	}

	#Give one of the following character traits
	random_traits_list = {
		count = 1
		education_martial_1 = {}
		education_martial_2 = {}
		education_martial_3 = {}
	}

	#Give one of the following commander traits
	random_traits_list = {
		count = 1
		aggressive_attacker = {}
		flexible_leader = {}
		forder = {}
		organizer = {}
		unyielding_defender = {}
	}

	#Give one of the following health/physical traits
	random_traits_list = {
		count = 1
		one_eyed = {}
		scarred = {}
	}

	#Give random experience to the blademaster/scarred traits
	after_creation = {
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_blademaster
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
		add_random_tiered_trait_xp_effect = {
			TRAIT = scarred
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
	}

	random_traits = no
	stewardship = { 3 7 }
	intrigue = { 2 8 }
	learning = { 3 10 }

	diplomacy = {
		min_template_decent_skill
		max_template_medium_skill
	}
	martial = {
		min_template_decent_skill
		max_template_high_skill
	}
	prowess = {
		min_template_decent_skill
		max_template_high_skill
	}
	faith = root.location.faith
	culture = root.location.culture
}
