﻿###########
## Holy Chapel
###########

holy_chapel_01 = {

	construction_time = slow_construction_time

	can_construct_potential = {
                county_is_pilgrimage_site_building_requirement_trigger = yes
                relic_hunter_trigger = yes
                has_global_variable = relic_hunter
		building_requirement_tribal = no
		scope:holder = {
		        highest_held_title_tier > 4 #Only Emperors
		}
		NOT = {
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}

	can_construct = {
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
		}
	}

	is_enabled = {
		county.holder = { has_title = prev.duchy }
		relic_hunter_is_valid_trigger = yes
	}

	show_disabled = yes

	cost_gold = 500
	
	character_modifier = {
		monthly_piety = 0.5
		monthly_dynasty_prestige_mult = 0.05
		same_faith_opinion = 10
	}

	province_modifier = {
		monthly_income = 1
	}

	county_modifier = {
		development_growth_factor = 0.1
		development_growth = 0.05
	}

	type_icon = "icon_structure_cathedral_zoroastric.dds"

	type = duchy_capital

	flag = fully_upgraded_duchy_capital_building
	
	ai_value = {
		base = 20
		modifier = {
			factor = 2
			scope:holder.capital_province = this
		}
		modifier = { # Fill all building slots before going for duchy buildings
			factor = 0
			free_building_slots > 0
		}
	}
}  
