﻿#Adult Education Activity
is_higher_studies_location = {
	OR = {
		has_university_building_trigger = yes
		is_religious_studies_location = yes
	}
}

is_religious_studies_location = {
	OR = {
		has_building_or_higher = holy_site_cathedral_01
		has_building_or_higher = holy_site_mosque_01
		has_building_or_higher = holy_site_pagan_grand_temple_01
		has_building_or_higher = holy_site_indian_grand_temple_01
		has_building_or_higher = holy_site_other_grand_temple_01
		has_building_or_higher = holy_site_mahabodhi_temple_01
		has_building_or_higher = brihadeeswarar_temple_01
		has_building_or_higher = holy_site_cologne_cathedral_01
		has_building_or_higher = holy_site_canterbury_cathedral_01
		has_building_or_higher = temple_of_uppsala_01
		has_building_or_higher = lund_cathedral_01
		has_building_or_higher = notre_dame_01
		has_building_or_higher = holy_site_imam_ali_mosque_01
		has_building_or_higher = holy_site_great_mosque_of_mecca_01
		has_building_or_higher = holy_site_great_mosque_of_cordoba_01
		has_building_or_higher = holy_site_great_mosque_of_djenne_01
		has_building_or_higher = holy_site_great_mosque_of_samarra_01
		has_building_or_higher = holy_site_prophetic_mosque_01
		has_building_or_higher = shwedagon_pagoda_01
		has_building_or_higher = ananda_temple_01
		has_building_or_higher = the_friday_mosque_01
		has_building_or_higher = khajuraho_01
		has_building_or_higher = hagia_sophia_01
		has_building_or_higher = temple_in_jerusalem_01
		has_building_or_higher = holy_site_basilica_santiago_01
		has_building_or_higher = imam_reza_shrine_01
		has_building_or_higher = cluny_abbey_01
		has_building_or_higher = damascus_mosque_01
		has_building_or_higher = jokhang_01
		has_building_or_higher = holy_wisdom_01
		has_building_or_higher = duomo_florence_01
		has_building_or_higher = konark_temple_01
		has_building_or_higher = wawel_cathedral_01
		has_building_or_higher = vatapi_caves_01
		has_building_or_higher = al_qarawiyyin_university_01
		has_building_or_higher = somapura_university_01
	}
}

is_available_adult_education_teacher = {
	is_available_healthy_ai_adult = yes
	age > 35
	OR = {
		has_trait = education_diplomacy_4
		has_trait = education_martial_4
		has_trait = education_stewardship_4
		has_trait = education_intrigue_4
		has_trait = education_learning_4
		has_trait = education_diplomacy_5
		has_trait = education_martial_5
		has_trait = education_stewardship_5
		has_trait = education_intrigue_5
		has_trait = education_learning_5
	}
	OR = {
		diplomacy >= 12
		martial >= 12
		stewardship >= 12
		intrigue >= 12
		learning >= 12
	}
	trigger_if = {
		limit = {
			scope:location.county.faith = { has_doctrine = doctrine_gender_female_dominated }
		}
		is_female = yes
	}
	trigger_else_if = {
		limit = {
			scope:location.county.faith = { has_doctrine = doctrine_gender_male_dominated }
		}
		is_female = no
	}
	trigger_else = {
		always = yes
	}
}
