ub_mazbin_mosque_01 = { #Mazin Bin Ghadoubah Mosque, Always Prebuilt.
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_muslim.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}		
	}	
	cost_gold = 1000

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		different_faith_opinion = 10
		monthly_dynasty_prestige_mult = 0.03
		domain_tax_different_faith_mult = 0.10
		levy_reinforcement_rate_same_faith = 0.15
	}
	province_modifier = {
		monthly_income = 2	
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes
	flag = travel_point_of_interest_religious
	type = special
}

ub_djamaa_kebir_01 = { #Djamaa el Kebir, Algiers, 1097.
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_friday_mosque.dds"  	
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}	
	cost_gold = 1000

	province_modifier = {
		monthly_income = 1
	}
	character_modifier = {
		monthly_piety = 0.25
		learning_per_piety_level = 1
		religious_vassal_opinion = 5
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2	
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious	
}

ub_djinguereber_Mosque_01 = { #Djinguereber Mosque, 1327.
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_djenne.dds"  	
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}	
	cost_gold = 500

	character_modifier = {
		monthly_piety = 0.5
		learning_per_piety_level = 1
		monthly_prestige = 0.5
	}
	province_modifier = {
		monthly_income = 1
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2	
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious		
}

ub_tinmal_mosque_01 = { #Tinmal mosque
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_great_mosque_of_cordoba.dds"  	
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}	
	cost_gold = 700

	province_modifier = {
		monthly_income = 1.3
	}
	character_modifier = {
		monthly_piety = 0.5
		martial_per_piety_level = 1
		army_maintenance_mult = -0.15
		holy_order_hire_cost_mult = -0.15
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious	
}

ub_abualhasan_madrasa_01 = { #Madrasa of Abu al-Hasan
	effect_desc = {
		desc = unlocks_building_desc
		triggered_desc = {
			trigger = { has_dlc_feature = royal_court }
			desc = university_roco_effect_desc
		}
		desc = university_effect_desc
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_friday_mosque.dds"  	
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}	
	cost_gold = 250

	character_modifier = {
		monthly_piety = 0.5
		learning = 1
	}
	province_modifier = {
		monthly_income = 1.6
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious
	flag = special_university				
}

ub_taza_mosque_01 = { #Great Mosque of Taza
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_the_friday_mosque.dds"  	
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}	
	cost_gold = 500

	character_modifier = {
		monthly_piety = 0.3
	}
	province_modifier = {
		monthly_income = 0.6
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2	
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}	
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious	
}

ub_alnuri_mosque_01 = { #Great Mosque of al-Nuri, 1172-73
	construction_time = very_slow_construction_time

	type_icon = "icon_ub_alnuri_mosque.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 600

	character_modifier = {
		monthly_piety = 0.5
		clergy_opinion = 10
		domain_tax_different_faith_mult = 0.15
	}
	province_modifier = {
		monthly_income = 1.1
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious
}

ub_chinguetti_mosque_01 = { #Chinguetti Mosque, 13-14th, In game, 1200
	construction_time = very_slow_construction_time

	type_icon = "icon_ub_chinguetti_mosque.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 300

	character_modifier = {
		monthly_piety = 0.5
		stress_loss_mult = 0.05
	}
	province_modifier = {
		monthly_income = 0.7
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}

	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes	

	type = special
	flag = travel_point_of_interest_religious
}

ub_gaza_mosque_01 = { #Great Mosque of Gaza, Always prebuilt. Will be upgradable. but Not 1.2
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_muslim.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 300

	character_modifier = {
		monthly_piety = 0.5
		clergy_opinion = 10
	}
	province_modifier = {
		monthly_income = 0.5
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
	
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious
}

ub_alzaytuna_mosque_01 = { #Al-Zaytuna Mosque. 698 Always Prebuilt
	construction_time = very_slow_construction_time

	type_icon = "icon_ub_koutoubia_mosque.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 500

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.03
		stewardship_per_piety_level = 1
		learning_per_piety_level = 1
	}
	province_modifier = {
		monthly_income = 0.5
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}

	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes	

	type = special
	flag = travel_point_of_interest_religious
}

ub_sfax_mosque_01 = { #Great Mosque of Sfax. 850 Always Prebuilt
	construction_time = very_slow_construction_time

	type_icon = "icon_ub_sfax_mosque.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 1000

	character_modifier = {
		monthly_dynasty_prestige_mult = 0.05
		monthly_piety = 0.25
		stewardship_per_piety_level = 1
	}
	province_modifier = {
		monthly_income = 0.6
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}

	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes	
		
	type = special
	flag = travel_point_of_interest_religious
}

ub_sousse_mosque_01 = { #Great Mosque of Sousse. 851
	construction_time = very_slow_construction_time

	type_icon = "icon_ub_sousse_mosque.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 1000

	character_modifier = {
		monthly_piety = 0.2
		monthly_prestige = 0.13
	}
	province_modifier = {
		monthly_income = 0.4
		defender_holding_advantage = 2
		fort_level = 1
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}
		
	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes

	type = special
	flag = travel_point_of_interest_religious
}

ub_sanaa_mosque_01 = { #Great Mosque of Sana'a 633 Always Prebuilt
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_al-azhar_university.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}	
	cost_gold = 500

	character_modifier = {
		monthly_prestige = 0.25
		monthly_dynasty_prestige_mult = 0.05
		men_at_arms_maintenance = -0.15
		learning_per_piety_level = 1
	}
	province_modifier = {
		monthly_income = 0.6
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}
	
	ai_value = {
		base = 100
		ai_pious_building_preference_modifier = yes
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}	
	}

	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes		

	type = special
	flag = travel_point_of_interest_religious
}

ub_zabid_mosque_01 = { #Al-Asha'ir Mosque, 629. Always Prebuilt
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_hagia_sophia.dds"

	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}	
		}
	}	
	cost_gold = 1000

	character_modifier = {
		monthly_prestige = 0.2
		same_faith_opinion = 10
		monthly_dynasty_prestige_mult = 0.05
		stewardship_per_piety_level = 1
	}
	province_modifier = {
		monthly_income = 0.5
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.2
		development_growth = 0.2
	}

	is_enabled = {
		custom_description = {
			text = UB_Special_building_Islam_trigger
			OR = {
				scope:holder = {
					religion = religion:islam_religion
				}
				scope:holder = {
					faith = {
						has_doctrine = tenet_islamic_syncretism			
					}						
				}				
			}		
		}
	}
  
	show_disabled = yes	
		
	ai_value = {
		base = 100
		ai_pious_building_preference_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_religious
}