namespace = FEE_HRE_Minors
country_event = {
	id = FEE_HRE_Minors.1
	title = FEE_HRE_Minors.1.T
	desc = FEE_HRE_Minors.1.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		is_year = 1485
		NOT = {
			is_year = 1530
		}
		owns_core_province = 67
		OR = {
			67 = {
				is_prosperous = yes
			}
			stability = 2
		}
		NOT = { num_of_loans = 1 }
		NOT = {
			any_owned_province = {
				unrest = 1
			}
		}
	}
	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.5
			OR = {
				has_estate_privilege = estate_burghers_patronage_of_the_arts
				has_estate_privilege = estate_vaisyas_patronage_of_the_arts				# im adding this 90% so I remember that the same privledge can exist between many estates
			}
		}
		modifier = {
			factor = 0.8
			religious_ideas = 4
		}
	}
	option = {
		name = FEE_HRE_Minors.1.OPT1
		define_advisor = {
			type = artist
			name = "Albrecht Durer"
			skill = 2
			culture = franconian
			cost_multiplier = 0.25
		}
		add_country_modifier = {
			name = FEE_HRE_Minor_Durer
			duration = 7300
		}
	}
}

country_event = {
	id = FEE_HRE_Minors.2
	title = FEE_HRE_Minors.2.T
	desc = FEE_HRE_Minors.2.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		is_elector = yes
		is_emperor = no
		NOT = {
			religion = hussite
		}
		has_institution = renaissance
	}
	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.6
			has_idea_group = humanist_ideas
		}
	}
	option = {
		name = FEE_HRE_Minors.2.OPT1
		add_country_modifier = {
			name = FEE_HRE_Minor_Tolerance_of_Jews
			duration = 18250
		}
	}
	option = {
		name = FEE_HRE_Minors.2.OPT2
		add_country_modifier = {
			name = FEE_HRE_Minor_Expulsion_of_Jews
			duration = 7300
		}
		add_inflation = 3
		add_years_of_income = 0.25
	}
	option = {
		name = FEE_HRE_Minors.2.OPT3
		trigger = {
			OR = {
				has_idea_group = humanist_ideas
				ruler_has_personality = tolerant_personality
			}
		}
		if = {
			limit = {
				num_of_owned_provinces_with = {
					value = 2
				}
			}
			random_owned_province = {
				limit = {
					is_capital = no
				}
				change_religion = jewish
			}
		}
		add_country_modifier = {
			name = FEE_HRE_Minor_Jewish_Refuge
			duration = 18250
		}
		ai_chance = {
			factor = 100
		}
	}
}

country_event = {
	id = FEE_HRE_Minors.3
	title = FEE_HRE_Minors.3.T
	desc = FEE_HRE_Minors.3.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		is_emperor = Yes
		religion = catholic
		any_elector = {
			religion = protestant
		}
		hre_leagues_enabled = no
		hre_religion_locked = no
		hre_religion_treaty = no
	}
	major = Yes
	mean_time_to_happen = {
		months = 6
	}
	option = {
		name = FEE_HRE_Minors.3.OPT1
		add_reform_desire = 0.05
		random_elector = {
			limit = {
				religion = protestant
			}
			country_event = {
				id = FEE_HRE_Minors.6
			}
		}
	}
	option = {
		name = FEE_HRE_Minors.3.OPT2
		add_reform_desire = 0.03
		1761 = {
			add_reform_center = protestant
		}
	}
}

country_event = {
	id = FEE_HRE_Minors.4
	title = FEE_HRE_Minors.4.T
	desc = FEE_HRE_Minors.4.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		any_owned_province = {
			is_institution_origin = printing_press
		}
		is_year = 1550
		NOT = {
			is_year = 1560
		}
		innovativeness_ideas = 3
	}

	option = {
		name = FEE_HRE_Minors.4.OPT1
		define_advisor = {
			type = natural_scientist
			name = "Johannes Gutenburg"
			skill = 3
			culture = hessian
			cost_multiplier = 0.5
		}
		add_innovativeness_or_monarch_power = {
			amount = 5
			adm = 50
			dip = 50
			mil = 50
		}
		add_adm_power = 100
	}
}

country_event = {
	id = FEE_HRE_Minors.5
	title = FEE_HRE_Minors.5.T
	desc = FEE_HRE_Minors.5.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	major = yes
	trigger = {
		is_year = 1520
		NOT = {
			is_year = 1600
		}
		is_elector = yes
		exists = SPA
	}
	mean_time_to_happen = {
		months = 200
	}
	option = {
		name = FEE_HRE_Minors.5.OPT1
		every_country = {
			limit = {
				capital_scope = {
					OR = {
						region = north_german_region
						region = south_german_region
					}
				}
			}
			add_country_modifier = {
				name = FEE_HRE_Minors_German_Economic_Depression
				duration = 21900
			}
		}
		add_stability = -1
	}
}

country_event = {
	id = FEE_HRE_Minors.6
	title = FEE_HRE_Minors.6.T
	desc = FEE_HRE_Minors.6.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = FEE_HRE_Minors.6.OPT1
		define_advisor = {
			type = theologian
			name = "Martin Luther"
			skill = 3
			culture = saxon
			religion = protestant
			cost_multiplier = 0.25
		}
	}
	option = {
		name = FEE_HRE_Minors.6.OPT2
		add_country_modifier = {
			name = FEE_HRE_Minors_Martin_Luther_in_Hiding
			duration = 3650
		}
	}
}

country_event = {
	id = FEE_HRE_Minors.7
	title = FEE_HRE_Minors.7.T
	desc = FEE_HRE_Minors.7.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		is_emperor = no
		is_elector = yes
		OR = {
			naval_ideas = 3
			maritime_ideas = 3
		}
		emperor = {
			land_forcelimit = 100
		}
		num_of_heavy_ship = 10
	}
	mean_time_to_happen = {
		months = 12
	}
	option = {
		name = FEE_HRE_Minors.7.OPT1
		create_alliance = emperor
		add_opinion = {
			who = emperor
			modifier = FEE_HRE_Minor_Imperial_Navy_Opinion_Modifier
		}
		reverse_add_opinion = {
			who = emperor
			modifier = FEE_HRE_Minor_Imperial_Navy_Opinion_Modifier
		}
		add_country_modifier = {
			name = FEE_HRE_Minors_Imperial_Patronage
			duration = -1
		}
		add_prestige_or_monarch_power = { amount = 10 }
	}
	option = {
		name = FEE_HRE_Minors.7.OPT2
		add_opinion = {
			who = emperor
			modifier = FEE_HRE_Minor_Imperial_Navy_Malus_Opinion_Modifier
		}
		reverse_add_opinion = {
			who = emperor
			modifier = FEE_HRE_Minor_Imperial_Navy_Malus_Opinion_Modifier
		}
		add_country_modifier = {
			name = FEE_HRE_Minors_Independent_Navy
			duration = -1
		}
	}
}

country_event = {
	id = FEE_HRE_Minors.8
	title = FEE_HRE_Minors.8.T
	desc = FEE_HRE_Minors.8.D
	picture = ADVISOR_eventPicture
	fire_only_once = yes
	trigger = {
		is_part_of_hre = yes
		OR = {
			has_idea_group = economic_ideas
			has_idea_group = innovativeness_ideas
		}
		calc_true_if = {
			all_owned_province = {
				OR = {
					area = palatinate_area
					area = north_rhine_area
					area = lower_rhineland_area
				}
			}
			amount = 5
		}
		NOT = {
			total_development = 500
		}
		any_owned_province = {
			development = 30
			OR = {
				has_building = mills
				has_building = farm_estate
				has_building = tradecompany
				has_building = plantations
				has_building = textile
				has_building = weapons
				has_building = wharf
				has_building = furnace
			}
		}
		any_owned_province = {
			has_building = furnace
		}
	}
	mean_time_to_happen = {
		months = 120
	}
	option = {
		name = FEE_HRE_Minors.8.OPT1
		trigger = {
			has_idea_group = economic_ideas
		}
		add_country_modifier = {
			name = FEE_HRE_Minor_Economic_Ambition
			duration = 7300
		}
		add_stability = -1
	}
	option = {
		name = FEE_HRE_Minors.8.OPT2
		trigger = {
			has_idea_group = innovativeness_ideas
		}
		add_country_modifier = {
			name = FEE_HRE_Minor_Technological_Leadership
			duration = 7300
		}
		add_stability = -1
	}
	option = {
		name = FEE_HRE_Minors.8.OPT3
		add_country_modifier = {
			name = FEE_HRE_Minor_Military_Reforms
			duration = 7300
		}
		add_stability = -1
	}
	option = {
		name = FEE_HRE_Minors.8.OPT4
		add_prestige_or_monarch_power = { amount = 10 }
		add_stability_or_adm_power = yes
	}
}
