country_decisions = {
#Civic
	licensing_of_the_press_act = {
	#printing press control (no free speach)
		potential = {
			not = {
				has_country_modifier = the_licensing_of_the_press_act
				has_country_flag = licensing_press_no
				tag = BUC
			}
			or = {
				technology_group = latin
				technology_group = eastern
			}
			year = 1439
			innovative_narrowminded = 1

		}
		allow = {
			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
			modifier = {
				factor = 0.0
				serfdom_freesubjects = 1
			}
			modifier = {
				factor = 0.0
				NOT = { 
					has_country_flag = Corruption1
					has_country_flag = Corruption2
					has_country_flag = Corruption3
				}
			}
		}
	}
	licensing_press_no = {
		potential = {
			not = {
				has_country_modifier = the_licensing_of_the_press_act
				has_country_flag = licensing_press_no
				tag = BUC
			}
			or = {
				technology_group = latin
				technology_group = eastern
			}
			year = 1439
			innovative_narrowminded = 1

		}
		allow = {
			adm = 7
		}
		effect = {
			set_country_flag = licensing_press_no			
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = { serfdom_freesubjects = 0 }
			}
			modifier = {
				factor = 0.0
				OR = {
					has_country_flag = Corruption1
					has_country_flag = Corruption2
					has_country_flag = Corruption3
				}
			}
		}
	}
	tenures_abolition_act = {
		potential = {
			not = {
				has_country_modifier = the_tenures_abolition_act
				has_country_flag = tenures_abolition_act_no
				tag = BUC
			}
			government = feudal_monarchy
			government_tech = 8
		}
		allow = {
			not = { centralization_decentralization = -2 }
			not = { serfdom_freesubjects = -2 }
			dip = 7
		}
		effect = {
			serfdom_freesubjects = 1
			innovative_narrowminded = -1
			add_country_modifier = {
				name = "the_tenures_abolition_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				innovative_narrowminded = 1
			}
		}
	}
	tenures_abolition_act_no = {
		potential = {
			not = {
				has_country_modifier = the_tenures_abolition_act
				has_country_flag = tenures_abolition_act_no
				tag = BUC
			}
			government = feudal_monarchy
			government_tech = 8
		}
		allow = {
			not = { centralization_decentralization = -2 }
			not = { serfdom_freesubjects = -2 }
			dip = 7
		}
		effect = {
			set_country_flag = tenures_abolition_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = { innovative_narrowminded = 0 }
			}
		}
	}
	dissolution_act = {
		potential = {
			not = {
				has_country_modifier = the_dissolution_act
				has_country_flag = dissolution_act_no
				tag = BUC
			}
			government = monarchy
			or = {
				technology_group = latin
				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
			modifier = {
				factor = 0.0
				NOT = { serfdom_freesubjects = 0 }
			}
		}
	}
	dissolution_act_no = {
		potential = {
			not = {
				has_country_modifier = the_dissolution_act
				has_country_flag = dissolution_act_no
				tag = BUC
			}
			government = monarchy
			or = {
				technology_group = latin
				technology_group = eastern
			}
			government_tech = 8
		}
		allow = {
			not = { centralization_decentralization = -2 }
			dip = 5
			advisor = statesman
		}
		effect = {
			set_country_flag = dissolution_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				serfdom_freesubjects = 1
			}
		}
	}
	statue_in_restraint_of_appeals = {
		potential = {
			not = {
				has_country_modifier = the_statue_in_restraint_of_appeals
				has_country_flag = restraint_of_appeals_no
			}
			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
			modifier = {
				factor = 0.0
				any_neighbor_country = {
					religion = catholic
					relation = { who = this value = 0 }
				}
			}
		}
	}
	restraint_of_appeals_no = {
		potential = {
			not = {
				has_country_modifier = the_statue_in_restraint_of_appeals
				has_country_flag = restraint_of_appeals_no
			}
			religion = catholic
			exists = PAP
			not = { dip = 7 }
		}
		allow = {
			not = { relation = { who = PAP value = 0 } }
			adm = 5
			mil = 5
		}
		effect = {
			set_country_flag = restraint_of_appeals_no		
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = {
					any_neighbor_country = {
						religion = catholic
						relation = { who = this value = 0 }
					}
				}
			}
			modifier = {
				factor = 0.0
				OR = {
					tag = ENG
					tag = GBR
				}
			}
		}
	}
	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
			relation = { who = PAP value = 50 }
		}
		effect = {
			remove_country_modifier = the_statue_in_restraint_of_appeals
			relation = { who = PAP value = 50 }			
		}
		ai_will_do = {
			factor = 1
		}
	}
	education_act = {
		potential = {
			government_tech = 16
			not = {
				innovative_narrowminded = 0
				technology_group = african
				technology_group = new_world
				has_country_modifier = the_education_act
				has_country_flag = education_act_no
			}
		}
		allow = {
			statesman = 5
			adm = 7
		}
		effect = {
			innovative_narrowminded = -1
			add_country_modifier = {
				name = "the_education_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				innovative_narrowminded = 1
			}
		}
	}
	education_act_no = {
		potential = {
			government_tech = 16
			not = {
				innovative_narrowminded = 0
				technology_group = african
				technology_group = new_world
				has_country_modifier = the_education_act
				has_country_flag = education_act_no
			}
		}
		allow = {
			statesman = 5
			adm = 7
		}
		effect = {
			set_country_flag = education_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = {
					innovative_narrowminded = 0
				}
			}
			modifier = {
				factor = 0.0
				OR = {
					tag = ENG
					tag = GBR
					tag = SCO
				}
			}
		}
	}
	judiciary_act = {
		potential = {
			not = {
				has_country_modifier = the_judiciary_act
				has_country_flag = judiciary_act_no
				tag = BUC
				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
			modifier = {
				factor = 0.0
				NOT = { serfdom_freesubjects = 0 }
			}
		}
	}
	judiciary_act_no = {
		potential = {
			not = {
				has_country_modifier = the_judiciary_act
				has_country_flag = judiciary_act_no
				tag = BUC
				centralization_decentralization = -2
			}
			government_tech = 20
		}
		allow = {
			adm = 7
			capital_scope = {
				has_building = courthouse
				has_building = constable
			}
		}
		effect = {
			set_country_flag = judiciary_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				serfdom_freesubjects = 1
			}
		}
	}	
#Colonial
	#
#economic
	merchant_shipping_act = {
		potential = {
			num_of_ports = 1
			idea = merchant_adventures
			not = {
				has_country_modifier = the_merchant_shipping_act
				has_country_flag = merchant_shipping_act_no
			}
		}
		allow = {
			idea = national_trade_policy
			trade_efficiency = 0.5
		}
		effect = {
			mercantilism_freetrade = -1
			add_country_modifier = {
				name = "the_merchant_shipping_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = { land_naval = 1 }
			}
		}
	}
	merchant_shipping_act_no = {
		potential = {
			num_of_ports = 1
			idea = merchant_adventures
			not = {
				has_country_modifier = the_merchant_shipping_act
				has_country_flag = merchant_shipping_act_no
			}
		}
		allow = {
			idea = national_trade_policy
			trade_efficiency = 0.5
		}
		effect = {
			set_country_flag = merchant_shipping_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				land_naval = 1
			}
		}
	}
	importation_act = {
		potential = {
			or = {
				idea = national_trade_policy
				idea = shrewd_commerce_practise
			}
			num_of_cots = 1
			not = {
				has_country_modifier = the_importation_act
				has_country_flag = importation_act_no
				tag = BUC
			}
		}
		allow = {
			or = {
				idea = national_trade_policy
				idea = shrewd_commerce_practise
			}
			production_efficiency = 0.5
		}
		effect = {
			mercantilism_freetrade = -1
			add_country_modifier = {
				name = "the_importation_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				mercantilism_freetrade = 1
			}
		}
	}
	importation_act_no = {
		potential = {
			or = {
				idea = national_trade_policy
				idea = shrewd_commerce_practise
			}
			num_of_cots = 1
			not = {
				has_country_modifier = the_importation_act
				has_country_flag = importation_act_no
				tag = BUC
			}
		}
		allow = {
			or = {
				idea = national_trade_policy
				idea = shrewd_commerce_practise
			}
			production_efficiency = 0.5
		}
		effect = {
			set_country_flag = importation_act_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = { mercantilism_freetrade = 0 }
			}
		}
	}
#government
	imperial_administration = {
		potential = {
			OR = {
				technology_group = latin
				technology_group = eastern
				technology_group = muslim
			}
			OR = {
				government = feudal_monarchy
				government = despotic_monarchy
			}
			not = {
				tag = BUC
				has_country_flag = imperial_administration_no
			}
		}
		allow =  {
			stability = 1
			num_of_cities = 30
			war = no 
			is_subject = false
		}
	  	effect = {
			government = imperial_government
			stability = -3
			prestige = 0.05
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				religion = catholic
			}
			modifier = {
				factor = 0
				religion = protestant
			}
			modifier = {
				factor = 0
				religion = reformed
			}
		}
	}
	imperial_administration_no = {
		potential = {
			OR = {
				technology_group = latin
				technology_group = eastern
				technology_group = muslim
			}
			OR = {
				government = feudal_monarchy
				government = despotic_monarchy
			}
			not = {
				tag = BUC
				has_country_flag = imperial_administration_no
			}
		}
		allow =  {
			stability = 1
			num_of_cities = 30
			war = no 
			is_subject = false
		}
	  	effect = {
			set_country_flag = imperial_administration_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					religion = catholic
				}
			}
			modifier = {
				factor = 0
				NOT = {
					religion = protestant
				}
			}
			modifier = {
				factor = 0
				NOT = {
					religion = reformed
				}
			}
		}
	}
#Indian Trade / economy
	indian_trade_company = {
		potential = {
			NOT = {
				has_country_flag = trade_company
				has_country_flag = trade_company_no
			}
			religion_group = christian
			capital_scope = {
				continent = europe
			}
			eastasian_trade_ports = {
				has_discovered = THIS
			}
		}
		allow = {
			num_of_ports = 2
			eastasian_trade_ports = {
				owned_by = THIS
			}
		}
		effect = {
			set_country_flag = trade_company
			treasury = 200
			merchants = 1
			random_owned = {
				limit = {
					continent = europe
					port = yes
					NOT = { has_building = shipyard }
					is_core = this
				}
				add_building = shipyard
			}
			add_country_modifier = {
				name = "india_trade_co"
				duration = -1
			}			
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				tag = NED
			}
			modifier = {
				factor = 0
				NOT = { land_naval = 0 }
			}
		}
	}
	indian_trade_company_no = {
		potential = {
			NOT = {
				has_country_flag = trade_company
				has_country_flag = trade_company_no
			}
			religion_group = christian
			capital_scope = {
				continent = europe
			}
			eastasian_trade_ports = {
				has_discovered = THIS
			}
		}
		allow = {
			num_of_ports = 2
			eastasian_trade_ports = {
				owned_by = THIS
			}
		}
		effect = {
			set_country_flag = trade_company_no			
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				tag = NED
			}
			modifier = {
				factor = 0
				land_naval = 1
			}
		}
	}
	joint_stock_companies_act = {
		potential = {
			has_country_flag = trade_company
			year = 1700
			not = { has_country_modifier = the_joint_stock_companies_act }
		}
		allow = {
			trade_efficiency = 0.5
			or = {
				trade_income_percentage = 0.4
				monthly_income = 100
			}
		}
		effect = {
			mercantilism_freetrade = -1
			add_country_modifier = {
				name = "the_joint_stock_companies_act"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
#Military
	#
#trade
	close_foreign_trade = {
		potential = {
			any_known_country = {
				technology_group = latin
			}
			not = {
				has_country_modifier = condemn_western_influences
				has_country_flag = close_foreign_trade_no
				technology_group = latin
			}
		}
		allow = {
			any_known_country = {
				technology_group = latin
				not = { relation = { who = this value = 0 } }
			}
			mil = 6
		}
		effect = {
			innovative_narrowminded = 1
			mercantilism_freetrade = -1
			add_country_modifier = {
				name = "condemn_western_influences"
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				OR = {
					idea = merchant_adventures
					idea = shrewd_commerce_practise
					idea = national_trade_policy
					has_country_flag = hanseatic_league
				}
			}
		}
	}
	close_foreign_trade_no = {
		potential = {
			any_known_country = {
				technology_group = latin
			}
			not = {
				has_country_modifier = condemn_western_influences
				has_country_flag = close_foreign_trade_no
				technology_group = latin
			}
		}
		allow = {
			any_known_country = {
				technology_group = latin
				not = { relation = { who = this value = 0 } }
			}
			mil = 6
		}
		effect = {
			set_country_flag = close_foreign_trade_no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = {
					idea = merchant_adventures
					idea = shrewd_commerce_practise
					idea = national_trade_policy
					has_country_flag = hanseatic_league
				}
			}
		}
	}
#Colonization Treaty
	colonization_treaty = {
		potential = {
			not = {
				tag = BUC
				has_country_flag = Colonization_Treaty
				has_country_flag = Colonization_Treaty_no
			}
			year = 1500
			or = {
				technology_group = latin
				technology_group = eastern
				technology_group = muslim
			}
			capital_scope = {
				continent = europe
			}
		}
		allow =  {
			num_of_ports = 1
			overseas_provinces_percentage = 0.01
		}
		effect = {
			set_country_flag = Colonization_Treaty			
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				NOT = { idea = quest_for_the_new_world }
			}
			modifier = {
				factor = 0.0
				NOT = {
					tag = ENG
					tag = GBR
					tag = CAS
					tag = SPA
					tag = FRA
					tag = FRE
					tag = NED
					tag = POR
				}
			}
		}
	}
	colonization_treaty_no = {
		potential = {
			not = {
				tag = BUC
				has_country_flag = Colonization_Treaty
				has_country_flag = Colonization_Treaty_no
			}
			year = 1500
			or = {
				technology_group = latin
				technology_group = eastern
				technology_group = muslim
			}
			capital_scope = {
				continent = europe
			}
		}
		allow =  {
			num_of_ports = 1
			overseas_provinces_percentage = 0.01
		}
		effect = {
			set_country_flag = Colonization_Treaty_no			
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.0
				idea = quest_for_the_new_world
			}
			modifier = {
				factor = 0.0
				OR = {
					tag = ENG
					tag = GBR
					tag = CAS
					tag = SPA
					tag = FRA
					tag = FRE
					tag = NED
					tag = POR
				}
			}
		}
	}
}
