########################################################
# MINOR TITLES
# Characters can have any number of these
########################################################
#	grant_limit: Max number of holders.
#	realm_in_name: Append the name of the country after the title (Queen [of Sweden])
#	allowed_to_hold: conditions for the character to hold the title
#	allowed_to_grant: conditions for a ruler to grant the title
#	regent: This is the title for regents (not really "minor")
#	gain_effect: fires when the title is granted
#	lose_effect: fires when a title is lost if dismissal_trigger evaluates to false
#	message: should fire a message to the its owner when set
#	The other fields are all character modifiers.


title_xgi_cultivation_court_son_of_heaven = {
	attribute = learning
	dignity = 50
	realm_in_name = yes
	grant_limit = 3
	opinion_effect = 10
	monthly_salary = 10
	monthly_prestige = 0.6
	monthly_piety = 20
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
				trait = xgi-Divine_potential
				NOT = { age = 45 }
				is_female = no
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {

	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_daughter_of_heaven = {
	attribute = learning
	dignity = 50
	realm_in_name = yes
	grant_limit = 3
	opinion_effect = 10
	monthly_salary = 10
	monthly_prestige = 0.6
	monthly_piety = 20
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
				trait = xgi-Divine_potential
				NOT = { age = 45 }
				is_female = yes
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {

	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_outer_disciple = {
	attribute = learning
	dignity = 5
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 2
	monthly_salary = 1
	monthly_prestige = 0.1
	monthly_piety = 10
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_1_Spiritual_Seed_Shaping_1
				trait = Lv_1_Spiritual_Seed_Shaping_2
				trait = Lv_1_Spiritual_Seed_Shaping_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {

	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_inner_disciple = {
	attribute = learning
	dignity = 15
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 4
	monthly_salary = 3
	monthly_prestige = 0.3
	monthly_piety = 15
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_2_Spiritual_Seed_Nurturing_1
				trait = Lv_2_Spiritual_Seed_Nurturing_2
				trait = Lv_2_Spiritual_Seed_Nurturing_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_core_disciple = {
	attribute = learning
	dignity = 25
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 6
	monthly_salary = 5
	monthly_prestige = 0.5
	monthly_piety = 20
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_3_Soul_Germination_1
				trait = Lv_3_Soul_Germination_2
				trait = Lv_3_Soul_Germination_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_elder = {
	attribute = learning
	dignity = 35
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 8
	monthly_salary = 8
	monthly_prestige = 0.8
	monthly_piety = 25
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_4_Soul_Perfection_1
				trait = Lv_4_Soul_Perfection_2
				trait = Lv_4_Soul_Perfection_3
				trait = Lv_5_Soul_Unification_1
				trait = Lv_5_Soul_Unification_2
				trait = Lv_5_Soul_Unification_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
		remove_title = title_xgi_cultivation_court_core_disciple
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_supreme_elder = {
	attribute = learning
	dignity = 50
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 10
	monthly_salary = 15
	monthly_prestige = 1.2
	monthly_piety = 30
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_6_Undying_Body_1
				trait = Lv_6_Undying_Body_2
				trait = Lv_6_Undying_Body_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
		remove_title = title_xgi_cultivation_court_core_disciple
		remove_title = title_xgi_cultivation_court_elder
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_guardian = {
	attribute = learning
	dignity = 60
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 12
	monthly_salary = 25
	monthly_prestige = 1.8
	monthly_piety = 45
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_7_True_Immortal_1
				trait = Lv_7_True_Immortal_2
				trait = Lv_7_True_Immortal_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
		remove_title = title_xgi_cultivation_court_core_disciple
		remove_title = title_xgi_cultivation_court_elder
		remove_title = title_xgi_cultivation_court_supreme_elder
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_deity = {
	attribute = learning
	dignity = 80
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 14
	monthly_salary = 35
	monthly_prestige = 2.4
	monthly_piety = 60
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_8_Immortal_God_1
				trait = Lv_8_Immortal_God_2
				trait = Lv_8_Immortal_God_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
		remove_title = title_xgi_cultivation_court_core_disciple
		remove_title = title_xgi_cultivation_court_elder
		remove_title = title_xgi_cultivation_court_supreme_elder
		remove_title = title_xgi_cultivation_court_guardian
	}

	lose_effect = {
	}

	message = yes
}

title_xgi_cultivation_court_ancestor = {
	attribute = learning
	dignity = 100
	realm_in_name = yes
	grant_limit = 50
	opinion_effect = 16
	monthly_salary = 40
	monthly_prestige = 3.0
	monthly_piety = 75
	is_unique = no
	show_as_title = yes
	allowed_to_hold = {
			OR = {
				trait = Lv_9_Ancestral_God_1
				trait = Lv_9_Ancestral_God_2
				trait = Lv_9_Ancestral_God_3
			}
	}

	allowed_to_grant = {
		is_ruler = yes
		is_playable = yes
	}

	gain_effect = {
		remove_title = title_xgi_cultivation_court_outer_disciple
		remove_title = title_xgi_cultivation_court_inner_disciple
		remove_title = title_xgi_cultivation_court_core_disciple
		remove_title = title_xgi_cultivation_court_elder
		remove_title = title_xgi_cultivation_court_supreme_elder
		remove_title = title_xgi_cultivation_court_guardian
		remove_title = title_xgi_cultivation_court_deity
	}

	lose_effect = {
	}

	message = yes
}