﻿#Special Buildings:
#When adding Special Buildings also always add an entry in the following custom loc:
#GetSpecialBuildingNameFromProvince
#GetSpecialBuildingTouristDescriptor


#Special Building Flags:

#Effects: adding the flag is enough to have it working, but you also need to add a tooltip using effect_desc
#special_university = unlocks effects for tournaments and book inspiration, as well as other mechanical effects of universities
#holy_building = unlocks funeral bonuses

#Point of Interest flags (no further implementation needed after adding the flag)
#travel_point_of_interest_religious = this location will be a religious point of interest
#travel_point_of_interest_economic = this location will be an economic point of interest
#travel_point_of_interest_martial = this location will be a martial point of interest
#travel_point_of_interest_wonder = this location will be a wonder point of interest
#travel_point_of_interest_natural_feature = this location will be a natural feature point of interest
#travel_point_of_interest_diplomatic = this location will be a diplomatic point of interest
#travel_point_of_interest_learning = this location will be a learning point of interest

###########
## Generic Holy Site Buildings
###########

holy_site_cathedral_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	asset = {
		type = pdxmesh
		name = "cp6_building_special_grand_cathedral_mesh"
		requires_dlc_flag = holy_buildings
	}
	asset = {
		type = pdxmesh
		name = "building_special_cathedral_generic_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 5
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		monthly_religious_tax = 1
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_muslim.dds"

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		domain_tax_different_faith_mult = 0.15
		levy_reinforcement_rate_same_faith = 0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_fire_temple_01 = {

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/great_fire_temple.dds"
	
	asset = {
		type = entity
		name = "building_special_cathedral_zoroastrian_01_a_entity"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		domain_tax_different_faith_mult = 0.15
		levy_reinforcement_rate_same_faith = 0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_zoroastrianism
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_pagan_grand_temple_01 = {

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_pagan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		knight_effectiveness_mult = 0.15
		levy_reinforcement_rate = 0.1
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	county_modifier = {
		levy_size = 0.1
	}
	
	levy = 350
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_indian_grand_temple_01 = {

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_indian.dds"

	asset = {
		type = pdxmesh
		name = "building_special_cathedral_pagan_mesh"
	}

	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_popular_opinion_mult = -0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_buddhist_grand_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	asset = {
		type = pdxmesh
		name = "tgp_building_special_chinese_pagoda_03_mesh"
		graphical_cultures = { chinese_building_gfx }
	}
	asset = {
		type = pdxmesh
		name = "tgp_building_special_japanese_pagoda_03_mesh"
		graphical_cultures = { japanese_building_gfx }
	}
	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
		graphical_cultures = { indian_building_gfx  }
	}

	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_buddhist.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_popular_opinion_mult = -0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_japanese_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/torii_gate.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_japanese_temple_03_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_popular_opinion_mult = -0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_chinese_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/fogong_temple_pagoda.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_chinese_temple_03_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_popular_opinion_mult = -0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_se_asia_pagan_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/po_klong_garai.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_se_asia_pagan_temple_03_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		different_faith_opinion = 5
		different_faith_popular_opinion_mult = -0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_other_grand_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_zoroastric.dds"

	asset = {
		type = pdxmesh
		name = "building_special_cathedral_generic_mesh"
	}

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.025
		short_reign_duration_mult = -0.1
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}


# NOTE: GetSpecialBuildingNameFromProvince in 00_building_custom_localization.txt reads this list, so update it when adding a building

##########
# Mahabodhi Temple
##########

holy_site_mahabodhi_temple_01 = {
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/mahabodhi_temple.dds"

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		learning_per_piety_level = 1
		different_faith_opinion = 5
		religious_vassal_opinion = 10
		different_faith_popular_opinion_mult = -0.2
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Imam Ali Mosque
##########

holy_site_imam_ali_mosque_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/imam_ali_mosque.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
			islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.1
		character_capital_county_monthly_control_change_add = 0.1
		same_faith_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Great Mosque of Mecca
##########

holy_site_great_mosque_of_mecca_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/great_mosque_of_mecca.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_great_mosque_of_mecca_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.1
		character_capital_county_monthly_control_change_add = 0.1
		same_faith_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	province_modifier = {
		province_size_baseline_add = 40
	}
	
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Great Mosque of Cordoba
##########

holy_site_great_mosque_of_cordoba_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/great_mosque_of_cordoba.dds"
	
	asset = {
		type = pdxmesh
		name = "monument_mezquita_de_cordoba_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_christian_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		different_culture_opinion = 5
		monthly_piety = 0.5
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		levy_size = 0.15
	}
	
	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_books_sell_price_mult = special_building_need_sell_price
		trade_good_leather_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_leather
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Great Mosque of Djenne
##########

holy_site_great_mosque_of_djenne_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/great_mosque_of_cordoba.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_great_mosque_of_djenne_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		OR = {
			islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		build_gold_cost = -0.15
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		levy_size = 0.15
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Great Mosque of Samarra
##########

holy_site_great_mosque_of_samarra_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/great_mosque_of_samarra.dds"
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_great_mosque_of_samarra_01_a_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		build_gold_cost = -0.1
		build_speed = -0.1
		monthly_piety = 0.3
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	province_modifier = {
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_horses_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_horses
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Cologne Cathedral
##########

holy_site_cologne_cathedral_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	asset = {
		type = pdxmesh
		name = "cp6_building_special_grand_cathedral_mesh"
		requires_dlc_flag = holy_buildings
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_mult = 0.15
		monthly_dynasty_prestige_mult = 0.05
		monthly_piety_gain_per_knight_add = 0.1
		knight_effectiveness_mult = 0.2
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Canterbury Cathedral
##########

holy_site_canterbury_cathedral_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/canterbury_cathedral.dds"
	
	asset = {
		type = pdxmesh
		name = "ep2_building_special_canterbury_01_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.05
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	next_building = holy_site_canterbury_cathedral_02
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_canterbury_cathedral_02 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time
	
	asset = {
		type = pdxmesh
		name = "ep2_building_special_canterbury_02_mesh"
	}

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {

		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_religious_early_medieval_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.1
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.2
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	next_building = holy_site_canterbury_cathedral_03
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

holy_site_canterbury_cathedral_03 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	
	asset = {
		type = pdxmesh
		name = "ep2_building_special_canterbury_03_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_3_trigger = yes
	}
	
	can_construct = {

		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_stonework_high_medieval_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.25
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.3
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 3 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}


##########
# Prophetic Mosque
##########

holy_site_prophetic_mosque_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cathedral_muslim.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		OR = {
			islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		popular_opinion_add = building_miniscule_popular_opinion_gain
		holy_order_hire_cost_mult = -0.15
		knight_effectiveness_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
		supply_limit_mult = 1
	}

	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Doge's Palace
##########

doges_palace_01 = {
	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/doges_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		scope:holder = {
			custom_tooltip = {
				text = government_is_not_republic_or_admin_desc
				OR = {
					government_has_flag = government_is_republic
					government_has_flag = government_is_administrative
				}
			}
		}
	}
	
	cost_gold = 1000
	
	county_modifier = {
		commerce_tax_mult = 0.2
		maritime_tax_mult = 0.2
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 1
		fort_level = 3
		levy_size = 1
		defender_holding_advantage = 10
		travel_danger = -20
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_spices_sell_price_mult = special_building_need_sell_price
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_glass_sell_price_mult = special_building_need_sell_price
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_spices
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				popular_opinion_add = special_building_need_popular_opinion
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_commerce_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_glass
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Walls of Genoa
##########

walls_of_genoa_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/walls_of_genoa.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000
	
	county_modifier = {
		defender_holding_advantage = 5
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 0.25
		fort_level = 2
		monthly_commerce_tax = 2
		travel_danger = -20
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Visby Ringmur
##########

visby_ringmur_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/visby_ringmur.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 500
	
	county_modifier = {
		defender_holding_advantage = 5
		civic_tax_mult = 0.15
		popular_opinion_add = building_miniscule_popular_opinion_gain
		hostile_raid_time = 0.5
		travel_danger = -20
	}
	
	province_modifier = {
		garrison_size = 0.25
		fort_level = 1
		province_size_baseline_add = special_building_province_size_baseline_small
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_furs_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_commerce_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_furs
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Walls of Benin
##########

walls_of_benin_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/walls_of_benin.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 1000
	
	county_modifier = {
		levy_size = 0.5
		defender_holding_advantage = 5
		civic_tax_mult = 0.2
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 0.5
		fort_level = 2
		travel_danger = -20
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_copper_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_civic_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_copper
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Theodosian Walls
##########

theodosian_walls_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/theodosian_walls.dds"
	
	can_construct_potential = {
		barony ?= title:b_constantinople
		building_requirement_tribal = no
	}
	
	cost_gold = 3000
	
	max_garrison = 1000
	levy = 500
	duchy_capital_county_modifier = {
		levy_size = 0.15
		civic_tax_mult = 0.15
	}
	province_modifier = {
		building_slots_for_host_district = 4
		monthly_civic_tax = 2
		fort_level = 5
		garrison_size = 1
		travel_danger = -20
		control_baseline_add = 10
		province_size_baseline_add = special_building_province_size_baseline
	}
	county_modifier = {
		hostile_raid_time = 0.5
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_spices_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 11
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_duchy_new_district_modifier = yes
	}
	
	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_civic_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = duchy_building
}

##########
# Aurelian Walls
##########

aurelian_walls_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/aurelian_walls.dds"
	
	can_construct_potential = {
		barony ?= title:b_roma
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 3000
	
	max_garrison = 500
	
	duchy_capital_county_modifier = {
		levy_size = 0.15
		civic_tax_mult = 0.15
	}
	county_modifier = {
		hostile_raid_time = 0.5
	}
	province_modifier = {
		building_slots_for_host_district = 4
		fort_level = 3
		garrison_size = 0.5
		travel_danger = -20
		control_baseline_add = 10
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 11
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_duchy_new_district_modifier = yes
	}
	
	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = duchy_building
}

##########
# The Colosseum
##########

the_colosseum_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_colosseum_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		army_maintenance_mult = -0.05 # 'Stealing' the metal from the colosseum building itself
	}
	
	province_modifier = {
		build_speed = -0.1
		trade_good_stone_production_add = special_building_stone_output
	}
	market_modifier = {
		trade_good_stone_buy_price_mult = special_building_production_buy_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial
}

##########
# Iron Pillar of Delhi
##########

iron_pillar_of_delhi_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/iron_pillar_of_delhi.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_prestige_gain_mult = 0.05
		army_maintenance_mult = -0.05
		heavy_infantry_toughness_mult = 0.1
		heavy_cavalry_toughness_mult = 0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	
	market_modifier = {
		trade_good_iron_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_iron
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_wonder
}



##########
# Iron Pillar of Dhar
##########

iron_pillar_of_dhar_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/iron_pillar_of_dhar.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 2000

	character_modifier = {
		advantage = 5
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		levy_size = 0.15
	}
	
	market_modifier = {
		trade_good_iron_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_iron
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# The Pyramids
##########

the_pyramids_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/the_pyramids.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_pyramids_giza_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		short_reign_duration_mult = -0.2
	}
	province_modifier = {
		trade_good_stone_production_add = 25
	}
	market_modifier = {
		trade_good_stone_buy_price_mult = special_building_production_buy_price
		trade_good_medicaments_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_wonder
}

##########
# Stonehenge
##########

stonehenge_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/stonehenge.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_stonehenge_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		learning = 2
		monthly_learning_lifestyle_xp_gain_mult = 0.15
		faith_conversion_piety_cost_mult = -0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_religious
}

##########
# Offa's Dyke
##########

offas_dyke_01 = { # For Matt Frary

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/palisades.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	province_modifier = {
		defender_holding_advantage = 5
		stationed_maa_toughness_mult = 0.05
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial_minor
}

##########
# Hadrian's Wall
##########

hadrians_wall_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/hadrians_wall.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	province_modifier = {
		build_gold_cost = -0.1
		trade_good_stone_production_add = special_building_stone_output
	}
	market_modifier = {
		trade_good_stone_buy_price_mult = special_building_production_buy_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial_minor
}

##########
# Petra
##########

petra_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/petra.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_petra_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	county_modifier = {
		civic_tax_mult = 0.1
		supply_limit_mult = 0.25
	}
	
	province_modifier = {
	}
	
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Buddhas of Bamian
##########

buddhas_of_bamian_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/buddhas_of_bamiyan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	cost_gold = 3000

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		diplomacy_per_piety_level = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Alhambra
##########

alhambra_01 = {

	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/alhambra.dds"
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_alhambra_01_mesh" 
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	max_garrison = good_building_max_garrison_tier_1
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
		travel_danger = -10
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
	}
	
	next_building = alhambra_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_martial
}

alhambra_02 = {

	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_alhambra_01_mesh" 
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 2000

	character_modifier = {
		monthly_prestige_gain_mult = 0.10
	}
	max_garrison = good_building_max_garrison_tier_3
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
		province_size_baseline_add = 40
	}
	county_modifier = {
		control_baseline_add = 5
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Citadel of Aleppo
##########

citadel_of_aleppo_01 = {
	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/the_citadel_of_aleppo.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000
	
	character_modifier = {
		monthly_prestige = 0.1
	}
	
	max_garrison = good_building_max_garrison_tier_1
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
		travel_danger = -10
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_cotton_sell_price_mult = special_building_need_sell_price
	}
	
	next_building = citadel_of_aleppo_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_cotton
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 5
			}
		}
	}

	flag = travel_point_of_interest_martial
}

citadel_of_aleppo_02 = {
	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 2000

	character_modifier = {
		monthly_prestige = 0.3
		prowess_per_piety_level = 2
	}
	max_garrison = good_building_max_garrison_tier_3
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
		trade_good_cotton_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 9
		culture_likely_to_fortify_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_cotton
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 5
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# House of Wisdom
##########

house_of_wisdom_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/grand_library_of_baghdad.dds"
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_house_of_wisdom_01_a_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		learning_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.15
		different_culture_opinion = 10
		cultural_head_fascination_mult = 0.10
		rite_creation_piety_cost_mult = -0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		civic_tax_mult = 0.2
		control_baseline_add = 10
	}
	province_modifier = {
		province_size_baseline_add = 90
		trade_good_books_paper_production_add = 25
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_good_medicaments_sell_price_mult = special_building_need_sell_price
		trade_good_dyes_sell_price_mult = special_building_need_sell_price
		trade_good_hemp_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
	}
	

	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_dyes
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_hemp
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# The Tower of London
##########

the_tower_of_london_01 = {

	effect_desc = {
		triggered_desc = {
			trigger = { has_playable_adventurer_dlc_trigger = yes }
			desc = tower_of_london_pacification_effect
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/tower_of_london.dds"
	next_building = the_tower_of_london_02
	
	asset = {
		type = pdxmesh
		name = "building_special_tower_of_london_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 1000

	on_complete = {
		if = {
			limit = {
				NOT = { scope:character ?= { is_alive = yes } }
			}
			county.holder = { save_scope_as = character }
		}
		if = {
			limit = {
				scope:character.culture ?= culture:norman
				has_global_variable = harrying_of_the_north
				exists = global_var:harrying_of_the_north.var:pacification
			}
			global_var:harrying_of_the_north = { save_scope_as = story }
			hidden_effect = {
				scope:character = {
					ep3_increase_pacification_large_effect = yes
				}
			}
		}
	}

	character_modifier = {
		dread_gain_mult = 0.3
	}
	max_garrison = good_building_max_garrison_tier_3
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
		province_size_baseline_add = special_building_province_size_baseline
		monthly_civic_tax = 0.5
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 9
		culture_likely_to_fortify_modifier = yes
		modifier = {
			factor = 5
			scope:holder = {
				culture = {
					has_cultural_parameter = ai_more_likely_to_castle
				}
			}
		}
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# London Bridge
##########

london_bridge_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/london_bridge.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_prosperity_03
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		cultural_head_fascination_mult = 0.10
		parochial_opinion = 5
		legitimacy_gain_mult = 0.1
	}
	province_modifier = {
		travel_danger = -30
	}
	county_modifier = {
		civic_tax_mult = 0.1
		popular_opinion_add = building_minor_popular_opinion_gain
	}
	
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}


	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
}


##########
# Notre Dame
##########

notre_dame_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/notre_dame.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_notre_dame_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = { christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder } building_stonework_high_medieval_trigger = yes }
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 1
		stewardship_per_piety_level = 1
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		religious_tax_mult = 0.2
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_wood_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wood
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
}

##########
# Brihadeeswarar Temple
##########

brihadeeswarar_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/brihadeeswarar_temple.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_brihadeeswarar_temple_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			culture = {
				has_innovation = innovation_manorialism
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		same_faith_opinion = 5
		stewardship_per_piety_level = 1
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
	flag = religious_studies_location
}

##########
# Shwedagon Pagoda
##########

shwedagon_pagoda_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/shwedagon_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
	}
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		clergy_opinion = 5
		tyranny_gain_mult = -0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
	flag = religious_studies_location
}

##########
# Ananda Temple
##########

ananda_temple_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/shwedagon_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = { building_monument_tribal_trigger = yes }
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning = 2
		monthly_piety_gain_mult = 0.05
		popular_opinion_add = building_miniscule_popular_opinion_gain
		character_capital_county_monthly_control_change_add = 0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	province_modifier = {
		monthly_religious_tax = 1
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 9
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_rice_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_rice
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# The Friday Mosque
##########

the_friday_mosque_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/the_friday_mosque.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder } 
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_zoroastrian_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder } 
				zoroastrian_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		piety_level_impact_mult = 0.5
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		religious_tax_mult = 0.2
	}
	province_modifier = {
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
}

##########
# Khajuraho
##########

khajuraho_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/khajuraho_temples.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = { building_monument_tribal_trigger = yes }
	
	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		different_faith_opinion = 10
		faith_conversion_piety_cost_mult = -0.2
		monthly_piety_gain_per_happy_powerful_vassal_mult = 0.05
	}
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
	flag = religious_studies_location
}

##########
# Palace of Aachen
##########

palace_of_aachen_01 = {
	effect_desc = palace_of_aachen_effect_desc

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/palace_of_achen.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_palace_of_aachen_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		powerful_vassal_opinion = 5
		clergy_opinion = 5
		monthly_prestige_gain_per_happy_powerful_vassal_add = 0.1
		tyranny_gain_mult = -0.2
		monthly_dynasty_prestige_mult = 0.05
	}

	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_diplomatic
}

##########
# Hagia Sophia
##########

hagia_sophia_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/hagia_sophia.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_hagia_sophia_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		intrigue_per_prestige_level = 2
		learning = 2
		knight_limit = 2
		knight_effectiveness_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {

	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
		province_size_baseline_add = 50
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	
	next_building = hagia_sophia_02
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
}

hagia_sophia_02 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	
	asset = {
		type = pdxmesh
		name = "building_special_hagia_sophia_minarets_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder } building_stonework_high_medieval_trigger = yes }
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	cost_piety = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		intrigue_per_prestige_level = 2
		learning = 2
		knight_limit = 2
		knight_effectiveness_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
		province_size_baseline_add = 50
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = holy_building_islam
	flag = religious_studies_location
}

##########
# Dome of the Rock / Temple in Jerusalem
##########

dome_of_the_rock_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/dome_of_the_rock.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		NOT = { 
			judaism_or_syncretic_with_judaism_trigger = { CHARACTER = scope:holder }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.1
		martial_per_piety_level = 1
		knight_effectiveness_mult = 0.2
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
	}

	province_modifier = {
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	
	next_building = temple_in_jerusalem_01
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = holy_building_islam
}

temple_in_jerusalem_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/temple_in_jerusalem.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {

		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		judaism_or_syncretic_with_judaism_trigger = { CHARACTER = scope:holder }
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_jewish_or_holy_site_trigger
			OR = {
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
				judaism_or_syncretic_with_judaism_trigger = { CHARACTER = scope:holder }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	cost_piety = 1000

	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.1
		martial_per_piety_level = 1
		learning_per_prestige_level = 1
		knight_effectiveness_mult = 0.2
		same_faith_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
	}

	province_modifier = {
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_judaism
	flag = religious_studies_location
}

##########
# Hall of Heroes
##########

hall_of_heroes_01 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = tournament_activity_cost_max_discount_effect_desc
		}
	}

	type_icon = "special_buildings/hall_of_heroes.dds"
	
	levy = 105
	max_garrison = 75
	cost_gold = 0
	construction_time = 0

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.05
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
	}
	
	next_building = hall_of_heroes_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial
}

hall_of_heroes_02 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = tournament_activity_cost_max_discount_effect_desc
		}
	}
	
	levy = 185
	max_garrison = 110
	cost_gold = 225
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 1
		knight_effectiveness_mult = 0.1
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}

	
	next_building = hall_of_heroes_03

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	flag = travel_point_of_interest_martial
}

hall_of_heroes_03 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = tournament_activity_cost_max_discount_effect_desc
		}
	}
	
	levy = 265
	max_garrison = 150
	cost_gold = 300
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 2
		knight_effectiveness_mult = 0.15
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_3_trigger = yes
	}

	
	next_building = hall_of_heroes_04

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 3 }
	}
	

	flag = travel_point_of_interest_martial
}

hall_of_heroes_04 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = tournament_activity_cost_max_discount_effect_desc
		}
	}
	
	levy = 350
	max_garrison = 225
	cost_gold = 375
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 2
		knight_effectiveness_mult = 0.2
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_4_trigger = yes
	}

	
	next_building = hall_of_heroes_05

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 4 }
	}
	

	flag = travel_point_of_interest_martial
}

hall_of_heroes_05 = {
	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = tournament_activity_cost_max_discount_effect_desc
		}
	}
	
	levy = 490
	max_garrison = 260
	cost_gold = 450
	construction_time = 500

	character_modifier = {
		monthly_piety_gain_per_knight_add = 0.1
		prowess = 3
		knight_effectiveness_mult = 0.25
	}

	is_enabled = {
		building_hall_of_heroes_requirement = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_4_trigger = yes
	}

	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 5 }
	}
	

	flag = travel_point_of_interest_martial
}

##########
# Universities
##########

generic_university = {
	construction_time = very_slow_construction_time
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	type_icon = "special_buildings/university.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 30
		}
	}
	
	show_disabled = yes
	
	on_complete = {
		county.holder = {
			save_scope_as = founder

			found_university_decision_event_effect = yes

			every_player = {
				limit = {
					this != scope:founder
					is_within_diplo_range = { CHARACTER = scope:founder }
				}
				trigger_event = major_decisions.2002
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 9
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
		trade_good_leather_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_leather
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

al_azhar_university = {
	construction_time = very_slow_construction_time
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	type_icon = "special_buildings/al-azhar_university.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		diplomacy_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	province_modifier = {
		province_size_baseline_add = 40
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

sankore_university = {
	construction_time = very_slow_construction_time
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}
	
	asset = {
		type = pdxmesh
		name = "cp6_building_special_sankore_university_mesh"
		requires_dlc_flag = holy_buildings
	}

	type_icon = "special_buildings/the_university_of_sankore.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		martial_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

siena_university = {
	construction_time = very_slow_construction_time
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	type_icon = "special_buildings/university_of_siena.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		intrigue_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

nalanda_university = {
	construction_time = very_slow_construction_time
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	type_icon = "special_buildings/nalanda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		stewardship_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
		trade_good_medicaments_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_medicaments
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

########
#Sicilian_parliament
########

special_sicilian_parliament_01 = {
	can_construct = { building_monument_tribal_trigger = yes }
	construction_time = very_slow_construction_time
	
	is_enabled = {
		is_county_capital = yes
		has_variable = variable_sicilian_parliament_county
	}

	cost_gold = 1500
	
	province_modifier = {
		monthly_civic_tax = 1
	}
	county_modifier = {
		control_baseline_add = 5
		popular_opinion_add = building_considerable_popular_opinion_gain
	}
	character_modifier = {
		monthly_prestige = 0.75
	}

	type_icon = "special_buildings/generic_house.dds"
	
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_control_baseline_building_modifier = { VALUE = 5 }
		ai_opinion_baseline_building_modifier = { VALUE = 25 }
		modifier = {
			factor = 0
			scope:holder = {
				government_has_flag = government_is_theocracy
			}
		}
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_very_high
			}
		}
	}

	flag = travel_point_of_interest_diplomatic
}

########
#Greenhouse
########

special_greenhouse_01 = {
	construction_time = very_slow_construction_time
	
	is_enabled = {
		has_variable = variable_greenhouse
	}
	
	province_modifier = {
		monthly_civic_tax = 1
	}

	county_modifier = {
		popular_opinion_add = building_considerable_popular_opinion_gain
	}
	character_modifier = {
		health = 0.25
		monthly_prestige = 1
	}

	type_icon = "special_buildings/generic_house.dds"
	
	market_modifier = {
		trade_good_glass_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 25 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_glass
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_very_high
			}
		}
	}

	flag = travel_point_of_interest_learning
}

##########
# Hotin Fortress (AKA: Khotyn Fortress)
##########

hotin_fort_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/hotin_fortress.dds"
	
	can_construct_potential = {
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
	}
	max_garrison = good_building_max_garrison_tier_1
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_1
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
		travel_danger = -10
	}
	
	next_building = hotin_fort_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial
}

hotin_fort_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 800
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		martial_per_prestige_level = 1
	}
	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
	}
	county_modifier = {
		civic_tax_mult = 0.05
		control_baseline_add = 5
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	flag = travel_point_of_interest_martial
}

##########
# Golden Gate of Kiev
##########

golden_gate_of_kiev_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/golden_gate_of_kiev.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.1
		monthly_piety_gain_mult = 0.1
	}
	max_garrison = good_building_max_garrison_tier_1
	province_modifier = {
		fort_level = good_building_fort_level_tier_1
		defender_holding_advantage = normal_building_advantage_tier_1
		travel_danger = -20
	}
	county_modifier = {
		civic_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	market_modifier = {
		trade_good_honey_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_honey
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_wonder
}

##########
# Heddal Stave Church
##########

heddal_stave_church_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/cathedral_pagan.dds"
	
	can_construct_potential = {
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_city_planning
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.1
		monthly_dynasty_prestige_mult = 0.05
		knight_effectiveness_mult = 0.2
		knight_limit = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
		levy_size = 0.1
		popular_opinion_add = building_minor_popular_opinion_gain
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Temple of Uppsala
##########

temple_of_uppsala_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/temple_of_uppsala.dds"
	
	can_construct_potential = {
	}
	
	can_construct = {
		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_city_planning
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.1
		knight_effectiveness_mult = 0.15
	}
	county_modifier = {
		religious_tax_mult = 0.1
		levy_size = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	next_building = temple_of_uppsala_02
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
}

temple_of_uppsala_02 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/cologne_cathedral.dds"
	
	asset = {
		type = pdxmesh
		name = "cp6_building_special_grand_cathedral_mesh"
		requires_dlc_flag = holy_buildings
	}
	
	can_construct_potential = {
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = {

		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_religious_early_medieval_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige_gain_per_knight_mult = 0.02
		men_at_arms_maintenance = -0.1
		knight_effectiveness_mult = 0.2
	}
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	county_modifier = {
		religious_tax_mult = 0.15
		levy_size = 0.15
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 9
		ai_pious_building_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_very_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
}

##########
# Lund Cathedral
##########

lund_cathedral_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/lund_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {

		OR = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		building_monument_tribal_trigger = yes
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.3
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.1
	}
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	county_modifier = {
		religious_tax_mult = 0.2
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
}

##########
# Danevirke
##########

danevirke_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/palisades.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 300
	
	province_modifier = {
		defender_holding_advantage = 5
		stationed_maa_toughness_mult = 0.05
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial_minor
}

##########
# Roman Walls of Lugo 
##########

roman_wall_of_lugo_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/lugo_walls.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_roman_wall_of_lugo_01_a_mesh"
	}

	can_construct_potential = {
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 300

	county_holder_character_modifier = {
		learning = 1
		monthly_dynasty_prestige_mult = 0.05
	}

	province_modifier = {
		garrison_size = 0.1
		fort_level = 1
		travel_danger = -10
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_civic_tax = special_building_need_tax_high
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Rock of Gibraltar  
##########

rock_of_gibraltar_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/gibraltar.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_rock_of_gibraltar_01_a_mesh" 
	}

	can_construct_potential = {
	}
	
	cost_gold = 300
	
	character_modifier = {
		stewardship = 1
		diplomatic_range_mult = 0.2
	}

	province_modifier = {
		fort_level = 1
		defender_holding_advantage = normal_building_advantage_tier_1
	}
	
	market_modifier = {
		trade_good_fish_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_fish
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_natural_feature
	flag = is_mountain
}

##########
# Aljaferia Palace  
##########

aljaferia_palace_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/aljaferia.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_aljaferia_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		diplomacy_per_prestige_level = 1
	}
	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
	}
	county_modifier = {
		civic_tax_mult = 0.05
		control_baseline_add = 5
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Tower of Hercules  
##########

tower_of_hercules_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/hercules.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_tower_of_hercules_mesh"
	}

	can_construct_potential = {
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 300
	
	character_modifier = {
		naval_movement_speed_mult = 0.25
		embarkation_cost_mult = -0.25
	}

	province_modifier = { 
		monthly_commerce_tax = 1 #Trade Tax
	}
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_maritime_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_learning
}

##########
# City Walls of Toledo 
##########

city_wall_of_toledo_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/toledo.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_toledo_city_walls_01_a_mesh"
	}

	can_construct_potential = {
	}
	
	cost_gold = 1000

	county_modifier = {
		defender_holding_advantage = 5
		civic_tax_mult = 0.1
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 0.25
		fort_level = 2
		travel_danger = -20
		province_size_baseline_add = special_building_province_size_baseline
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_leather_sell_price_mult = special_building_need_sell_price
	}

	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_leather
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Alcazar de Segovia  
##########

alcazar_of_segovia_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/alcazar_segovia.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_alcazar_de_segovia_01_a_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		martial_per_prestige_level = 1
	}
	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
	}
	county_modifier = {
		civic_tax_mult = 0.05
		control_baseline_add = 5
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				control_baseline_add = special_building_need_control
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# The Santiago de Compostela Archcathedral Basilica 
##########

holy_site_basilica_santiago_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/compostela.dds"  
	
	asset = {
		type = pdxmesh
		name = "fp2_building_special_basilica_santiago_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_christian_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 5
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
	}
	
	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
	flag = religious_studies_location
	market_rite_modifier = {
		parameter = can_go_on_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_pilgrim_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_pilgrim_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_pilgrimage
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
	market_rite_modifier = {
		parameter = mandatory_hajj
		trade_good_incense_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_oil_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_honey_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
		trade_good_ceramics_sell_price_mult = holy_site_mandatory_pilgrimage_sell_price_mult
	}
}

##########
# Sancutary of Imam Reza
##########

imam_reza_shrine_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/imam_reza_shrine.dds"
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_imam_reza_shrine_01_a_mesh"
		soundeffect = { soundeffect = "event:/DLC/FP3/SFX/Ambience/3DMapEmitters/Holdings/fp3_ambience_3D_holdings_imamrezashrine" }
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.2
		learning_per_piety_level = 1
		shia_opinion = 10
		advantage_against_coreligionists = 5
		monthly_dynasty_prestige_mult = 0.05
	}

	
	county_modifier = {
		religious_tax_mult = 0.15
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious # religious tomb/complex
	flag = holy_building
	flag = holy_building_islam
	flag = religious_studies_location
}

##########
# Dome of Soltaniyeh
##########

soltaniyeh_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/soltaniyeh.dds" 

	asset = {
		type = pdxmesh
		name = "fp3_building_special_soltaniyeh_01_a_mesh"
		soundeffect = { soundeffect = "event:/DLC/FP3/SFX/Ambience/3DMapEmitters/Holdings/fp3_ambience_3D_holdings_soltaniyeh" }	
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			culture = {
				has_innovation = innovation_prosperity_03
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		monthly_dynasty_prestige_mult = 0.05
		clan_government_opinion_same_faith = 5
		cultural_head_fascination_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_wonder # monumental tomb
	flag = holy_building
	flag = holy_building_islam
}

##########
# Ruins of the Palace of Ctesiphon
##########

palace_of_ctesiphon_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/palace_of_ctesiphon.dds" 
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000 

	character_modifier = {
		zoroastrianism_religion_opinion = 5
	}

	county_holder_character_modifier = {
		learning = 1
	}
	
	county_modifier = {
		build_speed = -0.1 # Baghdad was constructed using stones from Ctesiphon
	}
	province_modifier = {
		trade_good_stone_production_add = special_building_stone_output
	}
	market_modifier = {
		trade_good_stone_buy_price_mult = special_building_production_buy_price
	}
	
	next_building = palace_of_ctesiphon_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_learning # ancient ruin
}

palace_of_ctesiphon_02 = {
	construction_time = very_slow_construction_time
	

	asset = {
		type = pdxmesh
		name = "fp3_building_special_palace_of_ctesiphon_01_a_mesh"
	}

	can_construct = {

		scope:holder = {
			AND = {
				OR = {
					zoroastrian_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
					faith = faith:manichaean_faith
					faith = faith:nestorian
					faith = faith:hellenic_pagan
				}
				highest_held_title_tier >= tier_kingdom
				top_liege = this
			}
		}
		building_stonework_high_medieval_trigger = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}

	show_disabled = yes
	
	cost_gold = 2000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige_gain_per_happy_powerful_vassal_add = 0.2
		diplomacy_per_piety_level = 1
		title_creation_cost_mult = -0.25
		persian_opinion = 5
		zoroastrianism_religion_opinion = 5
	}

	county_modifier = {
		build_prestige_cost = -0.2
		build_gold_cost = -0.2
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	flag = travel_point_of_interest_learning # ancient ruin
}

##########
# Falak-ol-Aflak
##########

falak_ol_aflak_citadel_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/falak_ol_aflak_citadel.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_falak_ol_aflak_citadel_01_a_mesh"
	}

	construction_time = very_slow_construction_time
	
	can_construct_showing_failures_only = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		desert_mountains_attrition_mult = -0.5
	}
	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
	}
	county_modifier = {
		civic_tax_mult = 0.05
		control_baseline_add = 5
		popular_opinion_add = building_minor_popular_opinion_gain
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial # fortress
}

##########
# Minarets of Jam
##########

minarets_and_remains_of_jam_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/minaret_and_remains_of_jam.dds" 

	asset = {
		type = pdxmesh
		name = "fp3_building_special_minaret_and_remains_of_jam_01_a_mesh"
		soundeffect = { soundeffect = "event:/DLC/FP3/SFX/Ambience/3DMapEmitters/Holdings/fp3_ambience_3D_holdings_minaret" }	
	}

	can_construct = { islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder } building_monument_tribal_trigger = yes }
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_holy_site_trigger
			OR = {
				islam_or_syncretic_with_islam_trigger = { CHARACTER = scope:holder }
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_piety_gain_per_knight_add = 0.1
		stewardship_per_prestige_level = 1
		clan_government_opinion_same_faith = 5
	}

	county_modifier = {
		religious_tax_mult = 0.05
		control_baseline_add = 5
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious # religious monument
	flag = holy_building
	flag = holy_building_islam
}

##########
# Great Wall of Gorgan
##########

great_wall_of_gorgan_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/great_wall_of_gorgan.dds" 
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	province_modifier = {
		build_gold_cost = -0.1
		fort_level = 1
		garrison_size = 0.25
		hostile_raid_time = 0.25
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial # wall
}

##########
# Lake Maharloo
##########

maharloo_lake_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/maharloo_lake.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_maharloo_lake_01_a_mesh"
	}

	can_construct_potential = {
	}
	
	cost_gold = 300
	
	character_modifier = {
		learning = 1 
		stress_loss_mult = 0.1
	}

	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		prosperity_growth = 0.1
	}
	province_modifier = {
		trade_good_salt_production_add = special_building_salt_output
	}
	market_modifier = {
		trade_good_salt_buy_price_mult = special_building_production_buy_price
	}
	
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature # lake
}

##########
# Rainbow Mountains
##########

rainbow_mountains_01 = {
	effect_desc = hunting_grounds_desc

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/ala_daghlar_mountains.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_rainbow_mountains_01_a_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		diplomacy = 1
	}
	
	county_modifier = {
		prosperity_growth_factor = 0.2
		woodland_tax_mult = 0.1
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature # mountain
	flag = is_mountain
}

##########
# Mount Damavand
##########

mount_damavand_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/mount_damavand.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_mount_damavand_01_a_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		stress_loss_mult = 0.1
		mountains_travel_danger = -10
	}

	county_holder_character_modifier = {
	}
	
	county_modifier = {
		mountains_levy_size = 0.5
		travel_danger = -30
		prosperity_growth_factor = 0.3
	}
	
	province_modifier = {
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature # mountain
	flag = is_mountain
}

##########
# Tomb of Batsheba
##########

tomb_of_cyrus_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/tomb_of_cyrus.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_tomb_of_cyrus_01_a_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		close_relative_opinion = 10
		negate_health_penalty_add = 0.1
		monthly_dynasty_prestige_mult = 0.05
	}

	province_modifier = {
	}
	
	county_modifier = {
		control_baseline_add = 5
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_religious # religious tomb
}

##########
# Ark of Bukhara
##########

ark_of_bukhara_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/ark_of_bukhara.dds" 
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_ark_of_bukhara_mesh"
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		drylands_attrition_mult = -0.25
	}

	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		province_size_baseline_add = 40
	}
	county_modifier = {
		hostile_raid_time = 0.25
	}
	
	market_modifier = {
		trade_good_cotton_sell_price_mult = special_building_need_sell_price
		trade_good_furs_sell_price_mult = special_building_need_sell_price
		trade_good_cattle_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_cotton
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_furs
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_cattle
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_martial # fortress
}

##########
# Shah-i-Zinda
##########

shah_i_zinda_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shah_i_zindah.dds" 
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_prosperity_01
		}
	}
	
	cost_gold = 400

	character_modifier = {
		monthly_piety = 0.1
		learning_per_stress_level = 1
	}

	county_modifier = {
		control_baseline_add = 5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t2_effect = yes
	}

	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}

	next_building = shah_i_zinda_02
	

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious # religious tomb
}

shah_i_zinda_02 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/ruins_of_ctesiphon.dds" 
	
	can_construct = { building_stonework_high_medieval_trigger = yes }
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	cost_gold = 800

	character_modifier = {
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.1
		clan_government_opinion_same_faith = 5
		learning_per_stress_level = 1
	}

	county_modifier = {
		control_baseline_add = 5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious # religious tomb
}

##########
# Alamut Castle
##########

alamut_castle_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_alamut_castle_01_a_mesh"
	}

	can_construct_potential = {
	}
	
	cost_gold = 400

	province_modifier = {
		travel_danger = -30
		hostile_raid_time = 2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		fort_level = good_building_fort_level_tier_3
	}

	county_modifier = {
		defender_holding_advantage = 2
		control_baseline_add = 5
	}
	
	character_modifier = {
		character_capital_county_monthly_control_change_add = 0.2
		monthly_piety = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}

	next_building = alamut_castle_02
	

	flag = travel_point_of_interest_martial # fortress
}

alamut_castle_02 = {	
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/hotin_fortress.dds"
	
	asset = {
		type = pdxmesh
		name = "fp3_building_special_alamut_castle_01_a_mesh"
	}
	
	can_construct = {

		scope:holder = {
			employs_court_position = master_assassin_court_position 
		}
		building_fortification_early_medieval_trigger = yes
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	cost_gold = 600
	cost_piety = 400

	character_modifier = {
		max_hostile_schemes_add = 1
		monthly_piety = 0.5
		learning = 1
		character_capital_county_monthly_control_change_add = 0.2
	}

	province_modifier = {
		travel_danger = -50
		hostile_raid_time = 3
		stationed_maa_toughness_mult = normal_maa_toughness_tier_4
		fort_level = good_building_fort_level_tier_4
	}

	county_modifier = {
		defender_holding_advantage = 4
		control_baseline_add = 5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	flag = travel_point_of_interest_martial # fortress
}

assassin_castle_01 = {
	can_construct = { building_monument_tribal_trigger = yes }
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/hotin_fortress.dds"

	asset = {
		type = pdxmesh
		name = "fp3_building_special_alamut_castle_01_a_mesh"
	}

	cost_gold = 600
	cost_piety = 400

	character_modifier = {
		max_hostile_schemes_add = 1
		monthly_piety = 0.5
		learning = 1
		character_capital_county_monthly_control_change_add = 0.2
	}

	province_modifier = {
		travel_danger = -50
		hostile_raid_time = 3
		stationed_maa_toughness_mult = normal_maa_toughness_tier_4
		fort_level = good_building_fort_level_tier_4
	}

	county_modifier = {
		defender_holding_advantage = 4
		control_baseline_add = 5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial # fortress
}
##################
# Event Tower of Silence (typically a duchy building, this is a special for FP3 events)
##################
event_tower_of_silence_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/tower_of_silence.dds"

	can_construct_potential = {
		always = no
	}

	cost_gold = expensive_building_tier_3_cost

	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for duchy buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}


	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious # funeral site
}

############ EP3 ###############

##########
# Church of the Theotokos
##########
church_of_the_theotokos = {
	type_icon = "special_buildings/parthenon_theotokos.dds"

	asset = {
		type = pdxmesh
		name = "ep3_monument_parthenon_01_b_mesh"
	}

	construction_time = slow_construction_time
	cost_gold = 1000 

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.3
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.05
	}

	province_modifier = {
		travel_danger = -10
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	


	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

parthenon = {
	type_icon = "special_buildings/parthenon.dds"

	asset = {
		type = pdxmesh
		name = "ep3_monument_parthenon_01_a_mesh"
	}

	construction_time = slow_construction_time
	cost_gold = 1000 

	can_construct = {
		OR = {
			scope:holder.faith.religion = faith:hellenic_pagan.religion
			scope:holder.faith.religion = religion:theomach_religion
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	is_enabled = {
		OR = {
			scope:holder.faith.religion = faith:hellenic_pagan.religion
			scope:holder.faith.religion = religion:theomach_religion
		}
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.3
		monthly_dynasty_prestige_mult = 0.05
		character_capital_county_monthly_control_change_add = 0.05
	}

	province_modifier = {
		travel_danger = -10
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	next_building = church_of_the_theotokos

	flag = travel_point_of_interest_religious
}

##########
# Hagios Demetrios
##########
hagios_demetrios = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/hagios_demetrios.dds"

	asset = {
		type = pdxmesh
		name = ep3_hagios_demetrios_01_a_mesh
	}

	cost_gold = 1000

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.2
		character_capital_county_monthly_control_change_add = 0.05
		same_faith_opinion = 5
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}

	province_modifier = {
		monthly_religious_tax = 0.5
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Kassiopi Castle
##########
kassiopi_castle = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/kassiopi_castle.dds"

	cost_gold = 1000

	can_construct_potential = {
		building_requirement_tribal = no
	}

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

	character_modifier = {
		monthly_influence = 0.1
		monthly_influence_mult = 0.05
	}
	
	county_modifier = {
		hostile_raid_time = 0.5
		travel_danger = -20
		levy_size = 0.3
	}

	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		garrison_size = 0.2
	}
	
	market_modifier = {
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Church of St. Lazarus
##########
saint_lazarus = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/saint_lazarus.dds"

	asset = {
		type = pdxmesh
		name = ep3_church_saint_lazarus_mesh
	}

	cost_gold = 750

	can_construct = {

	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.3
		character_capital_county_monthly_control_change_add = 0.05
		same_faith_opinion = 5
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}

	province_modifier = {
		monthly_religious_tax = 0.4
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Sumela Monastery
##########
sumela_monastery_01 = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/sumela_monastery.dds"

	asset = {
		type = pdxmesh
		name = ep3_sumela_monastery_01_a_mesh
	}

	cost_gold = 1000

	can_construct = {

	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.3
		character_capital_county_monthly_control_change_add = 0.05
		same_faith_opinion = 5
		clergy_opinion = 5
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		religious_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	next_building = sumela_monastery_02
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

sumela_monastery_02 = {
	construction_time = very_slow_construction_time


	asset = { 
		type = pdxmesh
		name = ep3_sumela_monastery_01_b_mesh
	}

	cost_gold = 750

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}

	can_construct = { christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder } building_religious_early_medieval_trigger = yes }
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.4
		character_capital_county_monthly_control_change_add = 0.1
		same_faith_opinion = 5
		clergy_opinion = 10
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Patras Castle
##########
patras_castle = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/patras_castle.dds"

	asset = {
		type = pdxmesh
		name = ep3_patras_castle_01_a_mesh
	}

	cost_gold = 1000

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		
	}

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_influence = 0.1
		monthly_influence_mult = 0.05
	}
	
	county_modifier = {
		hostile_raid_time = 0.75
		travel_danger = -20
		levy_size = 0.2
		popular_opinion_add = building_minor_popular_opinion_gain
	}

	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		garrison_size = 0.2
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	market_modifier = {
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Maiden's Tower
##########
maiden_tower = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/maiden_tower.dds"

	asset = {
		type = pdxmesh
		name = ep3_maidens_tower_01_a_mesh
	}

	cost_gold = 750

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		
	}

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_influence = 0.1
		monthly_influence_mult = 0.05
	}
	
	county_modifier = {
		hostile_raid_time = 1
		travel_danger = -25
		popular_opinion_add = building_miniscule_popular_opinion_gain
		artisan_tax_mult = 0.2
	}

	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_4
		fort_level = good_building_fort_level_tier_1
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial
}

##########
# Despots' Palace at Mystras
##########
despot_palace = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	asset = {
		type = pdxmesh
		name = ep3_despots_palace_mesh
	}

	cost_gold = 1200

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_primogeniture
			has_cultural_pillar = heritage_byzantine
		}
	}

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
		powerful_vassal_opinion = 5
		monthly_prestige_gain_per_happy_powerful_vassal_add = 0.15
		courtly_opinion = 5
		parochial_opinion = 5
		legitimacy_gain_mult = 0.1
		monthly_influence = 0.2
		monthly_influence_mult = 0.3
	}
	
	county_modifier = {
		control_baseline_add = 5
		popular_opinion_add = building_medium_popular_opinion_gain
		artisan_tax_mult = 0.3 #Would be civic, but Venice
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		ai_control_baseline_building_modifier = { VALUE = 5 }
		ai_opinion_baseline_building_modifier = { VALUE = 20 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_diplomatic
}

##########
# Meteora
##########
meteora_01 = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/meteora.dds"

	asset = {
		type = pdxmesh
		name = ep3_meteora_01_mesh
	}

	cost_gold = 500

	can_construct = {

	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		monthly_piety = 0.2
	}
	
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
		religious_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	next_building = meteora_02
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

meteora_02 = {
	construction_time = very_slow_construction_time


	asset = {
		type = pdxmesh
		name = ep3_meteora_02_mesh
	}

	cost_gold = 1000

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_cranes
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		monthly_piety = 0.3
		character_capital_county_monthly_control_change_add = 0.05
		clergy_opinion = 5
		parochial_opinion = 5
		zealot_opinion = 5
		zealot_tax_contribution_mult = 0.2
		zealot_levy_contribution_mult = 0.2
	}
	
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_wine_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wine
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Mt. Athos
##########
mount_athos_01 = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/mount_athos.dds"

	asset = {
		type = pdxmesh
		name = ep3_athos_monasteries_01_a_mesh
	}

	cost_gold = 300

	can_construct = {

	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		religious_vassal_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}

	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}

	next_building = mount_athos_02
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

mount_athos_02 = {
	construction_time = slow_construction_time


	asset = {
		type = pdxmesh
		name = ep3_athos_monasteries_01_a_mesh
	}

	cost_gold = 600

	can_construct = { building_religious_early_medieval_trigger = yes }
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		monthly_piety = 0.2
		religious_vassal_opinion = 10
		zealot_opinion = 5
		clergy_opinion = 5
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		religious_tax_mult = 0.2
	}

	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	next_building = mount_athos_03
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

mount_athos_03 = {
	construction_time = very_slow_construction_time


	asset = {
		type = pdxmesh
		name = ep3_athos_monasteries_01_b_mesh
	}

	cost_gold = 1000

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_cranes
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_3_trigger = yes
	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		monthly_piety = 0.4
		cultural_head_fascination_mult = 0.10
		rite_creation_piety_cost_mult = -0.1
		religious_vassal_opinion = 10
		zealot_opinion = 10
		clergy_opinion = 10
	}
	
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
		religious_tax_mult = 0.3
	}

	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 3 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	next_building = mount_athos_04

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

# NEOW fourth stage, retains tier-three production/needs and adds measured defences.
mount_athos_04 = {
	construction_time = very_slow_construction_time


	asset = {
		type = pdxmesh
		name = ep3_athos_monasteries_01_b_mesh
	}

	cost_gold = 1500
	cost_piety = 1000

	can_construct = {
		# Fourth stage is reserved for the restored Athonite theocratic empire.
		scope:holder = { has_title = title:h_athos }
	}
	can_construct_showing_failures_only = {
		holding_district_level_3_trigger = yes
	}
	
	is_enabled = {
		scope:holder.rite = {
			rite_has_doctrine = special_doctrine_is_eastern_christian_faith
		}
	}

	character_modifier = {
		monthly_piety = 0.6
		cultural_head_fascination_mult = 0.10
		rite_creation_piety_cost_mult = -0.1
		religious_vassal_opinion = 10
		zealot_opinion = 10
		clergy_opinion = 10
	}
	
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
		religious_tax_mult = 0.35
	}

	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
		fort_level = 3
		defender_holding_advantage = 2
		garrison_size = 0.15
		travel_danger = -15
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_oil_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 4 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_oil
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Sant'Apollinare Nuovo
##########
apollinare_nuovo = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/apollinare_nuovo.dds"

	asset = {
		type = pdxmesh
		name = ep3_basilica_sant_apollinare_nuovo_mesh
	}

	cost_gold = 1000

	can_construct = {
		
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.2
		religious_vassal_opinion = 5
		character_capital_county_monthly_control_change_add = 0.1
		zealot_opinion = 5
		clergy_opinion = 5
	}
	
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
		religious_tax_mult = 0.3
	}

	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.25
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
		province_size_baseline_add = special_building_province_size_baseline
	}
	market_modifier = {
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_very_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Saint Catherine's Monastery
##########
saint_catherine = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/saint_catherine.dds"

	asset = {
		type = pdxmesh
		name = ep3_saint_catherine_monastery_mesh
	}

	cost_gold = 1000

	can_construct = {
		
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.3
		religious_vassal_opinion = 5
		character_capital_county_monthly_control_change_add = 0.2
		monthly_lifestyle_xp_gain_mult = 0.10
		cultural_head_fascination_mult = 0.10
		zealot_opinion = 5
		clergy_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
	}

	province_modifier = {
		fort_level = good_building_fort_level_tier_1
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_category_precious_metals_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_precious_metals
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			character_modifier = {
				monthly_piety = special_building_need_piety
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Jvari Monastery
##########
jvari_monastery = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/jvari_monastery.dds"

	asset = {
		type = pdxmesh
		name = ep3_jvari_monastery_01_a_mesh
	}

	cost_gold = 700

	can_construct = {
		
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.3
		religious_vassal_opinion = 5
		zealot_opinion = 5
		clergy_opinion = 10
		character_capital_county_monthly_control_change_add = 0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
		popular_opinion_add = building_minor_popular_opinion_gain
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_honey_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_honey
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Etchmiadzin Cathedral
##########
etchmiadzin_cathedral = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/etchmiadzin_cathedral.dds"

	asset = {
		type = pdxmesh
		name = ep3_etchmiadzin_cathedral_01_a_mesh
	}

	cost_gold = 1000

	can_construct = {
		
	}
	
	is_enabled = {
		scope:holder.rite = rite:armenian_rite
	}

	character_modifier = {
		monthly_piety = 0.4
		religious_vassal_opinion = 10
		zealot_opinion = 10
		clergy_opinion = 10
		monthly_dynasty_prestige_mult = 0.05
		same_faith_opinion = 5
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
		popular_opinion_add = building_minor_popular_opinion_gain
	}

	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.5
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Cattolica di Stilo
##########
cattolica_stilo = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/cattolica_stilo.dds"

	asset = {
		type = pdxmesh
		name = ep3_cattolica_di_stilo_mesh
	}

	cost_gold = 750

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.5
		religious_vassal_opinion = 5
		zealot_opinion = 5
		clergy_opinion = 5
		holy_order_hire_cost_mult = -0.15
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
		popular_opinion_add = building_minor_popular_opinion_gain
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 10 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Hosios Loukas
##########
hosios_loukas = {
	construction_time = slow_construction_time

	type_icon = "special_buildings/hosios_loukas.dds"

	cost_gold = 1000

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.2
		religious_vassal_opinion = 5
		zealot_opinion = 5
		clergy_opinion = 5
		monthly_prestige = 0.3
		monthly_influence = 0.2
		negate_health_penalty_add = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.4
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Church of Saint Sophia, Ohrid
##########
sofia_ohrid = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/sofia_ohrid.dds"

	asset = {
		type = pdxmesh
		name = ep3_church_saint_sophia_ohrid_01_a_mesh
	}

	cost_gold = 1000

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}
	
	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	character_modifier = {
		monthly_piety = 0.3
		religious_vassal_opinion = 5
		zealot_opinion = 5
		clergy_opinion = 10
		character_capital_county_monthly_control_change_add = 0.05
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	province_culture_modifier = {
		parameter = civic_religion_cathedral_civic_tax
		monthly_civic_tax = 0.25
	}
	province_modifier = {
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
		trade_good_jewelry_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_jewelry
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				monthly_religious_tax = special_building_need_tax
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_christianity
}

##########
# Fairy Chimneys
##########
fairy_chimneys = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/fairy_chimneys.dds"
	
	asset = {
		type = pdxmesh
		name = ep3_fairy_chimneys_01_a_mesh
	}

	can_construct_potential = {
		
	}
	
	is_enabled = {
		
	}
	
	cost_gold = 250
	
	county_modifier = {
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.5
		defender_holding_advantage = 5
	}
	
	province_modifier = {
		garrison_size = 0.1
		levy_size = 0.1
		travel_danger = -10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_economic
}

##########
# Cilician Gates
##########
cilician_gates = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cilician_gates.dds"
	
	asset = {
		type = pdxmesh
		name = ep3_cilician_gates_mesh
	}

	can_construct_potential = {
		
	}
	
	is_enabled = {
		
	}
	
	cost_gold = 500

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_influence = 0.1
		monthly_influence_mult = 0.1
	}
	
	county_modifier = {
		hostile_raid_time = 1
		defender_holding_advantage = 5
		control_baseline_add = 5
		fort_level = good_building_fort_level_tier_1
	}
	
	province_modifier = {
		travel_danger = -10
	}
	
	ai_value = {
		base = 10
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_martial
}

##########
# Pleasure Dome
##########
pleasure_dome = {
	construction_time = very_slow_construction_time
	effect_desc = pleasure_dome_effect_desc

	type_icon = "special_buildings/pleasure_dome.dds"

	character_modifier = {
		monthly_prestige_gain_mult = 0.15
		owned_hostile_scheme_success_chance_add = 25
		owned_personal_scheme_success_chance_add = 25
		court_grandeur_baseline_add = 12
		monthly_income_from_herd_mult = 0.15
		herd_capacity_mult = 0.25
		herd_conversion = 0.005
	}

	province_modifier = {
	}

}

# Burkhan Khaldun
##########

burkhan_khaldun_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/burkhan_khaldun.dds" 
	
	asset = {
		type = pdxmesh
		name = "mpo_building_special_burkhan_khaldun_mesh" 
	}

	can_construct_potential = {}
	
	cost_gold = 300
	
	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		clergy_opinion = 5
	}

	province_modifier = {
		fort_level = 2
		defender_holding_advantage = normal_building_advantage_tier_3
	}

	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		mountains_fertility_growth_mult = 0.25
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature
}

##########
# Swahili Ports
##########

swahili_port_pemba = { 
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/swahili_port.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000

	character_modifier = {
		naval_movement_speed_mult = 0.25
		embarkation_cost_mult = -0.5
	}
	
	county_modifier = {
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		garrison_size = 1
		fort_level = 1
		monthly_commerce_tax = 2
		monthly_maritime_tax = 1
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_economic
}

swahili_port_zanzibar = { 
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/swahili_port.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000

	character_modifier = {
		naval_movement_speed_mult = 0.25
		embarkation_cost_mult = -0.5
	}
	
	province_modifier = {
		levy_size = 1
		monthly_commerce_tax = 1.5
		monthly_maritime_tax = 0.5
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

swahili_port_mombasa = { 
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/swahili_port.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000

	character_modifier = {
		naval_movement_speed_mult = 0.25
		embarkation_cost_mult = -0.25
	}
	
	county_modifier = {
		levy_size = 0.1
		defender_holding_advantage = 10
	}
	
	province_modifier = {
		garrison_size = 1
		fort_level = 2
		monthly_commerce_tax = 1.5
		monthly_maritime_tax = 0.5
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

swahili_port_pate = {	# Early location of Swahili Coast development and site of early mosques
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/swahili_port.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000

	character_modifier = {
		embarkation_cost_mult = -0.5
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		domain_tax_different_faith_mult = 0.15
	}

	county_modifier = {
		levy_size = 0.1
	}
	
	province_modifier = {
		monthly_commerce_tax = 2
		monthly_maritime_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

swahili_port_lamu = {	# Early location of Swahili Coast development and site of early trade good abundance
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/swahili_port.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000

	character_modifier = {
		embarkation_cost_mult = -0.25
		diplomacy_per_piety_level = 1
		stewardship_per_prestige_level = 1
		different_culture_opinion = 10
	}
	
	province_modifier = {
		monthly_commerce_tax = 1.5
		monthly_maritime_tax = 0.5
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Wulingyuan
##########

wulingyuan_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/wulingyuan.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_prestige = 1 
		monthly_dynasty_prestige_mult = 0.1
	}

	county_modifier = {
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature # mountains
}

##########
# Leshan Giant Buddha
##########

leshan_giant_buddha_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/leshan_giant_buddha.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_leshan_buddha_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				OR = {
					eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
					sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
				}
			}
		}
	}
	
	cost_gold = 2000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.1
		stress_loss_per_piety_level = 0.05
	}
	county_modifier = {
		religious_tax_mult = 0.1
		popular_opinion_add = building_miniscule_popular_opinion_gain
		travel_danger = -10
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Yungang Grottoes
##########

yungang_grottoes_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/yungang_grottoes.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				OR = {
					eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
					sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
				}
			}
		}
	}
	
	cost_gold = 2000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.1
		intrigue_per_piety_level = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Wudang Mountain Temples
##########

wudang_mountain_temples_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/wudang_mountain_temples.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_wudang_mountains_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			OR = {
				eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
				sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_per_court_position_mult = 0.03
		prowess_per_piety_level = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_very_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Shaolin Monastery
##########

shaolin_monastery_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			OR = {
				eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
				sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.5
		monthly_piety_from_buildings_mult = 0.3
		prowess_per_piety_level = 3
		buddhism_religion_opinion = 10
	}
	county_modifier = {
		religious_tax_mult = 0.2
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Lingyin Temple
##########

lingyin_temple_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/lingyin_temple.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				OR = {
					eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
					sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
				}
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.15
		monthly_dynasty_prestige_mult = 0.05
		learning_per_merit_level = 0.5
	}
	province_modifier = {
		monthly_religious_tax = 1
		trade_good_tea_production_add = special_building_tea_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_tea_buy_price_mult = special_building_production_buy_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Giant Wild Goose Pagoda
##########

giant_wild_goose_pagoda_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/giant_wild_goose_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				OR = {
					eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
					sinitic_or_syncretic_with_sinitic_trigger = { CHARACTER = scope:holder }
				}
			}
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 1
		monthly_piety_gain_per_happy_powerful_vassal_mult = 0.07
		same_heritage_county_advantage_add = 2
		faith_conversion_piety_cost_mult = -0.2
		learning = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
	}
	province_modifier = {
		province_size_baseline_add = 90
		trade_good_books_paper_production_add = special_building_books_output
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_books_paper_buy_price_mult = special_building_production_buy_price
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# Kaifeng Imperial Palace
##########

kaifeng_palace_01 = {
	construction_time = very_slow_construction_time
	
	effect_desc = {
		triggered_desc = {
			trigger = { has_tgp_dlc_trigger = yes }
			desc = unlocks_building_desc
		}
		triggered_desc = {
			trigger = { has_tgp_dlc_trigger = yes }
			desc = kaifeng_examination_cost_bonus_desc
		}
	}
	
	type_icon = "special_buildings/kaifeng_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
		stewardship_per_influence_level = 1
		dynasty_house_opinion = 5
		monthly_influence_mult = 0.1
	}
	county_modifier = {
		civic_tax_mult = 0.3
	}
	province_modifier = {
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
		trade_good_millet_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_millet
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# The Forbidden City
##########

forbidden_city_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/forbidden_city.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {
		scope:holder.capital_province = root
	}
	
	cost_gold = 1000
	
	character_modifier = {
		court_grandeur_baseline_add = 10
		monthly_dynasty_prestige_mult = 0.1
		diplomacy_per_influence_level = 1
		courtly_opinion = 5
		monthly_influence_mult = 0.1
	}
	character_government_modifier = {
		parameter = government_uses_governor_efficiency
		realm_governor_efficiency_add = 0.04
	}
	county_modifier = {
		civic_tax_mult = 0.3
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_diplomatic
}

##########
# Qianling Mausoleum
##########

qianling_mausoleum_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/qianling_mausoleum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
	}
	county_modifier = {
		levy_size = 0.1
		build_gold_cost = -0.05
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_religious # religious tomb
}

##########
# Quanzhou Seaport
##########

quanzhou_seaport_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/quanzhou_seaport.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		naval_movement_speed_mult = 0.25
		cultural_head_acceptance_gain_mult = 0.2
		different_culture_opinion = 5
	}
	province_modifier = {
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
		trade_good_tea_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_tea
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Angkor Wat
##########

angkor_wat_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/angkor_wat.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_angkorwat_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			scope:holder = {
				eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
			}
		}
	}
	
	cost_gold = 2000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.2
		negate_learning_penalty_add = 4
		clergy_opinion = 10
		monthly_learning_lifestyle_xp_gain_mult = 0.2
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		control_baseline_add = 5
	}
	province_modifier = {
		monthly_religious_tax = 1
		province_size_baseline_add = 40
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 9
		ai_pious_building_preference_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_stone_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Imperial Citadel of Thang Long
##########

citadel_thang_long_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/citadel_thang_long.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_thang_long_palace_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
	}
	
	cost_gold = 750
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.05
		knight_effectiveness_per_martial = 0.01
	}
	county_modifier = {
		hostile_raid_time = 0.25
	}
	province_modifier = {
		fort_level = 2
		defender_holding_advantage = 5
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = special_building_need_sell_price
	}
	
	next_building = citadel_thang_long_02
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_wood
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_martial
}

citadel_thang_long_02 = {
	construction_time = very_slow_construction_time

	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_thang_long_palace_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	can_construct = { building_fortification_early_medieval_trigger = yes }

	is_enabled = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_prestige_gain_per_legitimacy_level_mult = 0.05
		knight_effectiveness_per_martial = 0.03
		monthly_dynasty_prestige_mult = 0.1
		legitimacy_gain_mult = 0.1
	}
	county_modifier = {
		hostile_raid_time = 0.5
	}
	province_modifier = {
		fort_level = 4
		defender_holding_advantage = 10
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		province_size_baseline_add = 40
	}
	
	market_modifier = {
		trade_good_horses_sell_price_mult = special_building_need_sell_price
		trade_good_wood_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	trade_good_need = {
		trade_good = trade_good_horses
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wood
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Po Klong Garai Temple
##########

po_klong_garai_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/po_klong_garai.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_po_klong_temple_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_per_legitimacy_level_mult = 0.04
		learning = 1
	}
	county_modifier = {
		religious_tax_mult = 0.2
		control_baseline_add = 5
		epidemic_resistance = 10
	}
	
	ai_value = {
		base = 9
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
}

##########
# Krakatoa
##########

krakatoa_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/krakatoa.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		stress_loss_mult = 0.1
		dread_baseline_add = 10
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		prosperity_growth = 0.1
	}
	province_modifier = {
		travel_danger = 5
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_natural_feature
}

##########
# Borobudur
##########

borobudur_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/borobudur.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_borudur_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = buddhas_of_bamian_trigger
			eastern_or_syncretic_with_eastern_trigger = { CHARACTER = scope:holder }
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.2
		monthly_dynasty_prestige_mult = 0.1
		different_faith_opinion = 5
	}
	county_modifier = {
		religious_tax_mult = 0.2
		build_speed = -0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# Hoshi Ryokan
##########

hoshi_ryokan_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/hoshi_ryokan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
	}
	
	cost_gold = 500
	
	character_modifier = {
		stress_loss_mult = 0.2
		dynasty_house_opinion = 10
	}
	province_modifier = {
		monthly_artisan_tax = 1
		travel_danger = -10
	}
	
	market_modifier = {
		trade_good_wood_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_wood
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_minimal
			}
		}
	}

	flag = travel_point_of_interest_stress_relief

}

##########
# Herat Bazaar
##########

herat_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
		province_size_baseline_add = special_building_province_size_baseline
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = herat_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

herat_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	

	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Bazaar of Tabriz
##########

tabriz_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = tabriz_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

tabriz_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {

	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Khrom of Lhasa
##########

lhasa_market_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_tea_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = lhasa_market_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_tea
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

lhasa_market_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_tea_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_tea
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Bazaar of Gurganj
##########

gurganj_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = gurganj_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_furs
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

gurganj_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_furs
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Market of Chang'an
##########

changan_market_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = changan_market_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

changan_market_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -20
		monthly_commerce_tax = 3
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.10
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Bazaar of Lahur (Lahore)
##########

lahur_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
		province_size_baseline_add = special_building_province_size_baseline
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_cotton_sell_price_mult = special_building_need_sell_price
		trade_good_salt_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = lahur_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_cotton
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

lahur_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_cotton_sell_price_mult = special_building_need_sell_price
		trade_good_salt_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_cotton
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Hamadan Bazaar
##########

hamadan_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		
	}

	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_spices_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = hamadan_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_spices
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

hamadan_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_spices_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_spices
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Market of Dunhuang
##########

dunhuang_market_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = dunhuang_market_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

dunhuang_market_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
	flag = silk_road_node
}

##########
# Sunday Bazaar of Kashgar
##########

sunday_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_jade_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = sunday_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_jade
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

sunday_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
	
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	
	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_jade_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_jade
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Mount Fuji
##########

mount_fuji_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/mount_apo.dds"

	asset = {
		type = pdxmesh
		name = "tgp_building_special_mt_fuji_mesh"
	}

	is_enabled = {
		custom_description = {
			text = holy_site_shinto_or_holy_site_trigger
			OR = {
				scope:holder.religion = religion:shintoism_religion
				custom_description = {
					text = holy_site_building_trigger
					barony = { is_holy_site_of = scope:holder.faith }
				}
				scope:holder.faith = { has_doctrine = special_doctrine_immaterial_harmony }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		stress_loss_mult = 0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		travel_danger = -30
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = is_mountain
	flag = holy_building
}

##########
# Itsukushima-jinja
##########

itsukushima_jinja_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/torii_gate.dds"

	asset = {
		type = pdxmesh
		name = "tgp_building_special_itsukushima_mesh"
	}

	next_building = itsukushima_jinja_02

	is_enabled = {
		custom_description = {
			text = holy_site_shinto_or_holy_site_trigger
			OR = {
				scope:holder.religion = religion:shintoism_religion
				custom_description = {
					text = holy_site_building_trigger
					barony = { is_holy_site_of = scope:holder.faith }
				}
				scope:holder.faith = { has_doctrine = special_doctrine_immaterial_harmony }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		embarkation_cost_mult = -0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_shintoism
}

itsukushima_jinja_02 = {
	can_construct = { building_religious_early_medieval_trigger = yes }
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	construction_time = very_slow_construction_time
	

	asset = {
		type = pdxmesh
		name = "tgp_building_special_itsukushima_mesh"
	}

	is_enabled = {
		custom_description = {
			text = holy_site_shinto_or_holy_site_trigger
			OR = {
				scope:holder.religion = religion:shintoism_religion
				custom_description = {
					text = holy_site_building_trigger
					barony = { is_holy_site_of = scope:holder.faith }
				}
				scope:holder.faith = { has_doctrine = special_doctrine_immaterial_harmony }
			}
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.5
		monthly_dynasty_prestige_mult = 0.1
		embarkation_cost_mult = -0.2
	}
	
	county_modifier = {
		religious_tax_mult = 0.3
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 2 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_shintoism
}

##########
# Heian Palace
##########

heian_palace_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/heian_palace.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_heian_kyo_mesh"
	}

	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		court_grandeur_baseline_add = 10
		monthly_dynasty_prestige_mult = 0.1
		diplomacy_per_influence_level = 1
		courtly_opinion = 5
		monthly_influence_mult = 0.05
	}
	county_modifier = {
		civic_tax_mult = 0.3
	}
	province_modifier = {
		fort_level = 2
		defender_holding_advantage = 5
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_silk_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}
	levy = 1400
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_silk
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5
		not_rite_parameter = luxury_forbidden

		modifiers = {
			character_modifier = {
				monthly_prestige = special_building_need_prestige
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_diplomatic
}

##########
# Ise Jingu
##########

ise_jingu_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/torii_gate.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		character_travel_speed_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}
	
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_wood_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_wood
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_shintoism
}

##########
# Kofuku-ji
##########

kofuku_ji_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/cathedral_buddhist.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		rite_creation_piety_cost_mult = -0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	province_modifier = {
		province_size_baseline_add = 40
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_lacquerware_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_lacquerware
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# Enryaku-ji (延暦寺)
##########

enryaku_ji_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/cathedral_buddhist.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		rite_creation_piety_cost_mult = -0.1
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# Dazaifu
##########

dazaifu_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_prestige = 0.25
		character_capital_county_monthly_control_change_add = 0.1
		build_speed = -0.1
		diplomacy_per_influence_level = 1
	}

	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = 0.5
	}
	
	county_modifier = {
		civic_tax_mult = 0.1
	}
	
	province_modifier = {
		fort_level = 2
	}
	
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Chinjufu
##########

chinjufu_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_prestige = 0.1
		glory_hound_opinion = 5
		vassal_limit = 1
		defender_advantage = 4
	}
	
	county_modifier = {
		hostile_raid_time = 0.5
		levy_size = 0.2
	}
	
	province_modifier = {
		fort_level = 2
	}
	
	market_modifier = {
		trade_good_horses_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_horses
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Hakata Port
##########

hakata_port_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/quanzhou_seaport.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		parochial_opinion = 5
		naval_movement_speed_mult = 0.1
		embarkation_cost_mult = -0.1
	}
	
	province_modifier = {
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Hwangnyongsa
##########

hwangnyongsa_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_building_special_hwangnyongsa_mesh"
	}

	show_disabled = yes
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		levy_reinforcement_rate_same_faith = 0.15
		character_capital_county_monthly_control_change_add = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.2
	}

	province_modifier = {
		province_size_baseline_add = 40
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_good_silver_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_silver
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
	flag = religious_studies_location
}

##########
# Byeok-ran Port - 碧瀾渡 (벽란도)
##########

byeokran_port_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/quanzhou_seaport.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000
	
	character_modifier = {
		parochial_opinion = 5
		naval_movement_speed_mult = 0.1
		embarkation_cost_mult = -0.1
	}
	
	province_modifier = {
		monthly_commerce_tax = 2
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	market_modifier = {
		trade_category_carpentry_supplies_sell_price_mult = special_building_need_sell_price
		trade_good_ceramics_sell_price_mult = special_building_need_sell_price
	}
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good_category = trade_category_carpentry_supplies
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_ceramics
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}

##########
# Mount Baekdu
##########

mount_baekdu_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/mount_apo.dds"

	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = { is_holy_site_of = scope:holder.faith }
		}
	}
	
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		stress_loss_mult = 0.1
	}
	
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		religious_tax_mult = 0.1
	}
	
	province_modifier = {
		fort_level = 2
		defender_holding_advantage = 6
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_stress_relief
	flag = travel_point_of_interest_natural_feature # mountain
	flag = is_mountain
	flag = holy_building
}

##########
# Dâu Temple
##########

dau_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/dau.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 1000
	
	character_modifier = {
		learning_per_piety_level = 1
		health = 0.10
	}

	county_holder_character_modifier = {
		buddhism_religion_opinion = 5
	}

	county_modifier = {
		religious_tax_mult = 0.1
		epidemic_resistance = 10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Liuhe Pagoda
##########

liuhe_pagoda_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/liuhe_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {

	}
	
	cost_gold = 1250
	
	character_modifier = {
		character_capital_county_monthly_control_change_add = 0.15
		monthly_piety_gain_mult = 0.10
		monthly_prestige_gain_mult = 0.05
		clergy_opinion = 5
	}
	county_modifier = {
		travel_danger = -10
	}
	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Muaro Jambi Temple Compounds
##########

muaro_jambi_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/mauro_jambi.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 1000
	
	character_modifier = {
		character_capital_county_monthly_control_change_add = 0.1
		martial_per_piety_level = 1
		direct_vassal_opinion = 5
	}
	county_modifier = {
		religious_tax_mult = 0.10
	}
	province_modifier = {
		fort_level = 2
		levy_size = 0.1
		travel_danger = -20
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_martial
	flag = holy_building
	flag = holy_building_hinduism
}

##########
# Hanging Temple
##########

hanging_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/hanging_temple.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 2000
	
	character_modifier = {
		piety_level_impact_mult = 0.1
		monthly_piety_gain_per_legitimacy_level_mult = 0.05
		taoism_religion_opinion = 5
		buddhism_religion_opinion = 5
		confucianism_religion_opinion = 5
	}

	county_modifier = {
		religious_tax_mult = 0.1
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Pagoda of Fogong Temple
##########

pagoda_of_fogong_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/fogong_temple_pagoda.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = { building_monument_tribal_trigger = yes }

	is_enabled = {

	}
	
	cost_gold = 2000
	
	character_modifier = {
		monthly_piety_from_buildings_mult = 0.1
		monthly_piety_gain_per_legitimacy_level_mult = 0.05
		buddhism_religion_opinion = 5
		zealot_opinion = 5
		monthly_dynasty_prestige_mult = 0.1
	}

	province_modifier = {
		artifact_decay_reduction_mult = -0.15
	}

	county_modifier = {
		religious_tax_mult = 0.1
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_buddhism
}

##########
# Plain of Jars
##########

plain_of_jars_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/plain_of_jars.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 2000
	
	character_modifier = {
		stress_loss_per_piety_level = 0.1
		diplomatic_range_mult = 0.20
		intrigue_per_piety_level = 1
		levy_reinforcement_rate_same_faith = 0.1
	}

	province_modifier = {
	}

	county_modifier = {
		travel_danger = -20
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
}

##########
# Dieng Plateau
##########

dieng_plateau_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/dieng_pleateau.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 2000
	
	character_modifier = {
		stress_loss_per_piety_level = 0.1
		dread_gain_mult = 0.15
		intrigue = 1
		monthly_piety_gain_per_dread_mult = 0.05
		learning = 1
	}

	province_modifier = {
		
	}

	county_modifier = {
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
}

##########
# Mount Apo
##########

mount_apo_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/mount_apo.dds"

	is_enabled = {

	}
	
	show_disabled = yes
	
	cost_gold = 1000
	
	character_modifier = {
		piety_level_impact_mult = 0.25
		rite_creation_piety_cost_mult = -0.1
		stress_loss_mult = 0.05
		realm_priest_opinion = 10
	}
	
	county_modifier = {
	}
	
	province_modifier = {
		monthly_religious_tax = 1
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = basic_resource_need

		modifiers = {
			character_modifier = {
				monthly_piety = 0.05
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_stress_relief
	flag = travel_point_of_interest_natural_feature # mountain
	flag = is_mountain
	flag = holy_building
}

##########
# Besakih Temple
##########

besakih_temple_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/besakih.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {

	}
	
	cost_gold = 2000
	
	character_modifier = {
		monthly_piety_gain_per_knight_mult = 0.03
		hinduism_religion_opinion = 10
		monthly_dynasty_prestige_mult = 0.1
		learning = 1
		legitimacy_gain_mult = 0.1
	}

	county_modifier = {
		religious_tax_mult = 0.15
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
	}
	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = holy_building_hinduism
}

##########
# Gongsanseong Fortress
##########

gongsanseong_fortress_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/gongsanseong_fortress.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 1500
	
	max_garrison = good_building_max_garrison_tier_2

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
		character_capital_county_monthly_control_change_add = 0.5
		control_baseline_add = 5
	}

	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
		travel_danger = -20
		province_size_baseline_add = 40
	}
	market_modifier = {
		trade_good_rice_sell_price_mult = special_building_need_sell_price
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		ai_control_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_control_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}

	trade_good_need = {
		trade_good = trade_good_rice
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 5
			}
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# White Deer Grotto Academy
##########

white_deer_grotto_academy_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {

		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 30
		}
		building_monument_tribal_trigger = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning = 2
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Shigu Academy
##########

shigu_academy_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {

		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 30
		}
		building_monument_tribal_trigger = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_dynasty_prestige = 0.1
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Culai Academy
##########

culai_academy_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {

		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 30
		}
		building_monument_tribal_trigger = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_piety_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		monthly_prestige = 0.05
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Lize Academy
##########

lize_academy_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {

		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 30
		}
		building_monument_tribal_trigger = yes
	}
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_merit_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		prestige_level_impact_mult = 0.15
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Maoshan Academy
##########

maoshan_academy_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		rite_creation_piety_cost_mult = -0.1
	}
	
	county_modifier = {
		civic_tax_mult = 0.2
	}
	
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_medium
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
	flag = special_university
	flag = religious_studies_location
}

##########
# Tiantai Monasteries
##########

tiantai_monasteries_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	character_modifier = {
		monthly_piety = 0.20
		rite_creation_piety_cost_mult = -0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}
	
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
		trade_good_tea_production_add = special_building_tea_output
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_books_sell_price_mult = special_building_need_sell_price
		trade_good_tea_buy_price_mult = special_building_production_buy_price
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
	flag = holy_building
	flag = holy_building_buddhism
	flag = special_university
	flag = religious_studies_location
}

##########
# Jizu Shan Temples
##########

jizu_shan_temples_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	character_modifier = {
		monthly_piety = 0.20
		rite_creation_piety_cost_mult = -0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
	flag = holy_building
	flag = holy_building_buddhism
	flag = special_university
	flag = religious_studies_location
}

##########
# Nanhua Temple
##########

nanhua_temple_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/shaolin_monastery.dds"
	
	show_disabled = yes
	
	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	character_modifier = {
		monthly_piety = 0.20
		rite_creation_piety_cost_mult = -0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
	}
	province_modifier = {
		province_size_baseline_add = special_building_province_size_baseline
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_special_district_modifier = { LEVEL = 1 }
	}

	character_culture_modifier = {
		parameter = roman_law_university_bonuses
		trade_competitiveness_mult = roman_law_university_competitiveness_value
	}

	province_culture_modifier = {
		parameter = roman_law_university_bonuses
		popular_opinion_add = roman_law_university_popular_opinion_value
	}
	market_modifier = {
		trade_good_incense_sell_price_mult = special_building_need_sell_price
		trade_category_books_sell_price_mult = special_building_need_sell_price
	}
	

	trade_good_need = {
		trade_good = trade_good_incense
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	trade_good_need = {
		trade_good_category = trade_category_books
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
	flag = holy_building
	flag = holy_building_buddhism
	flag = special_university
	flag = religious_studies_location
}

##########
# Mozu Tombs
##########

mozu_tombs = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/kofun.dds"
	
	asset = {
		type = pdxmesh
		name = "tgp_kofun_decal_mesh"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
		defender_holding_advantage = normal_building_advantage_tier_1
	}
	
	cost_gold = 2000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		short_reign_duration_mult = -0.1
		monthly_piety = 0.15
	}
	
	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	flag = travel_point_of_interest_wonder
}

##########
# Trosky Castle
##########

trosky_castle_01 = {
	construction_time = very_slow_construction_time

	asset = {
		type = pdxmesh
		name = "building_special_trosky_castle_01_mesh"
	}
	type_icon = "special_buildings/hill_forts.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_battlements
		}
	}
	
	cost_gold = 500
	
	county_modifier = {
		defender_holding_advantage = 5
		popular_opinion_add = building_miniscule_popular_opinion_gain
		hostile_raid_time = 0.5
		travel_danger = -10
	}
	
	province_modifier = {
		garrison_size = 0.25
		fort_level = 1
		stationed_maa_toughness_mult = 0.05
		stationed_maa_damage_mult = 0.05
	}
	
	ai_value = {
		base = 100
		culture_likely_to_fortify_modifier = yes
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	flag = travel_point_of_interest_martial
}

##########
# Tower of Pisa
##########

tower_of_pisa = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/tower_of_pisa.dds"

	asset = {
		type = entity
		name = "gdp_building_special_pisa_straight_entity"
	}

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	character_modifier = {
		monthly_prestige_gain_mult = 0.05
		monthly_dynasty_prestige_mult = 0.05
	}
	county_modifier = {
		popular_opinion_add = building_miniscule_popular_opinion_gain
	}
	province_modifier = {
		monthly_commerce_tax = 2
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_salt_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		save_scope_as = tower_of_pisa_province
		if = {
			limit = {
				scope:character ?= { is_ai = no }
			}
			set_variable = tower_of_pisa_to_inspect
			scope:character = {
				if = {
					limit = {
						cp:councillor_steward ?= { is_available_ai_adult = yes }
					}
					cp:councillor_steward = { save_scope_as = tower_of_pisa_messenger }
				}
				else_if = {
					limit = {
						any_councillor = { is_available_ai_adult = yes }
					}
					random_councillor = {
						limit = { is_available_ai_adult = yes }
						save_scope_as = tower_of_pisa_messenger
					}
				}
				else_if = {
					limit = {
						any_courtier = { is_available_ai_adult = yes }
					}
					random_courtier = {
						limit = { is_available_ai_adult = yes }
						save_scope_as = tower_of_pisa_messenger
					}
				}
				if = {
					limit = { exists = scope:tower_of_pisa_messenger }
					trigger_event = gdp_travel_events.2002
				}
				else = {
					trigger_event = gdp_travel_events.2003
				}
			}
		}
		else = {
			county.holder = {
				trigger_event = {
					id = gdp_travel_events.2001
					days = 1
				}
			}
		}
	}

	ai_value = {
		base = 10
		ai_opinion_baseline_building_modifier = { VALUE = 5 }
		modifier = {
			factor = 0
			free_building_slots > 0
		}
		ai_popular_opinion_need_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_commerce_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_salt
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity
			}
		}
	}

	flag = travel_point_of_interest_wonder
}

tower_of_pisa_leaning = {
	type_icon = "special_buildings/tower_of_pisa_leaning.dds"

	asset = {
		type = entity
		name = "gdp_building_special_pisa_leaning_entity"
	}

	can_construct_potential = {
		has_variable = tower_of_pisa_leaning_unlocked
	}

	character_modifier = {
		monthly_prestige_gain_mult = 0.1
		monthly_dynasty_prestige_mult = 0.05
		cultural_head_fascination_mult = 0.1
	}
	county_modifier = {
		popular_opinion_add = building_minor_popular_opinion_gain
	}
	province_modifier = {
		monthly_commerce_tax = 2
	}
	market_modifier = {
		trade_good_stone_sell_price_mult = special_building_need_sell_price
		trade_good_salt_sell_price_mult = special_building_need_sell_price
	}

	trade_good_need = {
		trade_good = trade_good_stone
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				monthly_commerce_tax = special_building_need_tax
			}
		}
	}

	trade_good_need = {
		trade_good = trade_good_salt
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}

	flag = travel_point_of_interest_wonder
}

# NEOW original definitions, updated for CK3 1.21

# Historic NEOW landmarks, updated to CK3 1.21 prosperity, taxes, graphics and districts.

leuven_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Court of Europa
##########



court_of_europa_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_manorialism }
		building_requirement_tribal = no
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 750

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.25
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige = 0.25
		legitimacy_gain_mult = 0.10
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_civic_tax = 2
		fort_level = 2
		garrison_size = 0.50
		defender_holding_advantage = 3
		travel_danger = -15
	}

	next_building = court_of_europa_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



court_of_europa_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_windmills }
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 2000

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.10
		monthly_dynasty_prestige = 0.50
		monthly_dynasty_prestige_mult = 0.10
		monthly_prestige = 0.50
		legitimacy_gain_mult = 0.15
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.75
	}

	province_modifier = {
		monthly_civic_tax = 3
		fort_level = 5
		garrison_size = 1
		defender_holding_advantage = 5
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Walls of Nijmegen
##########



walls_of_nijmegen_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		scope:holder.culture = { has_innovation = innovation_motte }
		building_requirement_tribal = no
	}

	cost_gold = 500

	county_modifier = {
		hostile_raid_time = 0.35
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 0.75
		fort_level = 2
		defender_holding_advantage = 2
		garrison_size = 0.15
		travel_danger = -15
	}
	flag = travel_point_of_interest_martial
}

##########
# Port of Amsterdam
##########



port_of_amsterdam_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 1
	}

	next_building = port_of_amsterdam_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_amsterdam_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_maritime_tax = 3
	}

	next_building = port_of_amsterdam_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_amsterdam_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 2000

county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.20
		naval_movement_speed_mult = 0.20
	}

	county_modifier = {
		maritime_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Port of Antwerpen
##########



port_of_antwerpen_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 0.75
	}

	next_building = port_of_antwerpen_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_antwerpen_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_maritime_tax = 2.5
	}

	next_building = port_of_antwerpen_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_antwerpen_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.15
		naval_movement_speed_mult = 0.15
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Zone Rouge - Area filled with unexlpoded munition and other dangerous things left from WW1, as of today its still dangerous and decomposing might take a few thousand years ; cannot be properly cleared without modern equipment
##########



zone_rouge_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		
	}

	cost_gold = 50

	county_modifier = {
		prosperity_growth_factor = -0.10
		civic_tax_mult = -0.05
		county_opinion_add = -5
	}

	province_modifier = {
		travel_danger = 30
		defender_holding_advantage = 2
		holding_build_gold_cost = 0.15
		build_gold_cost = 0.15
		build_speed = 0.15
		supply_limit_mult = -0.20
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_zone_rouge
}

##########
# Verdun Memorial
##########



verdun_memorial_01 = {

	effect_desc = {
		triggered_desc = {
			trigger = { has_dlc_feature = legends_of_the_dead }
			desc = building_funeral_effect_desc
		}
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		scope:holder = {
			OR = { religion = religion:europeanist_religion }
		}
	}

	is_enabled = {
		scope:holder = {
			OR = { religion = religion:europeanist_religion }
		}
	}

	cost_gold = 750

	county_holder_character_modifier = {
		monthly_piety = 0.25
		monthly_dynasty_prestige_mult = 0.05
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 5
	}

	county_modifier = {
		civic_tax_mult = 0.15
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.1
		county_opinion_add = 5
	}

	province_modifier = {
		monthly_civic_tax = 1.5
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

########################################
# FRANCE
########################################

##########
# Tour Eiffel  / Eiffel Tower - only the first story remain, due to technology wont be able to be reconstructed, only maintained
##########



tour_eiffel_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_prestige = 1
		monthly_piety_gain_mult = 0.1
		monthly_dynasty_prestige = 0.25
		monthly_dynasty_prestige_mult = 0.05
		legitimacy_gain_mult = 0.05
		diplomacy_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.2
		prosperity_growth = 0.25
		prosperity_growth_factor = 0.2
		county_opinion_add = 10
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Napoleon's line - series of repurposed Napoleonic forts near Paris (mostly constructed post-event)
##########



napoleon_line_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	county_modifier = {
		hostile_raid_time = 0.25
		prosperity_growth_factor = 0.10
		prosperity_growth = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 0.5
		fort_level = 2
		defender_holding_advantage = 2
		garrison_size = 0.25
		travel_danger = -10
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = napoleon_line_02
	flag = travel_point_of_interest_martial
}



napoleon_line_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		highest_held_title_tier >= tier_duchy
	}

	cost_gold = 1500

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		hostile_raid_time = 0.5
		prosperity_growth_factor = 0.20
		prosperity_growth = 0.20
		county_opinion_add = 10
	}

	province_modifier = {
		monthly_civic_tax = 1.5
		fort_level = 5
		defender_holding_advantage = 5
		garrison_size = 0.35
		travel_danger = -20
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Palace of Versailles - mostly broken down and most of the gold was robbed
##########



palace_versailles_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_baliffs }
	}

	effect_desc = cereal_fields_effect_desc

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.05
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige = 0.15
		courtly_tax_contribution_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	next_building = palace_versailles_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



palace_versailles_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_guilds }
	}

	effect_desc = farm_estates_effect_desc

	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.30
		monthly_dynasty_prestige_mult = 0.1
		monthly_prestige = 0.50
		legitimacy_gain_mult = 0.05
		courtly_tax_contribution_mult = 0.10
		diplomacy_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.15
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
		county_opinion_add = 5
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	next_building = palace_versailles_03

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



palace_versailles_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_noblesse_oblige}
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 2000

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.50
		monthly_dynasty_prestige_mult = 0.15
		monthly_prestige = 1
		legitimacy_gain_mult = 0.10
		courtly_tax_contribution_mult = 0.15
		diplomacy_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.25
		prosperity_growth = 0.25
		prosperity_growth_factor = 0.30
		county_opinion_add = 10
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Port of Calais
##########



port_of_calais_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 1
	}

	next_building = port_of_calais_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_calais_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_maritime_tax = 3
	}

	next_building = port_of_calais_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_calais_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 2000

county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.20
		naval_movement_speed_mult = 0.20
	}

	county_modifier = {
		maritime_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Académie de l'Absurde - post-event university established by Isildur
##########



academie_labsurde_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Palace of Fontainebleau
##########



palace_fontainebleau_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_baliffs }
		building_requirement_tribal = no
	}

	effect_desc = cereal_fields_effect_desc

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.10
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige = 0.15
		courtly_tax_contribution_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 0.75
	}

	next_building = palace_fontainebleau_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



palace_fontainebleau_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_guilds }
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 800

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.20
		monthly_dynasty_prestige_mult = 0.1
		monthly_prestige = 0.25
		legitimacy_gain_mult = 0.05
		courtly_tax_contribution_mult = 0.10
		diplomacy_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		county_opinion_add = 5
	}

	province_modifier = {
		monthly_civic_tax = 1.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# University of Montpellier
##########



montpellier_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.10
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Capitole de Toulouse - administrative center of Southern France
##########



capitole_toulouse_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 1000

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_prestige = 0.25
		legitimacy_gain_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.15
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 1
		garrison_size = 0.10
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Château de Bretagne - center of Britanny ; post event
##########



chateau_bretagne_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	effect_desc = farm_estates_effect_desc

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige_gain_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	next_building = chateau_bretagne_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



chateau_bretagne_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_guilds }
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.10
		monthly_dynasty_prestige_mult = 0.15
		monthly_prestige_gain_mult = 0.15
		monthly_prestige = 0.25
		courtly_tax_contribution_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Fort de Bordeaux - post-event, large fort/naval fort
##########



fort_de_bordeaux_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_civic_tax = 2
		fort_level = 2
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -15
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}


##########
# Fortified Port of Monaco
##########



fortified_port_of_monaco_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_monaco_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_monaco_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_monaco_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_monaco_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Port of La Rochelle
##########



port_of_la_rochelle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 0.75
	}

	next_building = port_of_la_rochelle_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_la_rochelle_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_maritime_tax = 2.5
	}

	next_building = port_of_la_rochelle_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_la_rochelle_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.15
		naval_movement_speed_mult = 0.15
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Mont-Saint-Michel
##########



mont_saint_michel_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 750

	county_holder_character_modifier = {
		monthly_piety = 0.20
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 5
	}

	county_modifier = {
		religious_tax_mult = 0.15
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_religious_tax = 1.5
		fort_level = 4
		defender_holding_advantage = 5
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.15
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}


########################################
# IBERIA
########################################

##########
# Fortress Monastery of Andorra
##########



fortress_andorra_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds" 
	
	can_construct_potential = {
		scope:holder = {
			OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
		}
	}
	
	is_enabled = {
		scope:holder = {
			OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		zealot_opinion = 5
	}
	
	county_modifier = {
		hostile_raid_time = 0.5
	}
	
	province_modifier = {
		fort_level = 4
		defender_holding_advantage = 4
		monthly_civic_tax = 1
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Statue of Clorinda - the spanish-morrocan tomboy hero of fame and fortune, saving the last bonaparte around the border
##########



statue_clorinda_01 = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_mediterranean_monument_01_a_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	is_enabled = {
		always = yes
	}

	construction_time = very_slow_construction_time

	cost = {
		gold = 1000
	}

	character_modifier = {
		glory_hound_opinion = 5
		glory_hound_tax_contribution_mult = 0.05
		monthly_dynasty_prestige_mult = 0.1
		monthly_prestige_gain_mult = 0.2
	}

	county_modifier = {
		county_opinion_add = 5
	}

	province_modifier = {
		stationed_maa_damage_add = 20
		stationed_maa_damage_mult = 0.15
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Sagrada Familia
##########



sagrada_familia_01 = {
		
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.35
		monthly_piety_gain_mult = 0.10
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 5
		monthly_county_control_growth_factor = 0.10
	}
	
	county_modifier = {
		religious_tax_mult = 0.20
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.20
	}
	
	province_modifier = {
		monthly_religious_tax = 1.5
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Cathedral de Santiago de Compostela
##########



cathedral_seville_01 = {
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.50
		monthly_piety_gain_mult = 0.15
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 10
	}
	
	county_modifier = {
		religious_tax_mult = 0.25
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
	}
	
	province_modifier = {
		monthly_religious_tax = 3
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Tomb of Thez the Mighty (Faro)
##########



tomb_thez_mighty_01 = {

	asset = {
		type = pdxmesh
		name = "fp3_building_special_tomb_of_cyrus_01_a_mesh"
	}

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds" 
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 1000
	
	character_modifier = {
		close_relative_opinion = 10
		negate_health_penalty_add = 0.1
		monthly_dynasty_prestige_mult = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 0.75
	}
	
	county_modifier = {
		monthly_county_control_growth_add = 0.5
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Belém Tower (Lisbon, NOT Brazil)
##########



belem_tower_01 = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_western_watchtower_01_a_mesh"
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 500

	character_modifier = {
		monthly_prestige = 0.15
	}

	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.25
	}

	province_modifier = {
		defender_holding_advantage = 2
		fort_level = 2
		monthly_maritime_tax = 1
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
	}

	max_garrison = 350

	next_building = belem_tower_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}



belem_tower_02 = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_western_watchtower_01_a_mesh"
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 500

	character_modifier = {
		monthly_prestige = 0.50
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.25
		maritime_tax_mult = 0.10
		hostile_raid_time = 0.50
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_maritime_tax = 2.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		travel_danger = -10
	}

	max_garrison = 750
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Toledo Steelworks
##########



toledo_steelworks_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/toledo.dds"

	effect_desc = windfurnaces_effects_desc

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 750

	character_modifier = {
		knight_effectiveness_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		mining_tax_mult = 0.10
	}
	
	province_modifier = {
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		stationed_siege_weapon_siege_value_mult = 0.10
		monthly_mining_tax = 1
	}
	
	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		directive_to_build_military_modifier = yes
	}

	next_building = toledo_steelworks_02
	flag = travel_point_of_interest_martial
	flag = travel_point_of_interest_economic
}



toledo_steelworks_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/toledo.dds"

	effect_desc = windfurnaces_effects_desc

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1500

	character_modifier = {
		knight_effectiveness_mult = 0.10
		stewardship_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.25
		mining_tax_mult = 0.25
	}
	
	province_modifier = {
		stationed_maa_damage_mult = 0.40
		stationed_maa_toughness_mult = 0.40
		stationed_siege_weapon_siege_value_mult = 0.25
		monthly_mining_tax = 2.5
	}
	
	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		directive_to_build_military_modifier = yes
	}

	next_building = toledo_steelworks_03
	flag = travel_point_of_interest_martial
	flag = travel_point_of_interest_economic
}



toledo_steelworks_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/toledo.dds"

	effect_desc = windfurnaces_effects_desc

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_cranes }
		building_requirement_castle_city_church = { LEVEL = 04 }
	}
	
	cost_gold = 2500

	character_modifier = {
		knight_effectiveness_mult = 0.15
		stewardship_per_prestige_level = 2
		martial_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.35
		mining_tax_mult = 0.35
	}
	
	province_modifier = {
		stationed_maa_damage_mult = 0.80
		stationed_maa_toughness_mult = 0.80
		stationed_siege_weapon_siege_value_mult = 0.50
		monthly_mining_tax = 5
	}
	
	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		directive_to_build_military_modifier = yes
	}
	flag = travel_point_of_interest_martial
	flag = travel_point_of_interest_economic
}


##########
# The Great Cathedral-Mosque of Cordoba
##########



cathedral_mosque_cordoba_01 = {

	asset = {
		type = pdxmesh
		name = "monument_mezquita_de_cordoba_mesh"
	}
			
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.35
		monthly_piety_gain_mult = 0.10
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 5
		monthly_county_control_growth_factor = 0.10
	}
	
	county_modifier = {
		religious_tax_mult = 0.20
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.20
	}
	
	province_modifier = {
		monthly_religious_tax = 2
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Almeria Castle
##########



almeria_castle_01 = {
		
	asset = {
		type = pdxmesh
		name = "fp2_building_special_alcazar_de_segovia_01_a_mesh"
	}

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds" 
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		martial_per_prestige_level = 1
	}
	
	county_modifier = {
		civic_tax_mult = 0.15
		monthly_county_control_growth_add = 0.35
	}

	province_modifier = {
		defender_holding_advantage = 4
		fort_level = 4
		stationed_maa_damage_mult = 0.1
		stationed_maa_toughness_mult = 0.1
		stationed_siege_weapon_siege_value_mult = 0.1
		travel_danger = -20
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Alhambra
##########



fortress_of_gibraltar_01 = {

	asset = {
		type = pdxmesh
		name = "fp2_building_special_rock_of_gibraltar_01_a_mesh" 
	}
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 500

	character_modifier = {
		martial_per_prestige_level = 1
		monthly_prestige = 0.25
	}

	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		defender_holding_advantage = 4
		fort_level = 3
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Aljaféria Palace
##########



madrid_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# University of Coimbra
##########



university_coimbra_01 = {
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_piety_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.10
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Port of Valencia
##########



port_of_valencia_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 0.75
	}

	next_building = port_of_valencia_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_valencia_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_maritime_tax = 2.5
	}

	next_building = port_of_valencia_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_valencia_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.15
		naval_movement_speed_mult = 0.15
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Fortified port of Porto
##########



fortified_port_of_porto_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_porto_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_porto_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_porto_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_porto_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Fortress of Pamplona
##########



fortress_pamplona_01 = {
		
	asset = {
		type = pdxmesh
		name = "fp2_building_special_alhambra_01_mesh" 
	}


	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 2000

	character_modifier = {
		monthly_prestige_gain_mult = 0.15
		monthly_prestige = 0.25
	}

	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
		monthly_county_control_growth_add = 0.5
		civic_tax_mult = 0.15
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		travel_danger = -15
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Fortified port of Malaga
##########



fortified_port_of_malaga_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_malaga_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_malaga_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_malaga_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_malaga_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

########################################
# ALPINREICH
########################################

##########
# Statue of Isildur Bonaparte - in the og mod
##########



statue_isildur_01 = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_mediterranean_monument_01_a_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	is_enabled = {
		always = yes
	}

	construction_time = very_slow_construction_time

	cost = {
		gold = 1000
	}

	character_modifier = {
		glory_hound_opinion = 5
		glory_hound_tax_contribution_mult = 0.05
		monthly_dynasty_prestige_mult = 0.1
		monthly_prestige_gain_mult = 0.2
	}

	county_modifier = {
		county_opinion_add = 5
	}

	province_modifier = {
		stationed_maa_damage_add = 20
		stationed_maa_damage_mult = 0.15
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Fourvière - historic core of the city of Lyon
##########



fourviere_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_piety = 0.25
		monthly_prestige = 0.25
	}

	county_modifier = {
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
		civic_tax_mult = 0.25
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
}

##########
# University of Zurich
##########



university_zurich_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Capitale de Bern - post-event, big diplomatic and economic hub
##########



capitale_bern_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	effect_desc = feast_cost_discount_max_desc

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_dynasty_prestige = 0.25
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige = 0.25
		monthly_prestige_gain_mult = 0.15
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
	flag = travel_point_of_interest_economic
}

##########
# Palais des Nations - UN place, Geneva
##########



palais_des_nations_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_prestige = 0.15
		monthly_piety = 0.25
		monthly_piety_gain_mult = 0.20
		holy_order_hire_cost_mult = -0.10
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
	flag = travel_point_of_interest_economic
}

##########
# Mountain fortress of Lugano - post-event fortifications
##########



mountain_fortress_lugano_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	
	cost_gold = 500

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
		monthly_county_control_growth_add = 0.15
		civic_tax_mult = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 5
		fort_level = 2
		monthly_civic_tax = 0.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		travel_danger = -15
	}

	max_garrison = 350

	next_building = mountain_fortress_lugano_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}



mountain_fortress_lugano_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		monthly_county_control_growth_add = 0.35
		civic_tax_mult = 0.10
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		travel_danger = -25
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Mountain fortress of Bolzano
##########



mountain_fortress_bolzano_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	
	cost_gold = 500

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
		monthly_county_control_growth_add = 0.15
		civic_tax_mult = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 5
		fort_level = 2
		monthly_civic_tax = 0.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		travel_danger = -15
	}

	max_garrison = 350

	next_building = mountain_fortress_bolzano_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}



mountain_fortress_bolzano_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		monthly_county_control_growth_add = 0.35
		civic_tax_mult = 0.10
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		travel_danger = -25
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Mountain Fortress of Innsbruck
##########



mountain_fortress_innsbruck_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	
	cost_gold = 500

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
		monthly_county_control_growth_add = 0.15
		civic_tax_mult = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 5
		fort_level = 2
		monthly_civic_tax = 0.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		travel_danger = -15
	}

	max_garrison = 350

	next_building = mountain_fortress_innsbruck_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}



mountain_fortress_innsbruck_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		monthly_county_control_growth_add = 0.35
		civic_tax_mult = 0.10
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		travel_danger = -25
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

########################################
# ITALIA
########################################

##########
# Plaza de Toros (Palma - Mallorca) - bull fighting arena
##########



plaza_de_toros_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 750

	county_modifier = {
		hostile_raid_time = 0.15
		county_opinion_add = 10
		civic_tax_mult = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = plaza_de_toros_02
	flag = travel_point_of_interest_economic
}



plaza_de_toros_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_prestige_gain_mult = 0.10
		monthly_prestige = 0.20
		stewardship_per_prestige_level = 1
	}

	county_modifier = {
		hostile_raid_time = 0.25
		county_opinion_add = 20
		civic_tax_mult = 0.15
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1.5
		fort_level = 2
		defender_holding_advantage = 2
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Leaning Tower of Pisa
##########



leaning_tower_of_pisa_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_prestige = 0.50
		monthly_prestige_gain_mult = 0.25
		diplomacy_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Galleria Vittorio Emanuele II - MAJOR trade hub
##########



galleria_vittorio_emanuele_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_prestige = 0.20
		monthly_prestige_gain_mult = 0.10
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	next_building = galleria_vittorio_emanuele_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}



galleria_vittorio_emanuele_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_prestige = 0.50
		monthly_prestige_gain_mult = 0.15
		stewardship_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	next_building = galleria_vittorio_emanuele_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}



galleria_vittorio_emanuele_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_cranes }
		building_requirement_castle_city_church = { LEVEL = 04 }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_prestige = 0.75
		monthly_prestige_gain_mult = 0.25
		prestige_level_impact_mult = 0.10
		stewardship_per_prestige_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}

##########
# Royal Palace of Turin
##########



royal_palace_torino_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 1000

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_dynasty_prestige = 0.15
		monthly_dynasty_prestige_mult = 0.10
		monthly_prestige = 0.15
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Monte Cassino Monastery
##########



monte_cassino_monastery_01 = {
	asset = {
		type = pdxmesh
		name = ep3_saint_catherine_monastery_mesh
	}
	construction_time = slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	cost_gold = 1000

	can_construct = {
		
	}
	
	is_enabled = {
		OR = { scope:holder.faith.religion = religion:eastern_orthodox_religion scope:holder.faith.religion = religion:catholic_religion scope:holder.faith.religion = religion:protestant_religion }
	}

	character_modifier = {
		monthly_piety = 0.5
		monthly_piety_gain_mult = 0.15
		religious_vassal_opinion = 5
		monthly_county_control_growth_factor = 0.2
		monthly_lifestyle_xp_gain_mult = 0.10
		cultural_head_fascination_mult = 0.05
		zealot_opinion = 5
		clergy_opinion = 10
	}
	
	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		religious_tax_mult = 0.05
	}

	province_modifier = {
		monthly_religious_tax = 0.5
		fort_level = 2
		defender_holding_advantage = 5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Doge's Palace
##########



university_bologna_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		stewardship_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.10
		cultural_head_fascination_mult = 0.05
	}
	
	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# University of Seina
##########



siena_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		building_requirement_tribal = no
		building_university_requirement = yes
	}
	
	can_construct = {
	}

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}
	
	cost_gold = 1000

	character_modifier = {
		learning_per_prestige_level = 1
		intrigue_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.20
	}
	
	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth_factor = 0.2
		prosperity_growth = 0.2
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# St. Peters Basilica - Vaticano, center of Roman Catholicism
##########



apollinare_nuovo_01 = {
	asset = {
		type = pdxmesh
		name = ep3_basilica_sant_apollinare_nuovo_mesh
	}
	construction_time = slow_construction_time

	type_icon = "special_buildings/apollinare_nuovo.dds"

	cost_gold = 1000

	can_construct = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}

	character_modifier = {
		monthly_piety = 0.2
		religious_vassal_opinion = 5
		monthly_county_control_growth_factor = 0.1
		zealot_opinion = 5
		clergy_opinion = 5
	}
	
	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		county_opinion_add = 10
		religious_tax_mult = 0.3
	}

	province_modifier = {
		monthly_religious_tax = 1.5
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Cattolica di Stilo 
##########



cattolica_stilo_01 = {
	asset = {
		type = pdxmesh
		name = ep3_cattolica_di_stilo_mesh
	}
	construction_time = slow_construction_time

	type_icon = "special_buildings/cattolica_stilo.dds"

	cost_gold = 750

	can_construct = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}

	character_modifier = {
		monthly_piety = 0.5
		religious_vassal_opinion = 5
		zealot_opinion = 5
		clergy_opinion = 5
		holy_order_hire_cost_mult = -0.15
	}
	
	county_modifier = {
		prosperity_growth = 0.1
		prosperity_growth_factor = 0.1
		religious_tax_mult = 0.1
		county_opinion_add = 10
	}

	province_modifier = {
		monthly_religious_tax = 1
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Palermo Cathedral
##########



palermo_cathedral_01 = {
		
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.25
		monthly_piety_gain_mult = 0.15
		holy_order_hire_cost_mult = -0.15
		clergy_opinion = 10
	}
	
	county_modifier = {
		religious_tax_mult = 0.1
		prosperity_growth_factor = 0.2
		prosperity_growth = 0.2
	}
	
	province_modifier = {
		monthly_religious_tax = 2
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Great Island Fortress of Malta
##########



island_fortress_malta_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	county_modifier = {
		hostile_raid_time = 1
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 1
		fort_level = 4
		defender_holding_advantage = 6
		garrison_size = 0.10
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
	}

	max_garrison = 500

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_martial
}

##########
# Port of Bari
##########



port_of_bari_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 1
	}

	next_building = port_of_bari_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_bari_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_maritime_tax = 3
	}

	next_building = port_of_bari_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_bari_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 2000

county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.20 
		naval_movement_speed_mult = 0.20
	}

	county_modifier = {
		maritime_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}


##########
# Fortified Port of Ajaccio
##########



fortified_port_of_ajaccio_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_ajaccio_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_ajaccio_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_ajaccio_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_ajaccio_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Fortified port of Genoa
##########



fortified_port_of_genoa_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_genoa_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_genoa_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_genoa_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_genoa_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Castel Nuovo (Napoli)
##########



castel_nuovo_01 = {
	
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds" 
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings 
		}
	}
	
	cost_gold = 500
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.10
	}
	
	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 0.5
		defender_holding_advantage = 3
		fort_level = 2
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		stationed_siege_weapon_siege_value_mult = 0.05
		travel_danger = -15
	}

	max_garrison = 150

	next_building = castel_nuovo_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}



castel_nuovo_02 = {
	
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder.culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_prestige_gain_mult = 0.25
		martial_per_prestige_level = 1
	}
	
	county_modifier = {
		civic_tax_mult = 0.25
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
		monthly_county_control_growth_add = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 1.5
		defender_holding_advantage = 5
		fort_level = 4
		stationed_maa_damage_mult = 0.2
		stationed_maa_toughness_mult = 0.2
		stationed_siege_weapon_siege_value_mult = 0.15
		travel_danger = -25
	}

	max_garrison = 750
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Mountain fortress of Imperia - controlling the path along the coast from It. to Fr.
##########



mountain_fortress_imperia_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}
	
	cost_gold = 500

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
		monthly_county_control_growth_add = 0.15
		civic_tax_mult = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 5
		fort_level = 2
		monthly_civic_tax = 0.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		travel_danger = -15
	}

	max_garrison = 350

	next_building = mountain_fortress_imperia_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}



mountain_fortress_imperia_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	character_modifier = {
		martial_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		monthly_county_control_growth_add = 0.35
		civic_tax_mult = 0.10
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		travel_danger = -25
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Cathedral of Saint Marry of the Flower
##########



duomo_florence_n3ow_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_duomo_florence_04_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = holy_site_christian_or_holy_site_trigger
			OR = {
				scope:holder = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } }
				custom_description = { text = holy_site_building_trigger barony = { is_holy_site_of = scope:holder.faith } }
			}
		}
	}
	can_construct = {
		scope:holder.culture = { has_innovation = innovation_cranes }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		stewardship = 1
		learning_per_prestige_level = 1
		monthly_prestige_gain_mult = 0.2
		monthly_piety_gain_mult = 0.2
	}
	county_modifier = {
		prosperity_growth_factor = 0.20
		prosperity_growth = 0.20
		religious_tax_mult = 0.20
	}
	province_modifier = {
		monthly_religious_tax = 2
		build_speed = -0.15
	}
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Iron Mines of Brescia
##########



brescia_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_modifier = {
		mining_tax_mult = 0.05
		levy_size = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 2
		stationed_siege_weapon_siege_value_mult = 0.10
		stationed_maa_toughness_mult = 0.05
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = brescia_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



brescia_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_modifier = {
		mining_tax_mult = 0.10
		levy_size = 0.20
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 3.5
		stationed_siege_weapon_siege_value_mult = 0.15
		stationed_maa_toughness_mult = 0.10
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = brescia_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



brescia_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_modifier = {
		mining_tax_mult = 0.15
		levy_size = 0.30
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.20
		stationed_maa_toughness_mult = 0.20
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = brescia_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



brescia_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_modifier = {
		mining_tax_mult = 0.20
		levy_size = 0.40
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.25
		stationed_maa_toughness_mult = 0.25
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}

##########
# Salt Mines of Cagliari
##########



cagliari_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_modifier = {
		mining_tax_mult = 0.05
		levy_size = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 2
		stationed_siege_weapon_siege_value_mult = 0.10
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = cagliari_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_salt
}



cagliari_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_modifier = {
		mining_tax_mult = 0.10
		levy_size = 0.20
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 3.5
		stationed_siege_weapon_siege_value_mult = 0.15
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = cagliari_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_salt
}



cagliari_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_modifier = {
		mining_tax_mult = 0.15
		levy_size = 0.30
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.20
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = cagliari_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_salt
}



cagliari_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_modifier = {
		mining_tax_mult = 0.20
		levy_size = 0.40
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.25
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_salt
}


##########
# Igrésias Mining Settlement
##########



iglesias_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_modifier = {
		mining_tax_mult = 0.04
		prosperity_growth_factor = 0.025
	}

	province_modifier = {
		monthly_mining_tax = 1
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = iglesias_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



iglesias_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_modifier = {
		mining_tax_mult = 0.08
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 1.75
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = iglesias_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



iglesias_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_modifier = {
		mining_tax_mult = 0.12
		levy_size = 0.05
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 2.5
		stationed_siege_weapon_siege_value_mult = 0.05
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = iglesias_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



iglesias_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_modifier = {
		mining_tax_mult = 0.15
		levy_size = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.15
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}

##########
# Mercury Mines of Monte Amiata (Montepulciano)
##########



monte_amiata_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_holder_character_modifier = {
		owned_hostile_scheme_success_chance_add = 10
		owned_scheme_secrecy_add = 5
	}

	county_modifier = {
		mining_tax_mult = 0.05
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 1.5
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = monte_amiata_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



monte_amiata_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_holder_character_modifier = {
		owned_hostile_scheme_success_chance_add = 15
		owned_scheme_secrecy_add = 7
	}

	county_modifier = {
		mining_tax_mult = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 2.5
		stationed_siege_weapon_siege_value_mult = 0.05
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = monte_amiata_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



monte_amiata_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_holder_character_modifier = {
		owned_hostile_scheme_success_chance_add = 20
		owned_scheme_secrecy_add = 10
	}

	county_modifier = {
		mining_tax_mult = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 4
		stationed_siege_weapon_siege_value_mult = 0.10
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = monte_amiata_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



monte_amiata_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_holder_character_modifier = {
		owned_hostile_scheme_success_chance_add = 30
		owned_scheme_secrecy_add = 15
	}

	county_modifier = {
		mining_tax_mult = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.15
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}

########################################
# BRYTANNYA
########################################

##########
# Croke Park Stadium - one of the largest stadiums in Europe (Dublin)
##########



croke_park_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 750

	county_modifier = {
		hostile_raid_time = 0.25
		county_opinion_add = 10
		civic_tax_mult = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 1.5
		fort_level = 2
		defender_holding_advantage = 3
		garrison_size = 0.10
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = croke_park_02
	flag = travel_point_of_interest_martial
}



croke_park_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

	county_holder_character_modifier = {
		monthly_prestige_gain_mult = 0.10
		monthly_prestige = 0.25
		martial_per_prestige_level = 1
	}

	county_modifier = {
		hostile_raid_time = 0.50
		county_opinion_add = 20
		civic_tax_mult = 0.20
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 3
		fort_level = 5
		defender_holding_advantage = 6
		garrison_size = 0.25
		travel_danger = -10
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Westminster Pyramids 
##########



westminster_pyramids_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_pyramids_giza_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_piety = 0.25
		learning_per_piety_level = 1
	}

	county_modifier = {
		county_opinion_add = 5
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 1
		build_speed = -0.05
	}

	next_building = westminster_pyramids_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
}



westminster_pyramids_02 = {

	asset = {
		type = pdxmesh
		name = "building_special_pyramids_giza_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_piety = 0.50
		monthly_piety_gain_mult = 0.10
		monthly_influence = 0.25
		learning_per_piety_level = 1
		stewardship_per_influence_level = 1
	}

	county_modifier = {
		county_opinion_add = 10
		civic_tax_mult = 0.15
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 3
		build_speed = -0.10
	}

	next_building = westminster_pyramids_03

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
}



westminster_pyramids_03 = {

	asset = {
		type = pdxmesh
		name = "building_special_pyramids_giza_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 2000

	county_holder_character_modifier = {
		monthly_piety = 1
		monthly_piety_gain_mult = 0.20
		monthly_influence = 0.25
		monthly_prestige = 0.25
		learning_per_piety_level = 1
		stewardship_per_influence_level = 1
		martial_per_prestige_level = 1
	}

	county_modifier = {
		county_opinion_add = 10
		civic_tax_mult = 0.25
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 3
		build_speed = -0.20
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
}

##########
# The Tower of London
##########



the_tower_of_london_02 = {

	asset = {
		type = pdxmesh
		name = "building_special_tower_of_london_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/tower_of_london.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
			has_innovation = innovation_castle_baileys
		}
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1500

	county_holder_character_modifier = {
		dread_gain_mult = 0.3
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 6
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.25
		stationed_siege_weapon_siege_value_mult = 0.25
		travel_danger = -20
		monthly_civic_tax = 3
	}

	county_modifier = {
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
		civic_tax_mult = 0.1
	}

	max_garrison = 1000
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = {
			factor = 5
			scope:holder = {
				culture = {
					has_cultural_parameter = ai_more_likely_to_castle
				}
			}
		}
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Windsor Castle 
##########



windsor_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_influence_level = 1
		monthly_influence = 0.50
		monthly_influence_mult = 0.10
	}
	
	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 3
		fort_level = 3
		monthly_civic_tax = 0.5
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Harlech Castle 
##########



harlech_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
	}
	
	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 4
		fort_level = 2
		monthly_civic_tax = 0.25
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = harlech_castle_02
	flag = travel_point_of_interest_martial
}



harlech_castle_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
		monthly_prestige = 0.25
		monthly_prestige_gain_mult = 0.05
		prestige_level_impact_mult = 0.05
	}
	
	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		defender_holding_advantage = 8
		fort_level = 5
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		stationed_siege_weapon_siege_value_mult = 0.15
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Edinburgh Castle 
##########



edinburgh_castle_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder.culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_prestige = 0.15
		monthly_prestige_gain_mult = 0.10
	}
	
	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
		monthly_county_control_growth_add = 0.20
	}

	province_modifier = {
		defender_holding_advantage = 8
		fort_level = 6
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		stationed_siege_weapon_siege_value_mult = 0.20
		travel_danger = -15
	}

	max_garrison = 750
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Canterbury Cathedral
##########



portsmouth_royal_dockyard_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_civic_tax = 1
		fort_level = 2
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.05
		travel_danger = -15
	}

	next_building = portsmouth_royal_dockyard_02

	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		culture_likely_to_fortify_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
	flag = travel_point_of_interest_martial
}



portsmouth_royal_dockyard_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
		embarkation_cost_mult = -0.25
		naval_movement_speed_mult = 0.25
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_civic_tax = 3
		fort_level = 4
		defender_holding_advantage = 6
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.25
		garrison_size = 0.15
		travel_danger = -25
	}

	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
	flag = travel_point_of_interest_martial
}

##########
# Devonport
##########



devonport_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 1.5
		fort_level = 2
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.05
		travel_danger = -10
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
	flag = travel_point_of_interest_martial_minor
}

##########
# Stonehenge
##########



cardiff_castle_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds" 
	
	can_construct = {
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige = 0.10
		martial = 2
	}
	
	county_modifier = {
		civic_tax_mult = 0.10
	}

	province_modifier = {
		defender_holding_advantage = 4
		fort_level = 2
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		stationed_siege_weapon_siege_value_mult = 0.10
		travel_danger = -10
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Krowfymply Castle 
##########



krowfymply_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_influence_level = 1
		monthly_influence = 0.25
		monthly_influence_mult = 0.10
	}
	
	county_modifier = {
		civic_tax_mult = 0.05
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		defender_holding_advantage = 1
		fort_level = 2
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = krowfymply_castle_02
	flag = travel_point_of_interest_martial
}



krowfymply_castle_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_castle_baileys }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_influence_level = 1
		monthly_influence = 0.75
		monthly_influence_mult = 0.35
	}
	
	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		defender_holding_advantage = 4
		fort_level = 4
		monthly_civic_tax = 2.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		stationed_siege_weapon_siege_value_mult = 0.20
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Fortified Port of Bristol 
##########



fortified_port_of_bristol_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_bristol_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_bristol_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_bristol_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_bristol_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Port of Belfast
##########



port_of_belfast_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 0.75
	}

	next_building = port_of_belfast_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_belfast_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_maritime_tax = 2.5
	}

	next_building = port_of_belfast_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_belfast_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.15
		naval_movement_speed_mult = 0.15
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Glasgow Cathedral 
##########



glasgow_cathedral_01 = {
		
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.20
		monthly_piety_gain_mult = 0.20
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 10
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
		county_opinion_add = 5
	}
	
	province_modifier = {
		monthly_religious_tax = 2
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Oxford University
##########



oxford_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_piety_level = 1
		intrigue_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Cambridge University
##########



cambridge_university_01 = {
	
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		monthly_prestige = 0.20
		prestige_level_impact_mult = 0.10
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Port of Liverpool
##########



port_of_liverpool_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 500

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 1
	}

	next_building = port_of_liverpool_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_liverpool_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 1000

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_maritime_tax = 3
	}

	next_building = port_of_liverpool_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_liverpool_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 2000

county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.20
		naval_movement_speed_mult = 0.20
	}

	county_modifier = {
		maritime_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# British coal mines
##########

#coal_mines_01 = {
#	effect_desc = mines_effect_desc
#
#	asset = {
#		type = pdxmesh
#		name = "building_special_mines_mesh"
#	}
#
#	type_icon = "icon_structure_mines.dds"
#
#	can_construct_potential = {
#		building_requirement_tribal = no
#	}
#
#	can_construct = {
#		building_requirement_castle_city_church = { LEVEL = 01 }
#		culture = {
#			has_innovation = innovation_crop_rotation
#		}
#	}
#
#	cost_gold = 400
#
#	county_modifier = {
#		maritime_tax_mult = 0.025
#		prosperity_growth_factor = 0.025
#	}
#
#	province_modifier = {
#		monthly_maritime_tax = 0.25
#		stationed_airship_damage_mult = 0.10
#		stationed_airship_toughness_mult = 0.10
#		stationed_siege_weapon_siege_value_mult = 0.15
#		stationed_gunpowder_damage_mult = 0.15
#		stationed_gunpowder_toughness_mult = 0.15
#	}
#
#	province_culture_modifier = {
#		parameter = cupellation_mine_building_bonuses
#		maritime_tax_mult = innovation_cupellation_mine_tax_bonus_value
#	}
#
#	next_building = coal_mines_02
#
#	ai_value = {
#		base = 100
#	}
#
#	type = special
#	
#	flag = travel_point_of_interest_economic
#	flag = special_mine
#}
#
#coal_mines_02 = {
#	effect_desc = mines_effect_desc
#
#	asset = {
#		type = pdxmesh
#		name = "building_special_mines_mesh"
#	}
#
#	type_icon = "icon_structure_mines.dds"
#
#	can_construct_potential = {
#		building_requirement_tribal = no
#	}
#
#	can_construct = {
#		building_requirement_castle_city_church = { LEVEL = 02 }
#		culture = {
#			has_innovation = innovation_manorialism
#		}
#	}
#
#	cost_gold = 500
#
#	county_modifier = {
#		maritime_tax_mult = 0.05
#		prosperity_growth_factor = 0.05
#	}
#
#	province_modifier = {
#		monthly_maritime_tax = 0.75
#		stationed_airship_damage_mult = 0.15
#		stationed_airship_toughness_mult = 0.15
#		stationed_siege_weapon_siege_value_mult = 0.25
#		stationed_gunpowder_damage_mult = 0.25
#		stationed_gunpowder_toughness_mult = 0.25
#	}
#
#	province_culture_modifier = {
#		parameter = cupellation_mine_building_bonuses
#		maritime_tax_mult = innovation_cupellation_mine_tax_bonus_value
#	}
#
#	next_building = coal_mines_03
#
#	ai_value = {
#		base = 100
#	}
#
#	type = special
#	
#	flag = travel_point_of_interest_economic
#	flag = special_mine
#}
#
#coal_mines_03 = {
#	effect_desc = mines_effect_desc
#
#	asset = {
#		type = pdxmesh
#		name = "building_special_mines_mesh"
#	}
#
#	type_icon = "icon_structure_mines.dds"
#
#	can_construct_potential = {
#		building_requirement_tribal = no
#	}
#
#	can_construct = {
#		building_requirement_castle_city_church = { LEVEL = 03 }
#		culture = {
#			has_innovation = innovation_windmills
#		}
#	}
#
#	cost_gold = 600
#
#	county_modifier = {
#		maritime_tax_mult = 0.075
#		prosperity_growth_factor = 0.075
#	}
#
#	province_modifier = {
#		monthly_maritime_tax = 1.5
#		stationed_airship_damage_mult = 0.25
#		stationed_airship_toughness_mult = 0.25
#		stationed_siege_weapon_siege_value_mult = 0.40
#		stationed_gunpowder_damage_mult = 0.40
#		stationed_gunpowder_toughness_mult = 0.40
#	}
#
#	province_culture_modifier = {
#		parameter = cupellation_mine_building_bonuses
#		maritime_tax_mult = innovation_cupellation_mine_tax_bonus_value
#	}
#
#	next_building = coal_mines_04
#
#	ai_value = {
#		base = 100
#	}
#
#	type = special
#	
#	flag = travel_point_of_interest_economic
#	flag = special_mine
#}
#
#coal_mines_04 = {
#	effect_desc = mines_effect_desc
#
#	asset = {
#		type = pdxmesh
#		name = "building_special_mines_mesh"
#	}
#
#	type_icon = "icon_structure_mines.dds"
#
#	can_construct_potential = {
#		building_requirement_tribal = no
#	}
#
#	can_construct = {
#		building_requirement_castle_city_church = { LEVEL = 04 }
#		culture = {
#			has_innovation = innovation_cranes
#		}
#	}
#
#	cost_gold = 700
#	county_modifier = {
#		maritime_tax_mult = 0.10
#		prosperity_growth_factor = 0.10
#	}
#
#	province_modifier = {
#		monthly_maritime_tax = 2.5
#		stationed_airship_damage_mult = 0.50
#		stationed_airship_toughness_mult = 0.50
#		stationed_siege_weapon_siege_value_mult = 0.75
#		stationed_gunpowder_damage_mult = 0.75
#		stationed_gunpowder_toughness_mult = 0.75
#	}
#
#	province_culture_modifier = {
#		parameter = cupellation_mine_building_bonuses
#		maritime_tax_mult = innovation_cupellation_mine_tax_bonus_value
#	}
#
#	ai_value = {
#		base = 100
#	}
#
#	type = special
#	
#	flag = travel_point_of_interest_economic
#	flag = special_mine
#}

##########
# Giant's Causeway 
##########



giants_causeway_01 = {

	asset = {
		type = pdxmesh
		name = "fp2_building_special_rock_of_gibraltar_01_a_mesh" 
	}

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds" 
	
	can_construct_potential = {
	}
	
	cost_gold = 300
	
	character_modifier = {
		stewardship = 1
		learning = 1
		diplomatic_range_mult = 0.2
		monthly_prestige = 0.15
	}

	county_modifier = {
		prosperity_growth_factor = 0.1	
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_natural_feature
	flag = is_mountain
}

##########
# Loch Ness 
##########



loch_ness_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds" 
	
	can_construct_potential = {
	}
	
	cost_gold = 300
	
	character_modifier = {
		intrigue = 3
		stress_gain_mult = 0.15
		stress_loss_mult = 0.05
	}

	county_modifier = {
		county_opinion_add = -5
		prosperity_growth = -0.05
		civic_tax_mult = -0.05
	}

	province_modifier = {
	    travel_danger = 15
		build_gold_cost = 0.05
		build_speed = 0.05
    }
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = loch_ness_02
	flag = travel_point_of_interest_natural_feature # lake
}



loch_ness_02 = { #Make the lake safer

	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds" 
	
	can_construct_potential = {
		#building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = household_soldiers }
	}
	
	cost_gold = 800
	
	character_modifier = {
		intrigue = 3
		stress_gain_mult = 0.05
		stress_loss_mult = 0.20
	}

	county_modifier = {
		county_opinion_add = 10
		civic_tax_mult = -0.10
		levy_size = -0.05
	}

	province_modifier = {
		build_speed = -0.10
    }
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_natural_feature # lake
}

##########
# Bone Temple of Melar
##########



bone_temple_melar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/cologne_cathedral.dds"
	
	can_construct_potential = {
		custom_description = {
		text = holy_site_building_trigger
		barony = {
			is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_city_planning
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_piety_gain_mult = 0.1
		monthly_dynasty_prestige_mult = 0.05
		knight_effectiveness_mult = 0.2
		knight_limit = 1
	}
	province_modifier = {
		monthly_religious_tax = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
		levy_size = 0.1
		county_opinion_add = 10
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
}

##########
# Offa's Dyke
##########



alnwick_castle_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 500

	character_modifier = {
		knight_effectiveness_mult = 0.10
		stress_gain_mult = 0.10
		intrigue = 1
	}

	province_modifier = {
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		fort_level = 3
		defender_holding_advantage = 3
		stationed_siege_weapon_siege_value_mult = 0.10
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.10
	}

	max_garrison = 500

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Birmingham Grand Market
##########



birmingham_grand_market_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}

	cost_gold = 500

	county_holder_character_modifier = {
		monthly_influence = 0.20
		monthly_influence_mult = 0.05
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	next_building = birmingham_grand_market_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}



birmingham_grand_market_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 750

	county_holder_character_modifier = {
		monthly_influence = 0.35
		monthly_influence_mult = 0.10
		stewardship_per_influence_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	next_building = birmingham_grand_market_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}



birmingham_grand_market_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_cranes }
		building_requirement_castle_city_church = { LEVEL = 04 }
	}

	cost_gold = 2000

	county_holder_character_modifier = {
		monthly_influence = 0.50
		monthly_influence_gain_mult = 0.20
		stewardship_per_influence_level = 1
	}

	county_modifier = {
		civic_tax_mult = 0.30
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.30
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
	}
	flag = travel_point_of_interest_economic
}

########################################
# GERMANIA
########################################

##########
# Neuschwanstein
##########



neuschwanstein_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	effect_desc = feast_cost_discount_max_desc

	county_holder_character_modifier = {
		monthly_prestige = 0.5
		monthly_prestige_gain_mult = 0.1
		prestige_level_impact_mult = 0.1
		diplomacy_per_prestige_level = 1
		courtly_tax_contribution_mult = 0.15
	}
	
	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		civic_tax_mult = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.1
		stationed_maa_toughness_mult = 0.1
		fort_level = 2
		defender_holding_advantage = 2
	}

	max_garrison = 350
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Brandenburg Gate
##########



brandenburg_gate_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		maa_damage_mult = 0.1
		maa_toughness_mult = 0.1
		siege_weapon_siege_value_mult = 0.1
		advantage = 5
		martial_per_prestige_level = 1
	}
	
	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		civic_tax_mult = 0.1
		county_opinion_add = 20
	}

	province_modifier = {
		monthly_civic_tax = 1.5
	}
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Hofburg
##########



hofburg_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	effect_desc = feast_cost_discount_max_desc

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.25
		monthly_dynasty_prestige_mult = 0.25
		prestige_level_impact_mult = 0.1
	}
	
	county_modifier = {
		prosperity_growth = 0.25
		prosperity_growth_factor = 0.25
		civic_tax_mult = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 2
		stationed_maa_damage_mult = 0.2
		stationed_maa_toughness_mult = 0.15
		stationed_siege_weapon_siege_value_mult = 0.15
		fort_level = 4
		defender_holding_advantage = 4
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

########################################
# SCANDINAVIA
########################################



########################################
# ZAPADOSLAVIA
########################################

##########
# Prague Castle
##########



prague_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.15
	}
	
	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.10
		civic_tax_mult = 0.05
		monthly_county_control_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		fort_level = 2
		defender_holding_advantage = 3
	}

	max_garrison = 250
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = prague_castle_02
	flag = travel_point_of_interest_martial
}



prague_castle_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder.culture = { has_innovation = innovation_battlements }
	}
	
	cost_gold = 1500

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.35
		learning_per_piety_level = 1
	}
	
	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.20
		civic_tax_mult = 0.10
		monthly_county_control_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 2
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		stationed_siege_weapon_siege_value_mult = 0.10
		fort_level = 5
		defender_holding_advantage = 5
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = prague_castle_03
	flag = travel_point_of_interest_martial
}



prague_castle_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_cranes }
		scope:holder.culture = { has_innovation = innovation_machicolations }
	}
	
	cost_gold = 3000

	county_holder_character_modifier = {
		monthly_dynasty_prestige = 0.50
		monthly_dynasty_prestige_mult = 0.05
		monthly_piety = 0.25
		monthly_piety_gain_mult = 0.10
		learning_per_piety_level = 1
	}
	
	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.30
		civic_tax_mult = 0.25
		monthly_county_control_growth_factor = 0.25
	}

	province_modifier = {
		monthly_civic_tax = 3
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.25
		stationed_siege_weapon_siege_value_mult = 0.15
		fort_level = 6
		defender_holding_advantage = 8
	}

	max_garrison = 1000
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
	flag = travel_point_of_interest_religious
}

##########
# Charles University
##########



charles_university_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/university.dds"

	can_construct_potential = {
		scope:holder = {
			highest_held_title_tier >= tier_duchy
			prestige_level >= 4
		}
		county = {
			prosperity_level >= 3
		}
	}

	cost_gold = 1500

	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = tours_and_tournaments }
			desc = university_toto_effect_desc
		}
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	county_holder_character_modifier = {
		learning_per_prestige_level = 1
		monthly_dynasty_prestige = 0.20
		prestige_level_impact_mult = 0.15
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 1
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_learning
	flag = special_university
}

##########
# Sedlec Bone Temple
##########



sedlec_temple_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 500

	county_holder_character_modifier = {
		dread_baseline_add = 20
		dread_gain_mult = 0.10
		intrigue_per_piety_level = 1
	}
	
	county_modifier = {
		monthly_county_control_growth_add = -0.25
		county_opinion_add = -15
		religious_tax_mult = 0.05
	}

	province_modifier = {
		monthly_religious_tax = 0.5
		travel_danger = 10
	}

	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Grand Porcelain Works
##########



grand_porcelain_works_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_guilds }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		stewardship = 2
		monthly_prestige = 0.10
		monthly_prestige_gain_mult = 0.30

	}

	county_modifier = {
		civic_tax_mult = 0.30
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Špilberk Castle
##########



spilberk_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
		monthly_prestige = 0.25
		monthly_prestige_gain_mult = 0.15
	}
	
	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		civic_tax_mult = 0.15
		monthly_county_control_growth_add = 0.30
	}

	province_modifier = {
		monthly_civic_tax = 1.5
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		stationed_siege_weapon_siege_value_mult = 0.10
		fort_level = 3
		defender_holding_advantage = 4
		travel_danger = -15
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Königsberg Cathedral (rebuilt in 1992-1998)
##########



konigsberg_cathedral_01 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/cologne_cathedral.dds"
	asset = {
		type = pdxmesh
		name = "building_special_wawel_cathedral_01_mesh"
		requires_dlc_flag = medieval_monuments
	}
	can_construct_potential = {
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_city_planning
			}
		}
	}
	
	is_enabled = {
		always = yes
	}
	
	cost_gold = 1000
		
	character_modifier = {
		monthly_piety = 0.25
		monthly_piety_gain_per_knight_add = 0.05
		monthly_dynasty_prestige_mult = 0.05
		clergy_opinion = 5
		learning = 2
	}
	province_modifier = {
		monthly_religious_tax = 1
	}
	county_modifier = {
		religious_tax_mult = 0.1
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.1		
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	next_building = konigsberg_cathedral_02
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
}



konigsberg_cathedral_02 = {
	construction_time = very_slow_construction_time
	
	type_icon = "special_buildings/cologne_cathedral.dds"
	
	asset = {
		type = pdxmesh
		name = "building_special_wawel_cathedral_01_mesh"
		requires_dlc_flag = medieval_monuments
	}
	
	can_construct_potential = {
	}
	
	can_construct = {
		OR = {
			scope:holder = {
				OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
			}
			custom_description = {
				text = holy_site_building_trigger
				barony = {
					is_holy_site_of = scope:holder.faith
				}
			}
		}
		scope:holder = {
			culture = {
				has_innovation = innovation_manorialism
			}
		}
	}
	
	is_enabled = {
		always = yes
	}
	
	cost_gold = 1000
	cost_piety = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
		cultural_head_fascination_mult = 0.05
		monthly_lifestyle_xp_gain_mult = 0.1
		faith_creation_piety_cost_mult = -0.2
		faith_conversion_piety_cost_mult = -0.2
	}
	province_modifier = {
		monthly_religious_tax = 2
		travel_danger = -10
	}
	county_modifier = {
		religious_tax_mult = 0.2
		prosperity_growth_factor = 0.25
		prosperity_growth = 0.15
	}

	on_complete = {
		#Regular Mandala Boon
		mandala_built_piety_duchy_building_t3_effect = yes
	}
	
	ai_value = {
		base = 8
		ai_pious_building_preference_modifier = yes
	}
	flag = travel_point_of_interest_religious
	flag = travel_point_of_interest_learning
	flag = holy_building
	flag = special_university
}

########################################
# YUGOSLAVIJA
########################################

##########
# Rector's Palace - Dubrovnik
##########



rector_palace_01 = { 
	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/despot_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		scope:holder = {
			custom_tooltip = {
				text = government_is_not_republic_or_admin_desc
				OR = {
					government_has_flag = government_is_republic
					government_has_flag = government_is_urepublic
					government_has_flag = government_is_prepublic
					government_has_flag = government_is_administrative
				}
			}
		}
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_influence = 0.25
		monthly_influence_mult = 0.1
	}
	
	county_modifier = {
		prosperity_growth_factor = 0.2
		prosperity_growth = 0.2
		civic_tax_mult = 0.1
		hostile_raid_time = 0.35
	}
	
	province_modifier = {
		garrison_size = 0.1
		fort_level = 1
		levy_size = 0.5
		monthly_civic_tax = 2.5
		defender_holding_advantage = 2
		travel_danger = -10
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Pula Arena
##########



pula_arena_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_colosseum_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	cost_gold = 3000

	character_modifier = {
		glory_hound_opinion = 5
		belligerent_opinion = 5
	}

	county_modifier = {
		prosperity_growth_factor = 0.10
		prosperity_growth = 0.05
	}
	
	province_modifier = {
		monthly_civic_tax = 0.5
		county_opinion_add = 20
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Zagreb Cathedral
##########



zagreb_cathedral_01 = {
		
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.20
		monthly_piety_gain_mult = 0.20
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 10
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
		county_opinion_add = 5
	}
	
	province_modifier = {
		monthly_religious_tax = 2
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

##########
# Baščaršija - Sarajevo Old Town
##########



bascarsija_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	cost_gold = 500

	county_modifier = {
		prosperity_growth_factor = 0.05
		civic_tax_mult = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 0.5
	}

	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = bascarsija_02
	flag = travel_point_of_interest_economic
}



bascarsija_02 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_development_02 }
		scope:holder.culture = { has_innovation = innovation_manorialism }
	}

	cost_gold = 500

	character_modifier = {
		monthly_prestige = 0.1
		monthly_dynasty_prestige = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.1
		civic_tax_mult = 0.1
	}

	province_modifier = {
		monthly_civic_tax = 1.5
	}

	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = bascarsija_03
	flag = travel_point_of_interest_economic
}



bascarsija_03 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"  
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_guilds }
		scope:holder.culture = { has_innovation = innovation_windmills }
	}

	cost_gold = 500

	character_modifier = {
		monthly_prestige = 0.25
		monthly_dynasty_prestige = 0.15
		monthly_dynasty_prestige_mult = 0.05
		stewardship_per_prestige_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.1
		prosperity_growth_factor = 0.15
		civic_tax_mult = 0.2
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Jajce Citadel
##########



jajce_citadel_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 400
	
	character_modifier = {
		monthly_prestige = 0.1
	}

	max_garrison = 100

	county_modifier = {
		prosperity_growth_factor = 0.1
	}

	province_modifier = {
		defender_holding_advantage = 2
		fort_level = 1
		stationed_maa_damage_mult = 0.1
		stationed_maa_toughness_mult = 0.1
		travel_danger = -10
	}
	
	next_building = jajce_citadel_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}



jajce_citadel_02 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 800
	
	character_modifier = {
		monthly_prestige = 0.25
		martial_per_prestige_level = 1
	}

	max_garrison = 350

	county_modifier = {
		prosperity_growth_factor = 0.1
		civic_tax_mult = 0.1
	}

	province_modifier = {
		defender_holding_advantage = 6
		fort_level = 4
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.25
		stationed_siege_weapon_siege_value_mult = 0.15
		travel_danger = -20
	}

	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Tito Bunker
##########



tito_bunker_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"

	can_construct = {
		building_requirement_tribal = no
	}

	cost_gold = 500

	character_modifier = {
		martial_per_piety_level = 1
	}

	county_modifier = {
		monthly_county_control_growth_factor = 0.1
		monthly_county_control_growth_add = 0.1
		prosperity_growth_factor = 0.1
	}

	province_modifier = {
		garrison_size = 0.15
		fort_level = 5
		defender_holding_advantage = 5
		travel_danger = -15
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_martial
}

##########
# Church of Saint Sava
##########



church_saint_sava_01 = {
		
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds" 

	asset = {
		type = pdxmesh
		name = "building_special_hagia_sophia_mesh"
	} 
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		custom_description = {
			OR = {
				scope:holder = {
					OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
				}
				custom_description = {
					text = holy_site_building_trigger
					barony = {
						is_holy_site_of = scope:holder.faith
					}
				}
			}
		}
	}
	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.35
		monthly_piety_gain_mult = 0.15
		holy_order_hire_cost_mult = -0.10
		clergy_opinion = 10
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		religious_tax_mult = 0.15
		prosperity_growth_factor = 0.20
		prosperity_growth = 0.15
		county_opinion_add = 5
	}
	
	province_modifier = {
		monthly_religious_tax = 1.5
	}
	
	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}
##########
# Smederevo Fortress
##########



smederevo_fortress_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 400
	
	character_modifier = {
		monthly_prestige = 0.1
	}

	max_garrison = 100

	county_modifier = {
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 0.5
		defender_holding_advantage = 2
		fort_level = 2
		stationed_maa_damage_mult = 0.1
		stationed_maa_toughness_mult = 0.1
		stationed_siege_weapon_siege_value_mult = 0.15
	}
	
	next_building = smederevo_fortress_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}



smederevo_fortress_02 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 800
	
	character_modifier = {
		monthly_prestige = 0.25
		martial_per_prestige_level = 1
	}

	max_garrison = 350

	county_modifier = {
		prosperity_growth = 0.05
		prosperity_growth_factor = 0.05
		civic_tax_mult = 0.1
	}

	province_modifier = {
		monthly_civic_tax = 1
		defender_holding_advantage = 4
		fort_level = 4
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.25
		stationed_siege_weapon_siege_value_mult = 0.15
	}

	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}

##########
# Petrovaradin Fortress
##########



petrovaradin_fortress_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_prestige_gain_mult = 0.15
		monthly_dynasty_prestige_mult = 0.15
	}
	
	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		civic_tax_mult = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 2
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.1
		stationed_siege_weapon_siege_value_mult = 0.15
		fort_level = 3
		defender_holding_advantage = 4
		travel_danger = -15
	}

	max_garrison = 500
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Ljubljana Castle
##########



ljubljana_castle_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 500

	county_holder_character_modifier = {
		monthly_prestige = 0.15
	}
	
	county_modifier = {
		prosperity_growth_factor = 0.05
		civic_tax_mult = 0.05
		monthly_county_control_growth_factor = 0.10
	}

	province_modifier = {
		monthly_civic_tax = 1
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		fort_level = 2
		defender_holding_advantage = 2
	}

	max_garrison = 200
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	next_building = ljubljana_castle_02
	flag = travel_point_of_interest_martial
}



ljubljana_castle_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder.culture = { has_innovation = innovation_battlements }
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		monthly_piety = 0.25
		monthly_prestige = 0.25
		martial_per_piety_level = 1
	}
	
	county_modifier = {
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.20
		civic_tax_mult = 0.15
		monthly_county_control_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 2.5
		stationed_maa_damage_mult = 0.20
		stationed_maa_toughness_mult = 0.20
		stationed_siege_weapon_siege_value_mult = 0.10
		fort_level = 4
		defender_holding_advantage = 4
	}

	max_garrison = 350
	
	ai_value = {
		base = 10
		directive_to_fortify_modifier = yes
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Celje Hall
##########



celje_hall_01 = { 
	construction_time = very_slow_construction_time
	effect_desc = feast_cost_discount_max_desc

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	is_enabled = {
		scope:holder = {
			custom_tooltip = {
				text = government_is_not_republic_or_admin_desc
				OR = {
					government_has_flag = government_is_republic
					government_has_flag = government_is_urepublic
					government_has_flag = government_is_prepublic
					government_has_flag = government_is_administrative
				}
			}
		}
	}
	
	cost_gold = 1000

	county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		monthly_prestige = 0.25
		monthly_influence = 0.25
	}
	
	county_modifier = {
		prosperity_growth_factor = 0.15
		prosperity_growth = 0.15
		civic_tax_mult = 0.15
	}
	
	province_modifier = {
		monthly_civic_tax = 1.5
	}
	
	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Niš Skull Tower
##########



nis_skull_tower_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/colosseum.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
	}
	
	cost_gold = 500

	county_holder_character_modifier = {
		dread_baseline_add = 15
		dread_gain_mult = 0.15
		monthly_piety_gain_per_dread_mult = 0.01
		knight_effectiveness_per_dread = 0.005
	}
	
	county_modifier = {
		monthly_county_control_growth_add = -0.1
		county_opinion_add = -20
		civic_tax_mult = 0.05
	}

	province_modifier = {
		monthly_civic_tax = 0.75
		travel_danger = 15
	}

	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}

##########
# Bor Mining Settlement
##########



bor_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_modifier = {
		mining_tax_mult = 0.05
		levy_size = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 2
		stationed_siege_weapon_siege_value_mult = 0.10
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = bor_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



bor_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_modifier = {
		mining_tax_mult = 0.10
		levy_size = 0.20
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 3.5
		stationed_siege_weapon_siege_value_mult = 0.15
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = bor_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



bor_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_modifier = {
		mining_tax_mult = 0.15
		levy_size = 0.30
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.20
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = bor_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}



bor_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_modifier = {
		mining_tax_mult = 0.20
		levy_size = 0.40
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.25
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
}

##########
# Zenica Iron Mines
##########



zenica_iron_mines_01 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 400

	county_modifier = {
		mining_tax_mult = 0.05
		levy_size = 0.10
		prosperity_growth_factor = 0.05
	}

	province_modifier = {
		monthly_mining_tax = 2
		stationed_siege_weapon_siege_value_mult = 0.10
		stationed_maa_toughness_mult = 0.05
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = zenica_iron_mines_02

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



zenica_iron_mines_02 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500

	county_modifier = {
		mining_tax_mult = 0.10
		levy_size = 0.20
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_mining_tax = 3.5
		stationed_siege_weapon_siege_value_mult = 0.15
		stationed_maa_toughness_mult = 0.10
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = zenica_iron_mines_03

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



zenica_iron_mines_03 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 600

	county_modifier = {
		mining_tax_mult = 0.15
		levy_size = 0.30
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.20
		stationed_maa_toughness_mult = 0.20
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	next_building = zenica_iron_mines_04

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}



zenica_iron_mines_04 = {
	effect_desc = mines_effect_desc

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	type_icon = "special_buildings/toledo.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 700

	county_modifier = {
		mining_tax_mult = 0.20
		levy_size = 0.40
		prosperity_growth_factor = 0.20
	}

	province_modifier = {
		monthly_mining_tax = 5
		stationed_siege_weapon_siege_value_mult = 0.25
		stationed_maa_toughness_mult = 0.25
	}

	province_culture_modifier = {
		parameter = cupellation_mine_building_bonuses
		mining_tax_mult = innovation_cupellation_mine_tax_bonus_value
	}

	ai_value = {
		base = 10
	}
	flag = travel_point_of_interest_economic
	flag = special_mine
	flag = special_mine_iron
}

##########
# Fortified Port of Kotor
##########



fortified_port_of_kotor_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.025
		naval_movement_speed_mult = 0.025
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
		hostile_raid_time = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 0.5
		fort_level = 1
		defender_holding_advantage = 2
		stationed_maa_damage_mult = 0.05
		stationed_maa_toughness_mult = 0.05
		garrison_size = 0.05
		travel_danger = -10
	}

	next_building = fortified_port_of_kotor_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_kotor_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.35
	}

	province_modifier = {
		monthly_maritime_tax = 2
		fort_level = 2
		defender_holding_advantage = 3
		stationed_maa_damage_mult = 0.10
		stationed_maa_toughness_mult = 0.10
		garrison_size = 0.10
		travel_danger = -15
	}

	next_building = fortified_port_of_kotor_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



fortified_port_of_kotor_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
		hostile_raid_time = 0.50
	}

	province_modifier = {
		monthly_maritime_tax = 4
		fort_level = 4
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.15
		stationed_maa_toughness_mult = 0.15
		garrison_size = 0.20
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

##########
# Port of Split
##########



port_of_split_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_manorialism }
		scope:holder = { highest_held_title_tier >= tier_duchy }
	}

	cost_gold = 350

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.05
		naval_movement_speed_mult = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.10
	}

	province_modifier = {
		monthly_maritime_tax = 0.75
	}

	next_building = port_of_split_02

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_split_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 02 }
	}

	cost_gold = 800

	county_holder_character_modifier = {
		embarkation_cost_mult = -0.10
		naval_movement_speed_mult = 0.10
	}

	county_modifier = {
		maritime_tax_mult = 0.15
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_maritime_tax = 2.5
	}

	next_building = port_of_split_03

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}



port_of_split_03 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = { has_innovation = innovation_windmills }
		scope:holder = { highest_held_title_tier >= tier_duchy }
		building_requirement_castle_city_church = { LEVEL = 03 }
	}

	cost_gold = 1500

    county_holder_character_modifier = {
		stewardship_per_prestige_level = 1
		embarkation_cost_mult = -0.15
		naval_movement_speed_mult = 0.15
	}

	county_modifier = {
		maritime_tax_mult = 0.25
		prosperity_growth = 0.30
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 4
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
}

########################################
# MAKEDONIA
########################################



########################################
# NISTERNIA
########################################

##########
# The Palace of Soroca
##########


nistrenian_palace_01 = {
	asset = {
		type = pdxmesh
		name = ep3_despots_palace_mesh
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_manorialism }
		building_requirement_tribal = no
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 750

	county_holder_character_modifier = {
		stardwardship_per_piety_level = 2
		monthly_dynasty_prestige = 0.15
		monthly_dynasty_prestige_mult = 0.05
		monthly_influence = 0.2
		monthly_influence_mult = 0.3
	}

	county_modifier = {
		civic_tax_mult = 0.3
		prosperity_growth = 0.2
		prosperity_growth_factor = 0.2
		monthly_county_control_growth_add = 0.5
	}

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
}

########################################
# RUSSIA
########################################

##########
# Winter Palace
##########



winter_palace_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_manorialism }
		building_requirement_tribal = no
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 750

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		monthly_dynasty_prestige = 0.15
		monthly_dynasty_prestige_mult = 0.05
		monthly_prestige = 0.15
		legitimacy_gain_mult = 0.15
	}

	county_modifier = {
		civic_tax_mult = 0.10
		prosperity_growth = 0.10
		prosperity_growth_factor = 0.15
	}

	province_modifier = {
		monthly_civic_tax = 2
	}

	next_building = winter_palace_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



winter_palace_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/despot_palace.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_windmills }
	}

	effect_desc = feast_cost_discount_max_desc

	cost_gold = 2000

	county_holder_character_modifier = {
		diplomacy_per_prestige_level = 1
		stewardship_per_prestige_level = 1		
		monthly_dynasty_prestige = 0.50
		monthly_dynasty_prestige_mult = 0.10
		monthly_prestige = 0.50
		monthly_prestige_gain_mult = 0.20
		legitimacy_gain_mult = 0.15
	}

	county_modifier = {
		civic_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_civic_tax = 3
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Peter and Paul Fortress
##########



petropavlovskaya_krepost_01 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_manorialism }
		building_requirement_tribal = no
	}

	cost_gold = 750

	county_holder_character_modifier = {
		knight_effectiveness_mult = 0.125
		monthly_martial_lifestyle_xp_gain_mult = 0.1
		monthly_prestige_gain_mult = 0.10
		belligerent_opinion = 5
		glory_hound_opinion = 5
	}

	county_modifier = {
		monthly_county_control_growth_add = 0.5
		hostile_raid_time = 0.5
	}

	province_modifier = {
		fort_level = 4
		garrison_size = 0.50
		defender_holding_advantage = 4
		stationed_maa_damage_mult = 0.1
		stationed_maa_toughness_mult = 0.1
		stationed_siege_weapon_siege_value_mult = 0.1
		travel_danger = -15
	}

	next_building = petropavlovskaya_krepost_02

	ai_value = {
		base = 10
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}



petropavlovskaya_krepost_02 = {

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/alamut_castle.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder = {
			prestige_level >= 4
			highest_held_title_tier >= tier_duchy
		}
		scope:holder.culture = { has_innovation = innovation_windmills }
	}

	cost_gold = 2500

	county_holder_character_modifier = {
		martial_per_prestige_level = 1
		knight_effectiveness_mult = 0.25
		monthly_martial_lifestyle_xp_gain_mult = 0.1
		monthly_prestige_gain_mult = 0.10
		belligerent_opinion = 10
		glory_hound_opinion = 10
	}

	county_modifier = {
		monthly_county_control_growth_add = 1
		hostile_raid_time = 1
	}

	province_modifier = {
		fort_level = 6
		garrison_size = 1
		defender_holding_advantage = 6
		stationed_maa_damage_mult = 0.25
		stationed_maa_toughness_mult = 0.25
		stationed_siege_weapon_siege_value_mult = 0.2
		travel_danger = -25
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_diplomatic
}

##########
# Great Walls of Smolensk
##########



smolensk_walls_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 500
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
	}
	max_garrison = good_building_max_garrison_tier_1
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_1
		stationed_maa_damage_mult = normal_maa_damage_tier_1
		stationed_maa_toughness_mult = normal_maa_toughness_tier_1
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_1
		travel_danger = -10
	}
	county_modifier = {
		civic_tax_mult = 0.05
		monthly_county_control_growth_add = 0.5
		prosperity_growth = 0.1
		prosperity_growth_factor = 0.05
		hostile_raid_time = 0.25
	}
	
	next_building = smolensk_walls_02
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_martial
}



smolensk_walls_02 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
	}
	
	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_hoardings
		}
	}
	
	cost_gold = 1000
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		martial_per_prestige_level = 1
	}
	max_garrison = good_building_max_garrison_tier_2
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_2
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -20
	}
	county_modifier = {
		civic_tax_mult = 0.1
		monthly_county_control_growth_add = 0.5
		prosperity_growth = 0.1
		prosperity_growth_factor = 0.2
		hostile_raid_time = 0.33
	}
	
	next_building = smolensk_walls_03
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes
	}
	flag = travel_point_of_interest_martial
}


smolensk_walls_03 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/alamut_castle.dds"
	
	can_construct_potential = {
	}
	
	cost_gold = 1500
	
	character_modifier = {
		monthly_dynasty_prestige_mult = 0.1
		martial_per_prestige_level = 1
		stewardship_per_prestige_level = 1
	}
	max_garrison = good_building_max_garrison_tier_3
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_4
		fort_level = good_building_fort_level_tier_3
		stationed_maa_damage_mult = normal_maa_damage_tier_2
		stationed_maa_toughness_mult = normal_maa_toughness_tier_2
		stationed_siege_weapon_siege_value_mult = normal_maa_siege_value_tier_2
		travel_danger = -30
	}
	county_modifier = {
		civic_tax_mult = 0.15
		monthly_county_control_growth_add = 1
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.15
		hostile_raid_time = 0.5
	}
	
	ai_value = {
		base = 10
		culture_likely_to_fortify_modifier = yes		
	}
	flag = travel_point_of_interest_martial
}


########################################
# BALTIC
########################################



########################################
# FINLAND
########################################



########################################
# SPECIAL MILITARY BUILDINGS
########################################

##########
# Chemistry Workshop - unlocks chemical weapons
##########



communal_settlement_01 = {
	construction_time = standard_construction_time
	effect_desc = communal_settlement_1_effect_desc

	can_construct_potential = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}

	can_construct_showing_failures_only = {
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 01 }
		scope:holder.culture = {
				has_innovation = innovation_barracks
			}
	}

	is_enabled = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}
	
	cost_gold = expensive_building_tier_1_cost
	
	province_modifier = {
		monthly_civic_tax = super_poor_building_tax_tier_2
		stationed_peasant_militia_damage_mult = high_maa_damage_tier_2
		stationed_peasant_militia_toughness_mult = high_maa_toughness_tier_1
		defender_holding_advantage = 2
	}
	county_modifier = {
		levy_size = 0.01
	}

	levy = normal_building_levy_tier_2

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}

	type_icon = "special_buildings/colosseum.dds"
	
	next_building = communal_settlement_02
	
	ai_value = {
		base = 20
		ai_tier_1_building_modifier = yes
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}



communal_settlement_02 = {
	construction_time = standard_construction_time
	effect_desc = communal_settlement_2_effect_desc

	can_construct_potential = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		scope:holder.culture = {
				has_innovation = innovation_castle_baileys
			}
	}

	is_enabled = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}
	
	cost_gold = expensive_building_tier_2_cost
	
	province_modifier = {
		monthly_civic_tax = super_poor_building_tax_tier_4
		stationed_peasant_militia_damage_mult = high_maa_damage_tier_4
		stationed_peasant_militia_toughness_mult = high_maa_toughness_tier_2
		defender_holding_advantage = 4
		fort_level = 1
	}

	county_modifier = {
		monthly_county_control_growth_add = 0.05
		garrison_size = 0.05
		levy_size = 0.02
	}
	
	levy = normal_building_levy_tier_4

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}

	type_icon = "special_buildings/colosseum.dds"
	
	next_building = communal_settlement_03
	
	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
		modifier = { # Fill all building slots before going for upgrades
			factor = 0
			free_building_slots > 0
		}
	}
}



communal_settlement_03 = {
	construction_time = standard_construction_time
	effect_desc = communal_settlement_3_effect_desc

	can_construct_potential = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	is_enabled = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder.culture = {
				has_innovation = innovation_castle_baileys
			}
	}
	
	cost_gold = expensive_building_tier_3_cost
	
	province_modifier = {
		monthly_civic_tax = super_poor_building_tax_tier_6
		stationed_peasant_militia_damage_mult = high_maa_damage_tier_6
		stationed_peasant_militia_toughness_mult = high_maa_toughness_tier_3
		defender_holding_advantage = 6
		fort_level = 1
	}

	county_modifier = {
		monthly_county_control_growth_add = 0.10
		garrison_size = 0.05
		levy_size = 0.03
	}
	
	levy = normal_building_levy_tier_6

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}

	type_icon = "special_buildings/colosseum.dds"
	
	next_building = communal_settlement_04
	
	ai_value = {
		base = 8
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}



communal_settlement_04 = {
	construction_time = standard_construction_time
	effect_desc = communal_settlement_4_effect_desc

	can_construct_potential = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		scope:holder.culture = {
				has_innovation = innovation_royal_armory
			}
	}

	is_enabled = {
		custom_description = {
			text = province_is_of_a_communal_settlement_faith_tt
			building_communal_settlement_requirement = yes
		}
	}
	
	cost_gold = expensive_building_tier_4_cost
	
	province_modifier = {
		monthly_civic_tax = super_poor_building_tax_tier_8
		stationed_peasant_militia_damage_mult = high_maa_damage_tier_8
		stationed_peasant_militia_toughness_mult = high_maa_toughness_tier_4
		defender_holding_advantage = 8
		fort_level = 3
	}

	county_modifier = {
		monthly_county_control_growth_add = 0.15
		garrison_size = 0.10
		levy_size = 0.05
	}
	
	levy = normal_building_levy_tier_8

	on_complete = {
		#Mandala Creator Aspect
		creator_mandala_built_regular_building_piety_effect = yes
	}

	type_icon = "special_buildings/colosseum.dds"
	
	
	ai_value = {
		base = 7
		ai_general_building_modifier = yes
		directive_to_build_military_modifier = yes
	}
}

########################################
# EASTERN ORTHODOX / CAUCASUS ADDITIONS
########################################

##########
# Apostolos Andreas Monastery — Karpas, Cyprus
##########



apostolos_andreas_monastery = {
	asset = {
		type = pdxmesh
		name = ep3_jvari_monastery_01_a_mesh
	}

	construction_time = slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	cost_gold = 750

	character_modifier = {
		monthly_piety = 0.40
		negate_health_penalty_add = 0.05
		monthly_county_control_growth_factor = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.15
		prosperity_growth_factor = 0.10
		religious_tax_mult = 0.10
	}

	province_modifier = {
		monthly_religious_tax = 0.5
		defender_holding_advantage = 1
		travel_danger = -10
	}

	on_complete = {
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = {
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
}

##########
# New Athos — Abkhaz Neopagan Sanctuary
##########



new_athos_pagan_temple_01 = {
	asset = {
		type = pdxmesh
		name = "building_special_cathedral_pagan_mesh"
	}

	construction_time = slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			culture = culture:NEOW_abkhazian
		}
		NOT = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
		}
	}

	is_enabled = {
		scope:holder = {
			culture = culture:NEOW_abkhazian
		}
		NOT = {
			christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
		}
	}

	cost_gold = 800

	character_modifier = {
		monthly_piety = 0.35
		monthly_prestige = 0.20
		knight_effectiveness_mult = 0.10
	}

	county_modifier = {
		prosperity_growth = 0.10
		levy_size = 0.10
	}

	province_modifier = {
		monthly_religious_tax = 0.4
		travel_danger = -10
	}

	next_building = new_athos_restored_monastery_02

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = {
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
}

##########
# New Athos — Restored Orthodox Monastery
##########



new_athos_restored_monastery_02 = {
	asset = {
		type = pdxmesh
		name = ep3_sumela_monastery_01_b_mesh
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	is_enabled = {
		christianity_or_syncretic_with_christianity_trigger = { CHARACTER = scope:holder }
	}

	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.50
		learning = 1
		monthly_dynasty_prestige_mult = 0.05
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.15
		religious_tax_mult = 0.15
	}

	province_modifier = {
		monthly_religious_tax = 1
		travel_danger = -10
	}

	on_complete = {
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = {
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
}

##########
# Cathedral of Saint Ilia II — Tbilisi
##########



cathedral_saint_ilia_ii = {
	asset = {
		type = pdxmesh
		name = "cp6_building_special_grand_cathedral_mesh"
		requires_dlc_flag = holy_buildings
	}
	asset = {
		type = pdxmesh
		name = "building_special_cathedral_generic_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "special_buildings/cologne_cathedral.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder = {
			religion = religion:eastern_orthodox_religion
		}
	}

	is_enabled = {
		scope:holder = {
			religion = religion:eastern_orthodox_religion
		}
	}

	cost_gold = 1500

	character_modifier = {
		monthly_piety = 0.50
		monthly_prestige = 0.30
		legitimacy_gain_mult = 0.10
		learning_per_piety_level = 1
	}

	county_modifier = {
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.20
		monthly_county_control_growth_factor = 0.10
	}

	province_modifier = {
		monthly_religious_tax = 1.5
		travel_danger = -10
	}

	on_complete = {
		mandala_built_piety_duchy_building_t3_effect = yes
	}

	ai_value = {
		base = 10
		ai_pious_building_preference_modifier = yes
		modifier = {
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_religious
	flag = holy_building
	flag = religious_studies_location
}

########################################
# CHANNEL TUNNEL
########################################



channel_tunnel_01 = {
	construction_time = very_slow_construction_time

	type_icon = "special_buildings/quanzhou_seaport.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}

	can_construct = {
		scope:holder.culture = {
			has_innovation = innovation_cranes
		}
	}

	cost_gold = 1500

	county_holder_character_modifier = {
		monthly_prestige = 0.25
		embarkation_cost_mult = -0.25
		movement_speed = 0.05
	}

	county_modifier = {
		maritime_tax_mult = 0.20
		prosperity_growth = 0.20
		prosperity_growth_factor = 0.25
	}

	province_modifier = {
		monthly_maritime_tax = 3
		travel_danger = -20
	}

	ai_value = {
		base = 10
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = {
			factor = 0
			free_building_slots > 0
		}
	}
	flag = travel_point_of_interest_economic
	flag = travel_point_of_interest_wonder
}



dvin_shuka_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
		province_size_baseline_add = special_building_province_size_baseline
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = dvin_shuka_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}


dvin_shuka_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	

	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}


khiva_bazaar_01 = {
	construction_time = slow_construction_time
	
	type_icon = "special_buildings/special_silk_road_market.dds"
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct = { building_monument_tribal_trigger = yes }
	
	cost_gold = 400
	
	province_modifier = {
		monthly_commerce_tax = 2
		travel_danger = -10
		province_size_baseline_add = special_building_province_size_baseline
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}

	next_building = khiva_bazaar_02
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 1 }
	}
	

	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}


khiva_bazaar_02 = {
	construction_time = slow_construction_time
	
	
	can_construct_potential = {
		scope:holder = {
			any_character_situation = { situation_type = silk_road_situation }
		}
	}
	can_construct_showing_failures_only = {
		holding_district_level_2_trigger = yes
	}
	
	can_construct = { building_commerce_early_medieval_trigger = yes }
	
	cost_gold = 800
	

	province_modifier = {
		travel_danger = -15
		monthly_commerce_tax = 2
		province_size_baseline_add = 40
	}
	county_culture_modifier = {
		parameter = silk_road_market_owner_bonuses
		commerce_tax_mult = 0.1
	}
	character_modifier = {
		cultural_head_fascination_mult = 0.05
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = special_building_need_sell_price
		trade_good_wool_sell_price_mult = special_building_need_sell_price
	}

	on_complete = {
		tgp_silk_road_market_built_effect = yes
	}
	
	ai_value = {
		base = 9.2

		directive_to_build_economy_modifier = yes

		ai_capital_preference_modifier = yes
		ai_special_district_modifier = { LEVEL = 2 }
	}


	trade_good_need = {
		trade_good = trade_good_textiles
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			county_modifier = {
				prosperity_growth_factor = special_building_need_prosperity_high
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = special_building_need_amount
		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				province_size_baseline_add = 10
			}
		}
	}

	flag = travel_point_of_interest_economic
}
