country_decisions = {
	# AI Decisions Below
	rce_religion_mechanic_nestorian_patriarchy_main_center_of_reformation_decision = {
		# not the same as rce_religion_mechanic_nestorian_patriarchy_main_center_of_reformation_button
		# triggers partly taken from the individual center of reformation buttons
		# AI only event to pick
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_saved_global_event_target = rce_religion_mechanic_nestorian_patriarchy_current_center_of_reformation }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_saved_global_event_target = rce_religion_mechanic_nestorian_patriarchy_current_center_of_reformation }
			NOT = { has_country_flag = rce_religion_mechanic_nestorian_patriarchy_selecting_center_of_reformation }
			rce_religion_mechanic_nestorian_patriarchy_is_patriarchy_controller = yes
			NOT = { has_global_flag = rce_religion_mechanic_nestorian_patriarchy_no_new_center_of_reformation }
			hidden_trigger = {
				OR = {
					AND = {
						has_discovered = 118
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 118 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 1816
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 1816 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 1099
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 1099 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 151
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 151 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 4293
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 4293 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 4447
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 4447 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 358
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 358 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 735
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 735 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
					AND = {
						has_discovered = 85
						any_capital_province = {
							rce_religion_mechanic_nestorian_patriarchy_is_in_regions_for_center_of_reformation = { id = 85 }
							province_religion = nestorian
							owner = {
								country_religion = nestorian
							}
						}
					}
				}
			}
		}
		effect = {
			set_country_flag = rce_religion_mechanic_nestorian_patriarchy_selecting_center_of_reformation
			country_event = { id = rce_religion_mechanic_nestorian_patriarchy_events.8 }
		}
		ai_will_do = {
			factor = 10
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_1_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_1_modifier }
			years_of_manpower = 1
		}
		effect = {
			add_yearly_manpower = -1
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_1_modifier
				duration = 3650
			}
			rce_export_yearly_religion_mechanic_nestorian_patriarchy_value_gain = yes
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				is_at_war = yes
			}
			modifier = {
				factor = 0
				NOT = { years_of_manpower = 5 }
			}
			modifier = {
				factor = 0
				NOT = { manpower_percentage = 0.75 }
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_2_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_2_modifier }
			if = {
				limit = {
					monthly_income = 417
				}
				treasury = 5000
			}
			else = {
				years_of_income = 1
			}
			OR = {
				tag = NPA
				NOT = { exists = NPA }
				AND = {
					NOT = { war_with = NPA }
					reverse_has_opinion = {
						who = NPA
						value = 150
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					monthly_income = 417
				}
				add_treasury = -5000
			}
			else = {
				add_years_of_income = -1
			}
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_2_modifier
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				religious_unity = 0.8
			}
			modifier = {
				factor = 0
				OR = {
					AND = {
						monthly_income = 417
						NOT = { treasury = 20000 }
					}
					AND = {
						NOT = { monthly_income = 417 }
						NOT = { years_of_income = 4 }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = { num_of_missionaries = 1 }
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_3_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_3_modifier }
			rce_religion_mechanic_nestorian_patriarchy_is_patriarchy_controller = yes
			dip_power_cost = 100
			any_known_country = {
				religion = ROOT
			}
		}
		effect = {
			dip_power_cost = 100
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_3_modifier
				duration = 3650
				desc = rce_religion_mechanic_nestorian_patriarchy_main_interaction_3_modifier_tt
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { dip_power = 500 }
			}
			modifier = {
				factor = 0
				NOT = {
					any_ally = {
						religion = ROOT
						NOT = {
							has_opinion = {
								who = ROOT
								value = 50
							}
						}
					}
				}
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_4_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_4_modifier }
			dip_power_cost = 50
			any_known_country = {
				religion_group = ROOT
				NOT = { religion = ROOT }
			}
		}
		effect = {
			dip_power_cost = 50
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_4_modifier
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { dip_power = 500 }
			}
			modifier = {
				factor = 0
				NOT = {
					any_ally = {
						religion_group = ROOT
						NOT = { religion = ROOT }
						NOT = {
							has_opinion = {
								who = ROOT
								value = 50
							}
						}
					}
				}
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_5_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_5_modifier }
			dip_power_cost = 50
			any_known_country = {
				NOT = { religion_group = ROOT }
			}
		}
		effect = {
			dip_power_cost = 50
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_5_modifier
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { dip_power = 500 }
			}
			modifier = {
				factor = 0
				NOT = {
					any_ally = {
						NOT = { religion_group = ROOT }
						NOT = {
							has_opinion = {
								who = ROOT
								value = 50
							}
						}
					}
				}
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_6_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_6_modifier }
			rce_religion_mechanic_nestorian_patriarchy_is_patriarchy_controller = yes
			mil_power_cost = 150
			any_known_country = {
				NOT = { religion_group = ROOT }
			}
		}
		effect = {
			mil_power_cost = 150
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_6_modifier
				duration = 1825
				desc = rce_religion_mechanic_nestorian_patriarchy_main_interaction_6_modifier_tt
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_interaction_6_modifier_tt_2
		}
		ai_will_do = {
			factor = 0
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_interaction_7_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_interaction_7_modifier }
			adm_power_cost = 100
			OR = {
				tag = NPA
				NOT = { exists = NPA }
				AND = {
					NOT = { war_with = NPA }
					reverse_has_opinion = {
						who = NPA
						value = 150
					}
				}
			}
		}
		effect = {
			adm_power_cost = 100
			add_country_modifier = {
				name = rce_religion_mechanic_nestorian_patriarchy_main_interaction_7_modifier
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { adm_power = 500 }
			}
			modifier = {
				factor = 0
				NOT = { corruption = 3 }
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_modifier }
			has_discovered = 151
			OR = {
				owns = 151
				employed_advisor = {
					category = ADM
				}
				employed_advisor = {
					category = DIP
				}
				employed_advisor = {
					category = MIL
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 151
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_1_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 151 }
					151 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_1_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 151 }
					151 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_1_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 151
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_1_modifier
							duration = 7300
							hidden = yes
						}
					}
				}
				else_if = {
					limit = {
						151 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_adm_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_dip_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_nestorian_mil_1_modifier
							duration = 7300
							hidden = yes
						}
					}
				}
				else = {
					if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_adm_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_adm_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_adm_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_adm_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = ADM
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_adm_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_dip_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_dip_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_dip_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_dip_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = DIP
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_dip_1_modifier
							duration = 7300
							hidden = yes
						}
					}
					if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 5
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_mil_5_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 4
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_mil_4_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 3
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_mil_3_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 2
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_mil_2_modifier
							duration = 7300
							hidden = yes
						}
					}
					else_if = {
						limit = {
							employed_advisor = {
								category = MIL
								skill = 1
							}
						}
						add_country_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_1_mil_1_modifier
							duration = 7300
							hidden = yes
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					NOT = {
						employed_advisor = {
							category = ADM
							skill = 2
						}
					}
					NOT = {
						employed_advisor = {
							category = DIP
							skill = 2
						}
					}
					NOT = {
						employed_advisor = {
							category = MIL
							skill = 2
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_at_war = yes
				employed_advisor = {
					category = MIL
					skill = 2
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 151 }
				151 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 151
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_modifier }
			has_discovered = 4293
			OR = {
				owns = 4293
				any_owned_province = {
					fort_level = 1
					any_neighbor_province = {
						owned_by = ROOT
					}
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 4293
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_2_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 4293 }
					4293 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_2_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 4293 }
					4293 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_2_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 4293
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							any_neighbor_province = {
								owned_by = ROOT
								fort_level = 1
							}
						}
						if = {
							limit = {
								calc_true_if = {
									amount = 2
									all_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
									}
								}
							}
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
										NOT = { fort_level = 2 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_1_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
										NOT = { fort_level = 3 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_2_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
										NOT = { fort_level = 4 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_3_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
										NOT = { fort_level = 5 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_4_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
										NOT = { fort_level = 6 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_5_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
										NOT = { fort_level = 7 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_6_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
										NOT = { fort_level = 8 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_7_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
										NOT = { fort_level = 9 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_8_multiple_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_9_multiple_modifier
									duration = 7300
								}
							}
						}
						else = {
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 9
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_9_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_8_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_7_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_6_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_5_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_4_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_3_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_2_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_1_modifier
									duration = 7300
								}
							}
						}
					}
				}
				else_if = {
					limit = {
						4293 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							any_neighbor_province = {
								owned_by = ROOT
								fort_level = 1
							}
						}
						if = {
							limit = {
								calc_true_if = {
									amount = 2
									all_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
									}
								}
							}
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
										NOT = { fort_level = 2 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_1_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
										NOT = { fort_level = 3 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_2_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
										NOT = { fort_level = 4 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_3_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
										NOT = { fort_level = 5 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_4_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
										NOT = { fort_level = 6 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_5_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
										NOT = { fort_level = 7 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_6_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
										NOT = { fort_level = 8 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_7_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
										NOT = { fort_level = 9 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_8_multiple_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_9_multiple_modifier
									duration = 7300
								}
							}
						}
						else = {
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 9
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_9_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_8_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_7_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_6_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_5_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_4_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_3_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_2_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_nestorian_fort_1_modifier
									duration = 7300
								}
							}
						}
					}
				}
				else = {
					every_owned_province = {
						limit = {
							any_neighbor_province = {
								owned_by = ROOT
								fort_level = 1
							}
						}
						if = {
							limit = {
								calc_true_if = {
									amount = 2
									all_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
									}
								}
							}
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 1
										NOT = { fort_level = 2 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_1_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
										NOT = { fort_level = 3 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_2_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
										NOT = { fort_level = 4 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_3_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
										NOT = { fort_level = 5 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_4_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
										NOT = { fort_level = 6 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_5_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
										NOT = { fort_level = 7 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_6_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
										NOT = { fort_level = 8 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_7_multiple_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
										NOT = { fort_level = 9 }
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_8_multiple_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_9_multiple_modifier
									duration = 7300
								}
							}
						}
						else = {
							if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 9
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_9_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 8
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_8_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 7
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_7_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 6
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_6_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 5
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_5_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 4
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_4_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 3
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_3_modifier
									duration = 7300
								}
							}
							else_if = {
								limit = {
									any_neighbor_province = {
										owned_by = ROOT
										fort_level = 2
									}
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_2_modifier
									duration = 7300
								}
							}
							else = {
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_2_province_fort_1_modifier
									duration = 7300
								}
							}
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 5
						fort_level = 1
						any_neighbor_province = {
							owned_by = ROOT
						}
					}
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 4293 }
				4293 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 4293
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_modifier }
			has_discovered = 700
			OR = {
				owns = 700
				any_owned_province = {
					province_religion = nestorian
					has_owner_culture = no
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 700
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_3_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 700 }
					700 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_3_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 700 }
					700 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_3_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 700
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_modifier
									duration = 7300
								}
							}
							if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = no
										NOT = { culture = event_target:culture_province_target }
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = no
										NOT = { culture = event_target:culture_province_target }
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_modifier
											duration = 7300
										}
									}
								}
							}
							else_if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
											duration = 7300
										}
									}
								}
							}
						}
					}
					else_if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
									duration = 7300
								}
							}
							if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
										NOT = { culture = event_target:culture_province_target }
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
										NOT = { culture = event_target:culture_province_target }
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
											duration = 7300
										}
									}
								}
							}
						}
					}
				}
				else_if = {
					limit = {
						700 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_modifier
									duration = 7300
								}
							}
							if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = no
										NOT = { culture = event_target:culture_province_target }
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = no
										NOT = { culture = event_target:culture_province_target }
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_modifier
											duration = 7300
										}
									}
								}
							}
							else_if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
											duration = 7300
										}
									}
								}
							}
						}
					}
					else_if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
									duration = 7300
								}
							}
							if = {
								limit = {
									any_owned_province = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
										NOT = { culture = event_target:culture_province_target }
									}
								}
								random_owned_province = {
									limit = {
										province_religion = nestorian
										has_owner_culture = no
										has_owner_accepted_culture = yes
										NOT = { culture = event_target:culture_province_target }
									}
									save_event_target_as = culture_province_target_2
								}
								if = {
									limit = {
										has_saved_event_target = culture_province_target_2
									}
									every_owned_province = {
										limit = {
											province_religion = nestorian
											culture = event_target:culture_province_target_2
										}
										add_province_modifier = {
											name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
											duration = 7300
										}
									}
								}
							}
						}
					}
				}
				else = {
					if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = no
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_modifier
									duration = 7300
								}
							}
						}
					}
					else_if = {
						limit = {
							any_owned_province = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
						}
						random_owned_province = {
							limit = {
								province_religion = nestorian
								has_owner_culture = no
								has_owner_accepted_culture = yes
							}
							save_event_target_as = culture_province_target
						}
						if = {
							limit = {
								has_saved_event_target = culture_province_target
							}
							every_owned_province = {
								limit = {
									province_religion = nestorian
									culture = event_target:culture_province_target
								}
								add_province_modifier = {
									name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_province_accepted_modifier
									duration = 7300
								}
							}
						}
					}
				}
				set_variable = { which = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_selected_culture_1 value = 0 }
				set_variable = { which = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_selected_culture_2 value = 0 }
				if = {
					limit = {
						has_saved_event_target = culture_province_target
					}
					event_target:culture_province_target = {
						ROOT = {
							export_to_variable = {
								which = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_selected_culture_1
								value = culture
								who = PREV
							}
						}
					}
					if = {
						limit = {
							has_saved_event_target = culture_province_target_2
						}
						event_target:culture_province_target_2 = {
							ROOT = {
								export_to_variable = {
									which = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_3_selected_culture_2
									value = culture
									who = PREV
								}
							}
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 15
						province_religion = nestorian
						has_owner_culture = no
					}
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 700 }
				700 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 700
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_modifier }
			has_discovered = 446
			OR = {
				owns = 446
				any_owned_province = {
					province_religion = nestorian
					custom_trigger_tooltip = {
						tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_button_tt_produced_goods_trigger
						OR = {
							trade_goods = salt
							trade_goods = copper
							trade_goods = iron
							trade_goods = gold
							AND = {
								is_expanded_mod_active = { mod = trade_goods }
								OR = {
									trade_goods = lead
									trade_goods = mercury
									trade_goods = tin
									trade_goods = silver
									trade_goods = zinc
								}
							}
						}
					}
					OR = {
						has_manpower_building_trigger = yes
						has_forcelimit_building_trigger = yes
					}
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 446
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_4_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 446 }
					446 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_4_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 446 }
					446 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_4_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 446
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_religion = nestorian
							OR = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							OR = {
								trade_goods = salt
								trade_goods = copper
								trade_goods = iron
								trade_goods = gold
								AND = {
									is_expanded_mod_active = { mod = trade_goods }
									OR = {
										trade_goods = lead
										trade_goods = mercury
										trade_goods = tin
										trade_goods = silver
										trade_goods = zinc
									}
								}
							}
						}
						if = {
							limit = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_nestorian_double_modifier
								duration = 7300
							}
						}
						else = {
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_nestorian_modifier
								duration = 7300
							}
						}
					}
				}
				else_if = {
					limit = {
						446 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_religion = nestorian
							OR = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							OR = {
								trade_goods = salt
								trade_goods = copper
								trade_goods = iron
								trade_goods = gold
								AND = {
									is_expanded_mod_active = { mod = trade_goods }
									OR = {
										trade_goods = lead
										trade_goods = mercury
										trade_goods = tin
										trade_goods = silver
										trade_goods = zinc
									}
								}
							}
						}
						if = {
							limit = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_nestorian_double_modifier
								duration = 7300
							}
						}
						else = {
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_nestorian_modifier
								duration = 7300
							}
						}
					}
				}
				else = {
					every_owned_province = {
						limit = {
							province_religion = nestorian
							OR = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							OR = {
								trade_goods = salt
								trade_goods = copper
								trade_goods = iron
								trade_goods = gold
								AND = {
									is_expanded_mod_active = { mod = trade_goods }
									OR = {
										trade_goods = lead
										trade_goods = mercury
										trade_goods = tin
										trade_goods = silver
										trade_goods = zinc
									}
								}
							}
						}
						if = {
							limit = {
								has_manpower_building_trigger = yes
								has_forcelimit_building_trigger = yes
							}
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_double_modifier
								duration = 7300
							}
						}
						else = {
							add_province_modifier = {
								name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_province_modifier
								duration = 7300
							}
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				manpower_percentage = 0.9
			}
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 5
						province_religion = nestorian
						custom_trigger_tooltip = {
							tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_4_button_tt_produced_goods_trigger
							OR = {
								trade_goods = salt
								trade_goods = copper
								trade_goods = iron
								trade_goods = gold
								AND = {
									is_expanded_mod_active = { mod = trade_goods }
									OR = {
										trade_goods = lead
										trade_goods = mercury
										trade_goods = tin
										trade_goods = silver
										trade_goods = zinc
									}
								}
							}
						}
						OR = {
							has_manpower_building_trigger = yes
							has_forcelimit_building_trigger = yes
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				NOT = { manpower_percentage = 0.5 }
			}
			modifier = {
				factor = 2
				NOT = { owns = 446 }
				446 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 446
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_modifier }
			has_discovered = 710
			OR = {
				owns = 710
				any_owned_province = {
					province_has_center_of_trade_of_level = 2
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 710
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_5_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 710 }
					710 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_5_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 710 }
					710 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_5_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 710
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_has_center_of_trade_of_level = 2
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_province_nestorian_modifier
							duration = 7300
						}
					}
				}
				else_if = {
					limit = {
						710 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_has_center_of_trade_of_level = 2
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_province_nestorian_modifier
							duration = 7300
						}
					}
				}
				else = {
					every_owned_province = {
						limit = {
							province_has_center_of_trade_of_level = 2
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_5_province_modifier
							duration = 7300
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 3
						province_has_center_of_trade_of_level = 2
					}
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 710 }
				710 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 710
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_modifier }
			has_discovered = 2313
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 2313
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_6_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 2313 }
					2313 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_6_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 2313 }
					2313 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_6_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 2313
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
				else_if = {
					limit = {
						2313 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_6_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_modifier }
			has_discovered = 558
			OR = {
				owns = 558
				any_owned_province = {
					province_religion = nestorian
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 558
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_7_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 558 }
					558 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_7_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 558 }
					558 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_7_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 558
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
				else_if = {
					limit = {
						558 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_7_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 5
						province_religion = nestorian
					}
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 558 }
				558 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 558
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_modifier }
			has_discovered = 2745
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 2745
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_8_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 2745 }
					2745 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_8_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 2745 }
					2745 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_8_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 2745
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
				else_if = {
					limit = {
						2745 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_8_nestorian_modifier
						duration = 7300
						hidden = yes
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				NOT = { owns = 2745 }
				2745 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 2745
			}
		}
	}

	rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_decision = {
		potential = {
			ai = yes
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
		}
		allow = {
			rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
			rce_has_religion_mechanic_nestorian_patriarchy_value = { value = 75 }
			NOT = { has_country_modifier = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_modifier }
			has_discovered = 1099
			OR = {
				owns = 1099
				any_owned_province = {
					province_religion = nestorian
					has_port = yes
				}
			}
		}
		effect = {
			rce_add_religion_mechanic_nestorian_patriarchy_value = { value = -75 }
			custom_tooltip = " "
			if = {
				limit = {
					owns = 1099
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_owned_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_9_modifier_desc_owned
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 1099 }
					1099 = {
						owner = {
							rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_nestorian_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_9_modifier_desc_nestorian
			custom_tooltip = " "
			if = {
				limit = {
					NOT = { owns = 1099 }
					1099 = {
						owner = {
							rce_not_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
						}
					}
				}
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_yes
			}
			else = {
				custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_button_tt_base_no
			}
			custom_tooltip = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_button_tt_modifier_effect
			custom_tooltip = string_rce_get_religion_mechanic_nestorian_patriarchy_holy_site_9_modifier_desc
			hidden_effect = {
				add_country_modifier = {
					name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_modifier
					duration = 7300
				}
				if = {
					limit = {
						owns = 1099
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_owned_modifier
						duration = 7300
						hidden = yes
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_religion = nestorian
							has_port = yes
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_province_nestorian_modifier
							duration = 7300
						}
					}
				}
				else_if = {
					limit = {
						1099 = {
							owner = {
								rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
							}
						}
					}
					add_country_modifier = {
						name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_nestorian_modifier
						duration = 7300
						hidden = yes
					}
					every_owned_province = {
						limit = {
							province_religion = nestorian
							has_port = yes
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_province_nestorian_modifier
							duration = 7300
						}
					}
				}
				else = {
					every_owned_province = {
						limit = {
							province_religion = nestorian
							has_port = yes
						}
						add_province_modifier = {
							name = rce_religion_mechanic_nestorian_patriarchy_main_holy_site_9_province_modifier
							duration = 7300
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				is_at_war = no
			}
			modifier = {
				factor = 0
				is_at_war = yes
				NOT = {
					any_war_enemy_country = {
						navy_size = 30
					}
				}
			}
			modifier = {
				factor = 2
				NOT = { owns = 1099 }
				1099 = {
					owner = {
						rce_uses_religion_mechanic = { mechanic = nestorian_patriarchy }
					}
				}
			}
			modifier = {
				factor = 3
				owns = 1099
			}
		}
	}
}