country_decisions = {

	licensing_of_the_press_act = {
		potential = {
			not = { has_country_modifier = the_licensing_of_the_press_act }
			or = {
				technology_group = western
				technology_group = eastern
			}
			year = 1439
			innovative_narrowminded = 1

		}
		allow = {
			not = { serfdom_freesubjects = 0 }
			adm = 7
		}
		effect = {
			innovative_narrowminded = 1
			serfdom_freesubjects = -1
			add_country_modifier = {
				name = "the_licensing_of_the_press_act"
				duration = -1
			}			
		}
		ai_will_do = {
			factor = 1
		}
	}
	tenures_abolition_act = {
		potential = {
			not = { has_country_modifier = the_tenures_abolition_act }
			government = feudal_monarchy
			government_tech = 8
		}
		allow = {
			not = { centralization_decentralization = -2 }
			not = { serfdom_freesubjects = -2 }
			dip = 7
		}
		effect = {
			serfdom_freesubjects = 2
			innovative_narrowminded = -1
			add_country_modifier = {
				name = "the_tenures_abolition_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	dissolution_act = {
		potential = {
			not = { has_country_modifier = the_dissolution_act }
			government = monarchy
			or = {
				technology_group = western
				technology_group = eastern
			}
			government_tech = 8
		}
		allow = {
			not = { centralization_decentralization = -2 }
			dip = 5
			advisor = statesman
		}
		effect = {
			serfdom_freesubjects = 1
			badboy = -3
			add_country_modifier = {
				name = "the_dissolution_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	statue_in_restraint_of_appeals = {
		potential = {
			not = { has_country_modifier = the_statue_in_restraint_of_appeals }
			religion = catholic
			exists = PAP
			not = { dip = 7 }
		}
		allow = {
			not = { relation = { who = PAP value = 0 } }
			adm = 5
			mil = 5
		}
		effect = {
			prestige = 0.1
			any_neighbor_country = {
				limit = { religion = catholic }
				relation = { who = this value = -60 }
			}
			PAP = { relation = { who = this value = -100 } }
			add_country_modifier = {
				name = "the_statue_in_restraint_of_appeals"
				duration = -1
			}			
		}
		ai_will_do = {
			factor = 1
			# England
		}
	}
	witchcraft_act = {
		potential = {
			not = { has_country_modifier = the_witchcraft_act }
			religion_group = christian
			idea = church_attendance_duty
			year = 1500
			not = { year = 1700 }
		}
		allow = {
			theologian = 5
			innovative_narrowminded = 2
		}
		effect = {
			innovative_narrowminded = 1
			add_country_modifier = {
				name = "the_witchcraft_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 0
			# Germany, England
		}
	}
	education_act = {
		potential = {
			has_country_modifier = the_school_establishment_act
			not = { has_country_modifier = the_education_act }
			religion_group = christian
			not = { innovative_narrowminded = 0 }
		}
		allow = {
			statesman = 5
			adm = 7
		}
		effect = {
			innovative_narrowminded = -1
			add_country_modifier = {
				name = "the_education_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			# England, Scotland
		}
	}
	abolish_slavery_act = {
		potential = {
			not = { has_country_modifier = the_abolish_slavery_act }
			slaves = 1
			year = 1700
			government_tech = 30
		}
		allow = {
			dip = 6
			not = { badboy = 0.1 }
		}
		effect = {
			prestige = 0.05
			innovative_narrowminded = -1
			add_country_modifier = {
				name = "the_abolish_slavery_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	judiciary_act = {
		potential = {
			not = { has_country_modifier = the_judiciary_act }
			not = { centralization_decentralization = -2 }
			government_tech = 20
		}
		allow = {
			adm = 7
			capital_scope = {
				has_building = courthouse
				has_building = constable
			}
		}
		effect = {
			add_country_modifier = {
				name = "the_judiciary_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	combination_act = {
		potential = {
			year = 1750
			not = { has_country_modifier = the_combination_act }
			not = { serfdom_freesubjects = -2 }
			not = { idea = humanist_tolerance }
		}
		allow = {
			innovative_narrowminded = 2
			adm = 6
		}
		effect = {
			mercantilism_freetrade = -1
			add_country_modifier = {
				name = "the_combination_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	school_establishment_act = {
		potential = {
			not = { has_country_modifier = the_school_establishment_act }
			government_tech = 16
		}
		allow = {
			not = { innovative_narrowminded = -2 }
			capital_scope = { has_building = university }
		}
		effect = {
			add_country_modifier = {
				name = "the_school_establishment_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	revoke_restraint_of_appeals = {
		potential = {
			has_country_modifier = the_statue_in_restraint_of_appeals
			not = { has_country_modifier = revocation_of_restraint_of_appeals }
			religion = catholic
			exists = PAP
		}
		allow = {
			dip = 7
			advisor = theologian
		}
		effect = {
			remove_country_modifier = the_statue_in_restraint_of_appeals
			relation = { who = PAP value = 50 }
			add_country_modifier = {
				name = "revocation_of_restraint_of_appeals"
				duration = -1
			}			
		}
		ai_will_do = {
			factor = 1
		}
	}
}

province_decisions = {
	land_enclosure = {
		potential = {
			owner = { government_tech = 10 }
			not = { has_province_modifier = land_inclosure }
			not = { any_neighbor_province = { has_province_modifier = land_inclosure } }
			
		}
		allow = {
			owner = { 
				adm = 6
				officials = 2
			}
			base_tax = 5
		}
		effect = {
			add_province_modifier = {
				name = "land_inclosure"
				duration = -1				
			}
			owner = {
				officials = -2
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				nationalism = 1
			}
			modifier = {
				factor = 0.0
				revolt_risk = 2
			}
			modifier = {
				factor = 0.0
				has_owner_religion = no
			}
		}
	}
	spy_agency = {
		potential = {
			owner = {
				government_tech = 20
				badboy = 0.15
				not = { has_country_flag = has_intelligence_agency }
			}
			not = { has_province_modifier = spy_agencies }
			any_neighbor_province = { not = { owned_by = this } }
		}
		allow = {
			owner = { 
				OR = {
					advisor = spymaster 
					advisor = inquisitor
				}
				officials = 3
			}
		}
		effect = {
			owner = { 
				set_country_flag = has_intelligence_agency 
				officials = -3
			}
			add_province_modifier = {
				name = "spy_agencies"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	yearly_provincial_festival = {
		potential = {
			not = { has_province_modifier = provincial_festivals }
			owner = { war = no }
			is_colony = no
			is_core = this
			not = { any_neighbor_province = { has_province_modifier = provincial_festivals } }
			not = { any_neighbor_province = { is_capital = yes } }
		}
		allow = {
			base_tax = 7
			owner = {
				stability = 1
				treasury = 50
				officials = 2
			}
		}
		effect = {
			owner = { 
				treasury = -50
				officials = -2
			}
			add_province_modifier = {
				name = "provincial_festivals"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				owner = { not = { treasury = 100 } }
			}
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				NOT = { revolt_risk = 3 }
			}
			modifier = {
				factor = 0.0
				nationalism = 2 # Modifiers don't affect this minimum revolt risk
			}
		}
	}
	provincial_court_system = {
		potential = {
			not = { has_province_modifier = provincial_court_systems }
			owner = { government_tech = 15 }
			not = { any_neighbor_province = { has_province_modifier = provincial_court_systems } }
			not = { any_neighbor_province = { is_capital = yes } }
			is_core = this
		}
		allow = {
			has_building = courthouse
			owner = { 
				treasury = 40 
				officials = 1
			}
		}
		effect = {
			owner = { 
				treasury = -40
				officials = -1
			}
			add_province_modifier = {
				name = "provincial_court_systems"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				owner = { not = { treasury = 90 } }
			}
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				NOT = { revolt_risk = 3 }
			}
			modifier = {
				factor = 0.0
				nationalism = 2 # Modifiers don't affect this minimum revolt risk
			}
		}
	}
	town_hall = {
		potential = {
			not = { has_province_modifier = city_hall }
			owner = { idea = cabinet }
			is_capital = yes
		}
		allow = {
			owner = {
				or = {
					adm = 6
					advisor = statesman
				}
				officials = 1
			}
		}
		effect = {
			add_province_modifier = {
				name = "city_hall"
				duration = -1
			}
			owner = {
				officials = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				has_owner_culture = yes
			}
			modifier = {
				factor = 0.0
				has_owner_religion = yes
			}
			modifier = {
				factor = 0.0
				is_core = THIS
			}
			modifier = {
				factor = 0.0
				NOT = { revolt_risk = 8 }
			}
		}
	}
	
	embassy = {
		potential = {	
			owner = { not = { has_country_flag = established_embassy } }
			any_neighbor_province = {
				not = { owned_by = this }
				owner = { relation = { who = this value = 0 } }
			}
		}
		allow = {
			owner = { 
				dip = 6 
				officials = 1
			}
		}
		effect = {
			owner = { 
				set_country_flag = established_embassy
				officials = -1
				}
			random_neighbor_province = {
				limit = { not = { owned_by = this } }
				owner = { 
					relation = { 
						who = this 
						value = 50 
					} 
				}
			}
			add_province_modifier = {
				name = "embassies"
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
}
