#######################
# written by Aetherum #
#######################

country_decisions = {
	
	austrian_culture = {
	    major = yes
		potential = {
		owns = 134 
		culture_group = germanic
		NOT = { primary_culture = austrian }
		}
		allow = {
		is_year = 400
		capital = 134 
		NOT = { primary_culture = austrian }
		}
		effect = {
			change_primary_culture = austrian
	    }
		ai_will_do = {
			factor = 1
		}
    }
	
	russian_culture = {
	    major = yes
		potential = {
		capital = 295
		NOT = { primary_culture = russian }
		}
		allow = {
		capital = 295
		}
		effect = {
		hidden_effect = {
				every_owned_province = {
					limit = {
						has_owner_culture = yes
					}
					change_culture = russian
				}
			}
			change_primary_culture = russian
	    }
		ai_will_do = {
			factor = 1
		}
    }
	
	two_sons1 = {
		potential = {
		ai = no
		has_country_modifier = two_sons
		}
		allow = {
		has_country_modifier = two_sons
		years_of_income = 1
		}
		effect = {
		add_years_of_income = -1
		remove_country_modifier = two_sons
		random_owned_province = { 
		limit = { NOT = { has_province_modifier = domain_of_spouses_family } }
			add_province_modifier = {
				name = "domain_of_spouses_family"
				duration = 9125
			}
		}
	    }
    }
	
	three_sons1 = {
		potential = {
		ai = no
		has_country_modifier = three_sons
		}
		allow = {
		has_country_modifier = three_sons
		years_of_income = 1
		}
		effect = {
		add_years_of_income = -1
		remove_country_modifier = three_sons
		add_country_modifier = {
				name = "two_sons"
				duration = -1
			}
		random_owned_province = { 
		limit = { NOT = { has_province_modifier = domain_of_spouses_family } }
			add_province_modifier = {
				name = "domain_of_spouses_family"
				duration = 9125
			}
		}
		}
    }
	
	ge_eastern_technology_reform = {
		major = yes
		potential = {
			technology_group = eastern
		}
		allow = {
			is_at_war = no
			adm_tech = 19
			adm_power = 100
			NOT = { government = tribal }
			OR = {
			owns = 134
			owns = 118
			owns = 50
			owns = 266
			owns = 183
			owns = 236
			owns = 219
			owns = 85
			owns = 97
			owns = 1
			}
		}
		effect = {
		add_adm_power = -100
		add_stability = -1
		change_technology_group = western
		change_unit_type = western
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	ge_fund_norse_explorers = {
		potential = {
		    ai = no
		    any_owned_province = {
			    region = scandinavia_region
			}
			OR = {
				culture_group = scandinavian
				accepted_culture = swedish
				accepted_culture = danish
				accepted_culture = norwegian
			}
			NOT = { has_country_modifier = norse_exploration }
			NOT = { has_idea_group = exploration_ideas }
			NOT = { is_year = 1353 }
		}
		allow = {
			num_of_ports = 1
			years_of_income = 1.0
			dip_power = 100
		}
		effect = {
			add_dip_power = -100
			add_years_of_income = -1.0
			add_country_modifier = {
				name = "norse_exploration"
				duration = 1825
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	ge_fund_norse_colonists = {
		potential = {
		    ai = no
			any_owned_province = {
			    region = scandinavia_region
			}
			OR = {
			culture_group = scandinavian
			accepted_culture = swedish
			accepted_culture = danish
			accepted_culture = norwegian
			}
			NOT = { has_country_modifier = norse_colonization }
			NOT = { has_idea_group = exploration_ideas }
			NOT = { has_idea_group = expansion_ideas }
			NOT = { is_year = 1353 }
		}
		allow = {
			num_of_ports = 1
			years_of_income = 2.5
			dip_power = 250
			NOT = { has_idea_group = exploration_ideas }
			NOT = { has_idea_group = expansion_ideas }
		}
		effect = {
			add_dip_power = -250
			add_years_of_income = -2.5
			add_country_modifier = {
				name = "norse_colonization"
				duration = 1825
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
}