########################################################
# RELIGIOUS TITLES
# Titles given out by the religious head
########################################################
#	religion: Religion that owns this title.
#	can_elect_head: If holders of this title can elect a new head.
#	grant_limit: Max number of holders.
#	realm_in_name: Append the name of the country after the title (Queen [of Sweden])
#	allow: conditions for the character to hold the title
#	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_cardinal = {
	religion = catholic
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = catholic
		is_theocracy = yes
		k_papal_state = {
			has_title_flag = schism_happened
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
		
		NOT = {
			top_liege = {
				any_vassal = {
					any_claim = {
						title = k_papal_state
					}
				}
			}
		}
	}
	
	gain_effect = {
	}
	
	lose_effect = {
	}

	message = yes
}

title_fraticelli_cardinal = {
	religion = fraticelli
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = fraticelli
		is_theocracy = yes
		d_fraticelli = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
		
		NOT = {
			top_liege = {
				any_vassal = {
					any_claim = {
						title = d_fraticelli
					}
				}
			}
		}
	}
	
	gain_effect = {
	}
	
	lose_effect = {
	}

	message = yes
}
