########################################################
# NEW MINOR TITLES
# ########################################################

title_mistress = {
	dignity = 0.1
	grant_limit = 1
	show_as_title = yes
	revoke_allowed = yes
	opinion_effect = 10
	
	monthly_salary = 0.80
	monthly_prestige = 0.01
	
	allowed_to_hold = {
		is_adult = yes
		is_ruler = no
		AND = {
			is_married = no
			is_female = yes
			prisoner = no
			NOT = { dynasty = FROM } 
		}
	}

	allowed_to_grant = {
		NOT = { trait = trait_slave }
		NOT = {
			culture = russian
			culture = norse
			culture = hausa
			culture = han
			religion = jewish
			religion_group = pagan_group 
			}
		AND = {
			age = 16
			is_feudal = yes
			primary_title = { higher_tier_than = COUNT }
		}
	}
	
	gain_effect = {
	add_lover = FROM
	FROM = {
			spouse = {
					opinion = {
						who = FROM
						modifier = opinion_hate
						years = 20
					}
				}
			}
	}
	lose_effect = {
	remove_lover = FROM
	}
	
	ai_will_do = {
			factor = 0.1
	}
	
	message = no
}
title_grand_judge = {
	is_high_prio = yes
	show_as_title = yes
	realm_in_name = yes
	opinion_effect = 10
	is_voter = yes
	revoke_allowed = no
	
	monthly_salary = 0.9
	monthly_prestige = 0.07
	
	allowed_to_hold = {
		is_landed = no
		is_adult = yes
		learning = 12
		NOT = { trait = trait_slave }
	}
	
	allowed_to_grant = {
			capital_holding = {
				has_building = ca_high_court
			}
		}
	
	grant_limit = 1
	gain_effect = {
		prestige = 20
	}
	lose_effect = {
	}
	message = yes
}
title_sarc_blacksmith = {
	is_high_prio = yes
	dignity = 0.5
	realm_in_name = yes
	grant_limit = 1
	opinion_effect = 5
	attribute = stewardship
	
	monthly_salary = 1.00
	monthly_prestige = 0.45
	
	allowed_to_hold = {
		is_adult = yes
		is_landed = no
		NOT = { trait = incapable }
		is_female = no
	}
	
	allowed_to_grant = {
		capital_holding = {
			OR = {
		has_building = ct_f_blacksmith
		has_building = ca_f_blacksmith }
		}
	}
	
	revoke_trigger = {
		custom_tooltip = {
			text = BUSYCRAFTING
			NOT = { has_character_flag = crafting }
		}
	}
	
	gain_effect = {
		prestige = 20
	}
	lose_effect = {
	}
	
	message = yes
}

title_cywizard = {
	is_high_prio = yes
	attribute = learning
    dignity = 5
    realm_in_name = yes
	grant_limit = 1
	opinion_effect = 15
	monthly_salary = 0.2
	monthly_prestige = 0.5
	
	allowed_to_grant = {
		OR = {
			higher_tier_than = BARON
			is_patrician = yes
		}
		OR = {
			any_courtier = { has_trait = full_cybernetic_conversion }
			any_vassal = { has_trait = full_cybernetic_conversion }
			any_courtier = { trait = full_cybernetic_conversion }
			any_vassal = { trait = full_cybernetic_conversion }			
		}
	}
	
	allowed_to_hold = {
		custom_tooltip = {
			text = court_physician_tooltip_1
			NOT = {
				primary_title = { temporary = yes } 
			}
		}
		custom_tooltip = {
			text = court_physician_tooltip_2
			OR = {
				male_can_hold_minor_title_trigger = yes
				female_can_hold_minor_title_trigger = yes
			}
		}
		OR = {
			trait = full_cybernetic_conversion
			has_trait = full_cybernetic_conversion
		}
		is_adult = yes

		prisoner = no
		NOT = { trait = trait_slave }
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
	}

	revoke_trigger = {
		custom_tooltip = {
			text = revoke_court_physician_being_treated_tt
			NOT = { FROM = { has_character_flag = being_treated } }
		}
	}
	
	gain_effect = {
	}
	lose_effect = {
	}
	retire_effect = {
	}

	message = yes
}