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

the_friday_mosque_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_friday_mosque.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		scope:holder = {
			OR = {
				religion = religion:zoroastrianism_religion
				religion = religion:islam_religion
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_muslim_or_zoroastrian_or_holy_site_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					religion = religion:zoroastrianism_religion
				}
				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 = {
		tax_mult = 0.2
		development_growth_factor = 0.25
		development_growth = 0.3
	}
	
	ai_value = {
		base = 100
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	
	type = special

	flag = travel_point_of_interest_religious
}

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

palace_of_ctesiphon_01 = {

	construction_time = very_slow_construction_time
	
	type_icon = "icon_structure_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
	}
	
	next_building = palace_of_ctesiphon_02
	
	ai_value = {
		base = 100
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	
	type = special

	flag = travel_point_of_interest_learning # ancient ruin
}

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

	construction_time = very_slow_construction_time
	
	type_icon = "icon_structure_palace_of_ctesiphon.dds" 

	can_construct = {
		scope:holder = {
			AND = {
				OR = {
					religion = religion:zoroastrianism_religion
					faith = faith:manichean
					faith = faith:nestorian
					faith = faith:hellenic_pagan
				}
				highest_held_title_tier >= tier_kingdom
				is_independent_ruler = 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
		eranian_opinion = 5
		zoroastrianism_religion_opinion = 5
	}

	county_modifier = {
		build_prestige_cost = -0.2
		build_gold_cost = -0.2
	}
	
	province_modifier = {
		monthly_income = 2
	}
	
	ai_value = {
		base = 100
		culture_likely_to_fortify_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}
	
	type = special

	flag = travel_point_of_interest_learning # ancient ruin
}