########################################
# Flavor Events for Brandenburg - Prussia
#
# written by Sara Wendel-rtqvist
########################################

namespace = flavor_brapru
normal_or_historical_nations = yes

# The incorporation of Prussia into Brandenburg
country_event = {
	id = flavor_brapru.1
	
	
	title = "flavor_brapru.EVTNAME3636"
	desc = "flavor_brapru.EVTDESC3636"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		government = monarchy
		PRU = {
			government = monarchy
			ai = yes
			was_player = no
			NOT = { num_of_subjects = 1 }
			has_opinion = { who = BRA value = 100 }
			NOT = { vassal_of = BRA }
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	option = {
		name = "flavor_brapru.EVTOPTOK"
		BRA = {
			create_union = PRU
		}
	}
}

# Reform of the Brandenburg Army
country_event = {
	id = flavor_brapru.2
	title = "flavor_brapru.EVTNAME3518"
	desc = "flavor_brapru.EVTDESC3518"
	picture = MILITARY_CAMP_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = brapru_army_reforms_1
			AND = {
				NOT = { has_dlc = "Emperor" }
				tag = BRA
				is_year = 1600
				NOT = { is_year = 1700 }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3518"
		add_army_tradition = 20
		add_mil_power = 150
		PA_random_army_exp_between_2_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
	}
}

# The Prussian (Brandenburg) African Trade Company
country_event = {
	id = flavor_brapru.3
	title = "flavor_brapru.EVTNAME3523"
	desc = "flavor_brapru.EVTDESC3523"
	picture = EXPLORERS_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			AND = {
				tag = PRU
				NOT = {
					exists = BRA
				}
			}
		}
		any_active_trade_node = {
			has_merchant = PREV
			any_trade_node_member_province = {
				OR = {
					region = kongo_region
					region = south_africa_region
					region = guinea_region
					region = niger_region
					region = central_africa_region
					region = east_africa_region
					region = horn_of_africa_region
				}
			}
		}	
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3523"
		add_prestige = 5
		create_explorer = {
			tradition = 5
		}
		add_country_modifier = {
			name = prussian_african_trade_company
			duration = -1
		}
	}
}

# Immanuel Kant
country_event = {
	id = flavor_brapru.4
	title = "flavor_brapru.EVTNAME5140"
	desc = "flavor_brapru.EVTDESC5140"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		is_year = 1781
		NOT = { is_year = 1800 }
		has_country_flag = has_konigsberg_university
	}
	
	mean_time_to_happen = {
		months = 36
		
	}
	
	option = {
		name = "flavor_brapru.EVTOPTOK"
		add_prestige = 10
		define_advisor = {
			type = philosopher
			culture = prussian
			name = "Immanuel Kant"
			skill = 3
			discount = yes
		}
		add_innovativeness_big_effect = yes
	}
}

# The Absolutism
country_event = {
	id = flavor_brapru.5
	
	title = "flavor_brapru.EVTNAME3525"
	desc = "flavor_brapru.EVTDESC3525"
	picture = MILITARY_CAMP_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = pru_absolutism_flag
			AND = {
				NOT = { has_dlc = "Emperor" }
				tag = PRU
				is_year = 1713
				NOT = { is_year = 1765 }
				government = monarchy
				is_free_or_tributary_trigger = yes
			}
		}
	}
	
	mean_time_to_happen = {
		months = 64
	}
	
	option = {
		name = "flavor_brapru.EVTOPTOK"
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		add_country_modifier = {
			name = the_absolutism
			duration = -1
		}
	}
}

# The Reform of the Prussian Army
country_event = {
	id = flavor_brapru.6
	title = "flavor_brapru.EVTNAME3526"
	desc = "flavor_brapru.EVTDESC3526"
	picture = LAND_MILITARY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = brapru_army_reforms_2
			AND = {
				NOT = { has_mission = teu_pru_army_reforms }
				NOT = { has_mission = emp_brapru_army_reforms_2 }
				tag = PRU
				is_year = 1700
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3526"
		add_army_tradition = 20
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		if = {
			limit = { has_dlc = "Rights of Man" }
			add_government_power = {
				mechanic_type = militarization_mechanic
				power_type = militarized_society
				value = 20
			}
			add_mil_power = 100
		}
		if = {
			limit = { NOT = { has_dlc = "Rights of Man" } }
			add_mil_power = 150
		}
	}
}

# The Enlightened Reforms of Frederick the Great
country_event = {
	id = flavor_brapru.7
	title = "flavor_brapru.EVTNAME3530"
	desc = "flavor_brapru.EVTDESC3530"
	picture = REFORM_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		is_year = 1700
		has_regency = no
		OR = {
			DIP = 6
			ADM = 6
			MIL = 6
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3530"
		add_ruler_modifier = {
			name = pru_enlightenment_reforms
		}
	}
	option = {
		name = "flavor_brapru.EVTOPTB3530"
		add_stability_or_adm_power = yes
	}
	option = {
		name = "flavor_brapru.EVTOPTC3530"
		add_stability = -1
		add_ruler_modifier = {
			name = pru_reaction_reforms
		}
	}
}

# Von Scharnhorst's and Von Stein's Reforms
country_event = {
	id = flavor_brapru.8
	title = "flavor_brapru.EVTNAME3532"
	desc = "flavor_brapru.EVTDESC3532"
	picture = REFORM_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		NOT = { exists =  BRA }
		is_year = 1800
	}
	
	mean_time_to_happen = {
		months = 30
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3532"
		add_dip_power = 50
	}
	option = {
		name = "flavor_brapru.EVTOPTB3532"
		add_adm_power = 50
	}
	option = {
		name = "flavor_brapru.EVTOPTC3532"
		add_mil_power = 50
	}
}

# Berliner Unwille
country_event = {
	id = flavor_brapru.9
	title = "flavor_brapru.EVTNAME1"
	desc = "flavor_brapru.EVTDESC1"
	picture = CITY_DEVELOPMENT_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		owns = 50	# Berlin
		is_year = 1448
		NOT = { is_year = 1475 }
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 80
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA1" #Ignore the rabble
		50 = {	create_revolt = 1 }
	}
	option = {
		name = "flavor_brapru.EVTOPTB1" #Listen to the people
		add_ruler_modifier = { name = bra_berliner_unwille }
	}
}

#The Sale of Indulgences
country_event = {
	id = flavor_brapru.10
	title = "flavor_brapru.EVTNAME2"
	desc = "flavor_brapru.EVTDESC2"
	picture = POPE_PREACHING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		is_year = 1480
		NOT = { is_year = 1505 }
		religion = catholic
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 70
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA2" #Sell Indulgences
		add_ruler_modifier = { name = bra_sell_indulgences }
		add_reform_desire = 0.02
	}
	option = {
		name = "flavor_brapru.EVTOPTB2" #Ignore it
		add_papal_influence = -1
	}
}

# University of Knigsberg
country_event = {
	id = flavor_brapru.11
	title = "flavor_brapru.EVTNAME3"
	desc = "flavor_brapru.EVTDESC3"
	picture = UNIVERSITY_eventPicture
	goto = 41
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = konigsberg_university_flag
			AND = {
				NOT = { has_dlc = "Emperor" }
				OR = {
					tag = BRA
					tag = PRU
					tag = GER
					tag = HLR
				}
				owns = 41
				is_year = 1540
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			set_country_flag = has_konigsberg_university
		}
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA3" #Sponsor the University
		add_years_of_income = -0.25
		change_innovativeness = 2
		add_adm_power = 100
		41 = {
			if = {
				limit = { NOT = { has_building = university } }
				add_building = university
			}
			add_province_modifier = {
				name = teu_pru_university_of_konigsberg
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = "flavor_brapru.EVTOPTB3" #Do nothing
		add_prestige = -1
		ai_chance = {
			factor = 0
		}
	}
}

#The Grain Tax
country_event = {
	id = flavor_brapru.12
	title = "flavor_brapru.EVTNAME4"
	desc = "flavor_brapru.EVTDESC4"
	picture = ECONOMY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		is_year = 1545
		NOT = { is_year = 1570 }
		is_free_or_tributary_trigger = yes
		has_regency = no
		inflation = 1
		NOT = {
			treasury = 3000
		}
	}
	
	mean_time_to_happen = {
		months = 50
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA4" #Institute the Grain Tax
		add_ruler_modifier = { name = bra_grain_tax }
	}
	option = {
		name = "flavor_brapru.EVTOPTB4" #Do nothing
		add_inflation = 1
	}
}

#Leonhard Thurneysser
country_event = {
	id = flavor_brapru.13
	title = "flavor_brapru.EVTNAME5"
	desc = "flavor_brapru.EVTDESC5"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		is_year = 1550
		NOT = { is_year = 1595 }
		tag = BRA
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA5"
		add_adm_power = 25
		define_advisor = {
			type = natural_scientist
			name = "Leonhard Thurneysser"
			culture = swiss
			skill = 2
			discount = yes
		}
	}
	option = {
		name = "flavor_brapru.EVTOPTB5"
		add_prestige = 5
	}
}

#Prutenic Tables
country_event = {
	id = flavor_brapru.14
	title = "flavor_brapru.EVTNAME6"
	desc = "flavor_brapru.EVTDESC6"
	picture = INVENTION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		has_institution = printing_press
		NOT = { is_year = 1580 }
		has_regency = no
	}
	
	mean_time_to_happen = {
		months = 50
	}
	
	option = {
		name = "flavor_brapru.EVTOPTA6" #Finance the printing
		add_years_of_income = -0.5
		add_ruler_modifier = { name = pru_prutenic_tables }
		add_innovativeness_small_effect = yes
	}
	option = {
		name = "flavor_brapru.EVTOPTB6" #Ignore the man
		add_prestige = -5
	}
}

#Teutons Pawn Neumark?
country_event = {
	id = flavor_brapru.15
	title = "flavor_brapru.15.t"
	desc = "flavor_brapru.15.d"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		NOT = { num_of_loans = 4 }
		OR = {
			49 = {
				owned_by = TEU
				controlled_by = TEU
			}
			4747 = {
				owned_by = TEU
				controlled_by = TEU
			}
		}
		TEU = { #The Teutonic order hasn't connected their lands to Neumark
			NOT = { owns = 48 } #Kolberg
			NOT = { owns = 254 } #Poznan
			NOT = { owns = 1858 } #Stettin
			NOT = { owns = 2963 } #Notec
			NOT = { owns = 2994 } #Greifswald
			NOT = { owns = 2995 } #Stolp
		}
		NOT = { war_with = TEU }
		NOT = { is_year = 1466 }
	}
	
	mean_time_to_happen = {
		months = 20 #Reduced due to trigger inflexibility
	}
	
	option = {
		name = "flavor_brapru.15.a" #Offer the Teutons to pawn back Neumark for 40 000 Guilders
		ai_chance = {
			factor = 75
		}
		custom_tooltip = flavor_brapru.15.a.tt
		TEU = {
			country_event = { id = flavor_brapru.16 }
		}
	}
	option = { #We could not afford that.
		name = "flavor_brapru.15.b"
		ai_chance = {
			factor = 25
		}
		custom_tooltip = flavor_brapru.15.b.tt
		add_prestige = -5
	}
}

#The fate of Neumark
country_event = {
	id = flavor_brapru.16
	title = "flavor_brapru.16.t"
	desc = "flavor_brapru.16.d"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = "flavor_brapru.16.a" #We need the money.
		ai_chance = { factor = 100 }
		tooltip = {
			49 = {
				if = {
					limit = {
						owned_by = TEU
						controlled_by = TEU
					}
					cede_province = BRA
					add_core = BRA
					remove_core = TEU
				}
			}
			4747 = {
				if = {
					limit = {
						owned_by = TEU
						controlled_by = TEU
					}
					cede_province = BRA
					add_core = BRA
					remove_core = TEU
				}
			}
		}
		add_treasury = 100
		FROM = {
			country_event = { id = flavor_brapru.17 }
			add_opinion = {
				who = ROOT
				modifier = pawning_of_neumark
			}
		}
	}
	option = {
		name = "flavor_brapru.16.b" #Neumark shall remain ours!
		ai_chance = { factor = 0 }
		custom_tooltip = flavor_brapru.16.b.tt
		FROM = {
			country_event = { id = flavor_brapru.18 }
		}
	}
}

#Treaty of Clln
country_event = {
	id = flavor_brapru.17
	title = "flavor_brapru.17.t"
	desc = "flavor_brapru.17.d"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = "flavor_brapru.17.a" #Neumark shall not be brought to non-German Tongue!
		TEU = {
			49 = {
				if = {
					limit = {
						owned_by = TEU
						controlled_by = TEU
					}
					cede_province = BRA
					add_core = BRA
					remove_core = TEU
				}
			}
			4747 = {
				if = {
					limit = {
						owned_by = TEU
						controlled_by = TEU
					}
					cede_province = BRA
					add_core = BRA
					remove_core = TEU
				}
			}
		}
		add_treasury = -100
		FROM = {
			add_opinion = {
				who = ROOT
				modifier = pawning_of_neumark
			}
		}
	}
}

#The Teutonic Order Declines our Offer.
country_event = {
	id = flavor_brapru.18
	title = "flavor_brapru.18.t"
	desc = "flavor_brapru.18.d"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = "flavor_brapru.18.a" #Ack!
	}
}

#State of Brandenburg
country_event = {
	id = flavor_brapru.19
	title = "flavor_brapru.19.t"
	desc = "flavor_brapru.19.d"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		dynasty = "von Hohenzollern"
	}
	
	mean_time_to_happen = {
		months = 3
	}
	
	option = {
		name = "flavor_brapru.19.a"  #Let's do this the hard way
		ai_chance = { factor = 100 }
		add_adm_power = -35
		add_ruler_modifier = {
			name = "bra_new_chancellery"
			duration = -1
		}
		if = {
			limit = { has_estate = estate_church }
			add_estate_influence_modifier = {
				estate = estate_church
				desc = EST_VAL_PRIVATE_CHANCELLERY
				influence = -10
				duration = 9125
			}
			take_estate_land_share_small = { estate = estate_church }
		}
	}
	option = {
		name = "flavor_brapru.19.b" #Let's use financial incentives to buy people's loyalty
		ai_chance = { factor = 0 }
		add_corruption = 1
		if = {
			limit = { has_estate = estate_church }
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
			give_estate_land_share_small = { estate = estate_church }
		}
	}
}

#The Matter of Berlin
country_event = {
	id = flavor_brapru.20
	title = "flavor_brapru.20.t"
	desc = "flavor_brapru.20.d"
	picture = CITY_DEVELOPMENT_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = renovate_berlin_flag
			AND = {
				NOT = { has_dlc = "Emperor" }
				OR = {
					tag = BRA
					tag = PRU
				}
				capital = 50
				is_year = 1650
				NOT = { is_year = 1710 }
				adm_tech = 20
				years_of_income = 0.2
			}
		}
	}
	
	mean_time_to_happen = {
		months = 180
	}
	
	option = {
		name = "flavor_brapru.20.a"  #Let us commence
		ai_chance = { factor = 100 }
		if = {
			limit = {
				NOT = { has_country_flag = renovate_berlin_flag }
			}
			add_years_of_income = -0.75
		}
		set_country_flag = pru_berlin_renovations_flag
		50 = {
			add_province_modifier = {
				name = "pru_berlin_renovations"
				duration = -1
			}
		}
	}
	option = {
		name = "flavor_brapru.20.b" #
		trigger = {
			NOT = { has_country_flag = renovate_berlin_flag }
		}
		ai_chance = { factor = 0 }
		add_stability_or_adm_power = yes
	}
}

#Unification of Berlin
country_event = {
	id = flavor_brapru.21
	title = flavor_brapru.21.t
	desc = flavor_brapru.21.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		had_country_flag = { flag = pru_berlin_renovations_flag days = 3650 }
		owns_core_province = 50
		50 = {
			has_province_modifier = pru_berlin_renovations
		}
	}

	mean_time_to_happen = {
		months = 48
	}
	
	option = { #Great!
		name = flavor_brapru.21.a
		clr_country_flag = pru_berlin_renovations_flag
		50 = {
			rename_capital = "Berlin"
			add_base_tax = 2
			add_base_production = 2
			add_base_manpower = 2
			remove_province_modifier = pru_berlin_renovations
			add_province_modifier = {
				name = "pru_unification_of_berlin"
				duration = -1
			}
		}
	}
	
}

#Succession of Albrecht Achilles
#Silent start
country_event = {
	id = flavor_brapru.22
	title = flavor_brapru.21.t
	desc = flavor_brapru.21.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	hidden = yes
	
	trigger = {
		tag = BRA
		has_ruler = "Albrecht III Achilles"
		has_country_flag = albrecht_achilles_flag #Bra Starts with this (set in country history) and it is used to determine that Albrecht Achilles is indeed the original Albrecht Achilles. Cleared here or in on_actions.
		ANS = {
			exists = yes
			has_ruler = "Albrecht I Achilles"
		}
	}
	
	immediate = { #Great!
		clr_country_flag = albrecht_achilles_flag
		hidden_effect = {
			ANS = {
				country_event = { id = flavor_brapru.23 } #Leaving Ansbach
			}
		}
	}
	
	option = {
		name = flavor_brapru.21.a
	}
}

#Hohenzollers of Brandenburg
country_event = {
	id = flavor_brapru.23
	title = flavor_brapru.23.t
	desc = flavor_brapru.23.d
	picture = GOOD_WITH_MONARCH_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #Great!
		name = flavor_brapru.23.a
		ai_chance = { factor = 100 }
		tooltip = {
			BRA = { create_union = ANS }
		}
		custom_tooltip = flavor_brapru.23.a.tt
		BRA = {
			country_event = { id = flavor_brapru.24 } #Succession of Albrecht Achilles
		}
	}
	option = { #Great!
		name = flavor_brapru.23.b
		ai_chance = { factor = 0 }
		define_ruler = {
			dynasty = "von Hohenzollern"
		}
		if = {
			limit = {
				has_states_general_mechanic = yes
			}
			change_statists_vs_orangists = 1
		}
	}
	
}

#Franconian Holdings
country_event = {
	id = flavor_brapru.24
	title = flavor_brapru.23.t
	desc = flavor_brapru.23.d
	picture = GOOD_WITH_MONARCH_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #Great!
		name = flavor_brapru.23.a
		set_country_flag = accepted_ANS_union_flag
		create_union = ANS
		hidden_effect = {
			country_event = { id = flavor_brapru.25 days = 1825 } #Used for the Dispositio Achillea Followup
		}
	}
	
	option = {
		name = flavor_brapru.24.b 
		set_country_flag = declined_ANS_union_flag
		add_stability_or_adm_power = yes 
		
	}
}

#Dispositio Achillea
country_event = {
	id = flavor_brapru.25
	title = flavor_brapru.25.t
	picture = BAD_WITH_MONARCH_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	desc = {
		trigger = {
			OR = {
				senior_union_with = ANS
				senior_union_with = BYT
			}
		}
		desc = flavor_brapru.25.da
	}
	desc = {
		trigger = {
			NOT = { senior_union_with = ANS }
			NOT = { senior_union_with = BYT }
		}
		desc = flavor_brapru.25.db
	}
	
	trigger = {
		tag = BRA
		is_elector = yes
		NOT = { has_country_flag = albrecht_achilles_flag } #Albrecht must be either dead or have succeeded. Event can handle both versions but should never trigger without either being true.
		OR = {
			NOT = { has_ruler = "Albrecht III Achilles" } #Only triggers in his lifetime if the below is true:
			senior_union_with = ANS
		}
	}
	
	#Protect Brandenburg by letting go of the Franconian lands.
	
	option = { #Brandenburg must be indivisible!
		name = flavor_brapru.25.a
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = "bra_dispositio_achillea"
			duration = -1
		}
		if = {
			limit = {
				senior_union_with = ANS
			}
			custom_tooltip = flavor_brapru.25.a.tt
			hidden_effect = {
				ANS = {
					break_union = BRA
					country_event = { id = flavor_brapru.251 }
					if = {
						limit = {
							has_states_general_mechanic = yes
						}
						change_statists_vs_orangists = 1
					}
				}
				remove_casus_belli = {
					type = cb_restore_personal_union
					target = ANS
				}
			}
		}
		if = {
			limit = {
				senior_union_with = BYT
			}
			custom_tooltip = flavor_brapru.25.a.tt2
			hidden_effect = {
				BYT = {
					break_union = BRA
					country_event = { id = flavor_brapru.251 }
					if = {
						limit = {
							has_states_general_mechanic = yes
						}
						change_statists_vs_orangists = 1
					}
				}
				remove_casus_belli = {
					type = cb_restore_personal_union
					target = BYT
				}
			}
		}
	}
	option = {  #This is only a problem in families that dont stick together.
		name = flavor_brapru.25.b
		ai_chance = { factor = 50 }
		#Keep union over Ansbach and suffer internal instability OR you dont have Ansbach and your choice is the modifier above or a stab/prestige bonus instead. Emperor will dislike you regardless.
		if = {
			limit = {
				OR = {
					senior_union_with = ANS
					senior_union_with = BYT
				}
			}	
			add_stability = -1
			add_prestige = -10
		}
		if = {
			limit = {
				NOT = { senior_union_with = ANS }
				NOT = { senior_union_with = BYT }
			}
			add_stability_or_adm_power = yes
			add_prestige = 10
			every_known_country = {
				limit = {
					dynasty = ROOT
				}
				add_opinion = {
					who = ROOT
					modifier = bra_unhampered_inheritance_privileges
				}
			}	
		}
		emperor = {
			add_opinion = {
				who = ROOT
				modifier = bra_insecure_succession
			}
		}
	}
}


country_event = {
	id = flavor_brapru.251
	title = none
	desc = none
	picture = none
	is_triggered_only = yes
	hidden = yes

	immediate = {
		define_ruler = {
			dynasty = "von Hohenzollern"
		}
	}
	option = {
		
	}
}

#A man of Law and Integrity
country_event = {
	id = flavor_brapru.26
	title = flavor_brapru.26.t
	desc = flavor_brapru.26.d
	picture = UNIVERSITY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = PRU
			tag = BRA
		}
		is_year = 1740
		NOT = { is_year = 1760 }
	}

	mean_time_to_happen = {
		months = 60
	}
	
	option = { #Great!
		name = flavor_brapru.26.a
		set_country_flag = hired_cocceji
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		define_advisor = {
			type = statesman
			name = "Samuel von Cocceji"
			culture = hessian
			discount = yes
			skill = 3
		}
	}
	
}

#Legal Reforms of Frederick the Great
country_event = {
	id = flavor_brapru.27
	title = flavor_brapru.27.t
	desc = flavor_brapru.27.d
	picture = OVEREXTENSION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = pru_legal_reforms_flag
			AND = {
				OR = {
					tag = PRU
					tag = BRA
					tag = GER
					tag = HLR
				}
				is_year = 1730
				NOT = { is_year = 1790 }
			}
		}
	}

	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 0.7
			has_country_flag = hired_cocceji
		}
	}

	immediate = {
		hidden_effect = { set_country_flag = pru_legal_reforms_flag }
	}
	
	option = { #Yes! Start in Gods name!
		name = flavor_brapru.27.a
		ai_chance = {
			factor = 75
		}
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		add_stability = -1
		add_country_modifier = {
			name = "pru_unified_legal_system"
			duration = -1
		}
	}
	option = { #We have no time for legal Procedure and other formalities
		name = flavor_brapru.27.b
		ai_chance = {
			factor = 25
		}
		add_adm_power = 200
	}
	
}

#The Edict of Potsdam
country_event = {
	id = flavor_brapru.28
	title = flavor_brapru.28.t
	desc = flavor_brapru.28.d
	picture = STREET_SPEECH_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = pru_potsdam_flag
			AND = {
				NOT = { has_dlc = "Emperor" }
				OR = {
					tag = PRU
					tag = BRA
				}
				is_at_war = no
				is_year = 1650
				NOT = { is_year = 1700 }
				OR = {
					religion = protestant
					religion = reformed
				}
				num_of_cities = 3
			}
		}
	}

	mean_time_to_happen = {
		months = 150
		modifier = {
			factor = 0.6
			FRA = {
				has_country_flag = revoked_the_edict_of_nantes
			}
		}
	}
	
	option = { #
		name = flavor_brapru.28.a
		ai_chance = {
			factor = 75
		}
		add_years_of_income = -0.75
		add_stability = -2
		random_owned_province = {
			limit = {
				culture = owner
				is_capital = no
				has_owner_religion = yes
			}
			add_base_manpower = 1
			add_base_tax = 1
			add_base_production = 1
			if = {
				limit = {
					owner = { religion = protestant }		
				}
				change_religion = reformed
			}
			if = {
				limit = {
					owner = { religion = reformed }
				}
				change_religion = protestant
			}
		}
		capital_scope = {
			add_base_manpower = 1
			add_base_tax = 2
			add_base_production = 2
		}
		custom_tooltip = flavor_brapru.28.a.tt
		hidden_effect = {
			every_known_country = {
				limit = {
					religion = catholic
					capital_scope = { continent = europe }
					NOT = { has_country_flag = revoked_the_edict_of_nantes }
				}
				add_opinion = {
					who = ROOT
					modifier = pru_edict_of_potsdam_opinion
				}
			}
		}
		random_country = {
			limit = { has_country_flag = revoked_the_edict_of_nantes }
			add_opinion = {
				who = ROOT
				modifier = pru_france_huguenots
			}
		}
	}
	option = { #
		name = flavor_brapru.28.b
		ai_chance = {
			factor = 25
		}
		add_adm_power = 200
	}
	
}

# Carl von Clausewitz
country_event = {
	id = flavor_brapru.29
	title = flavor_brapru.29.t
	desc = flavor_brapru.29.d
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			has_country_flag = brapru_army_reforms_3
			AND = {
				NOT = { has_dlc = "Emperor" }
				OR = {
					tag = PRU
					tag = BRA
				}
				is_year = 1790
				has_mil_advisor = yes
				has_regency = no
				has_consort_regency = no
			}
		}
	}

	mean_time_to_happen = {
		months = 90
	}
	
	option = { # Hire him as an advisor!
		name = flavor_brapru.29.a
		ai_chance = {
			factor = 80
		}
		define_advisor = {
			type = army_reformer
			name = "Carl von Clausewitz"
			culture = saxon
			skill = 3
			discount = yes
		}
		
	}
	option = { # Have him lead troops!
		name = flavor_brapru.29.b
		ai_chance = {
			factor = 10
		}
		define_general = {
			name = "Carl von Clausewitz"
			shock = 3
			fire = 4
			manuever = 4
			siege = 1
		}
	}
	option = { # We don't need his ideas
		name = flavor_brapru.29.c
		ai_chance = {
			factor = 10
		}
		add_stability_or_adm_power = yes
	}
}

# The Burghers of Knigsberg (Hieronymus Roth)
country_event = {
	id = flavor_brapru.30
	title = flavor_brapru.30.t
	desc = flavor_brapru.30.d
	picture = DEBATE_REPUBLICAN_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		government = monarchy
		has_regency = no
		has_consort_regency = no
		owns = 41
		is_year = 1660
		#NOT = { is_year = 1690 }
		any_country = {
			NOT = { reverse_has_opinion = { who = ROOT value = 0 } }
			NOT = { war_with = ROOT }
			NOT = { alliance_with = ROOT }
		}
	}
	
	immediate = {
		hidden_effect = {
			random_neighbor_country = {
				limit = { 
					NOT = { reverse_has_opinion = { who = ROOT value = 0 } }
					NOT = { war_with = ROOT }
					NOT = { alliance_with = ROOT }
				}
				save_event_target_as = some_neighbor_country
			}
		}
	}

	mean_time_to_happen = {
		months = 90
	}
	
	option = {
		name = flavor_brapru.30.a # Send in the troops
		41 = {
			spawn_rebels = {
				type = particularist_rebels
				size = 2
			}
		}
	}
	option = {
		name = flavor_brapru.30.b # We will have to make concessions.
		every_owned_province = {
			limit = {
				is_capital = no
				OR = {
					area = west_prussia_area
					area = east_prussia_area
				}
			}
			add_local_autonomy = 25
		}
	}
}


# Dreaming of Sanssouci
country_event = {
	id = flavor_brapru.31
	title = "flavor_brapru.31.t"
	desc = "flavor_brapru.31.d"
	picture = OVEREXTENSION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		owns = 1759
		is_year = 1730
		has_institution = enlightenment
		has_regency = no
		has_consort_regency = no
	}
	
	mean_time_to_happen = {
		months = 180
	}
	
	option = {
		name = flavor_brapru.31.a  #Build it!
		ai_chance = { factor = 100 }
		add_years_of_income = -0.75
		set_country_flag = pru_sanssouci_palace_flag
		set_ruler_flag = pru_sanssouci_builder_flag
		1759 = {
			add_province_modifier = {
				name = "pru_building_sanssouci"
				duration = 730
			}
		}
		hidden_effect = { country_event = { id = flavor_brapru.32 days = 731 } }
	}
	option = {
		name = "flavor_brapru.31.b" #
		ai_chance = { factor = 0 }
		add_stability_or_adm_power = yes
	}
}

# Palace of Sanssouci finished
country_event = {
	id = flavor_brapru.32
	title = flavor_brapru.32.t
	picture = GREAT_BUILDING_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_country_flag = pru_sanssouci_palace_flag
		owns = 1759
	}

	immediate = {
		hidden_effect = {
			1759 = {
				save_event_target_as = potsdam_province
			}
		}
	}

	desc = { trigger = { has_ruler_flag = pru_sanssouci_builder_flag }
		desc = flavor_brapru.32.da
	}
	desc = { trigger = { NOT = { has_ruler_flag = pru_sanssouci_builder_flag } }
		desc = flavor_brapru.32.db
	}

	option = { #Great!
		name = flavor_brapru.32.a
		add_prestige = 10
		1759 = {
			add_province_modifier = {
				name = "pru_sanssouci_palace"
				duration = -1
			}
		}
		clr_country_flag = pru_sanssouci_palace_flag
		clr_ruler_flag = pru_sanssouci_builder_flag
	}
}

# Diet of 1653
country_event = {
	id = flavor_brapru.33
	title = "flavor_brapru.33.t"
	desc = "flavor_brapru.33.d"
	picture = ELECTION_REPUBLICAN_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		government = monarchy
		is_year = 1650
		NOT = { is_year = 1700 }
		OR = {
			has_regency = no
			has_consort_regency = yes
		}
		num_of_cities = 6 #Not a dwarf state
		OR = {
			army_size_percentage = 0.7 #Army is used as leverage here.
			AND = {
				is_emperor = yes
				army_size_percentage = 0.4
			}
		}
	}
	
	mean_time_to_happen = {
		months = 150
	}
	
	option = {
		name = flavor_brapru.33.a #Ally with the Nobles
		ai_chance = { factor = 100 }
		custom_tooltip = flavor_brapru.33.a.tt
		add_mil_power = -85
		if = {
			limit = {
				has_dlc = "Rights of Man"
				OR = {
					has_reform = prussian_monarchy_base
					has_reform = prussian_monarchy
				}
			}
			add_government_power = {
				mechanic_type = militarization_mechanic
				power_type = militarized_society
				value = 20
			}
		}
		add_ruler_modifier = {
			name = "brandenburg_recess"
			duration = -1
		}
		if = {
			limit = {
				has_estate = estate_nobles
				government = monarchy
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = 10
			}
			add_estate_loyalty = {
				estate = estate_burghers #Shafted entirely more or less.
				loyalty = -15
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { has_estate = estate_nobles }
					NOT = { government = monarchy }
				}
			}
			add_ruler_modifier = {
				name = "bra_burghers_unhappy"
				duration = -1
			}
		}
	}
	option = {
		name = "flavor_brapru.33.b" #Ally with the Burghers
		ai_chance = {
			factor = 0 #Out of character
		}
		custom_tooltip = flavor_brapru.33.b.tt
		add_years_of_income = -1
		add_ruler_modifier = {
			name = "brandenburg_recess"
			duration = -1
		}
		if = {
			limit = {
				has_estate = estate_nobles
				government = monarchy
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -15
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = 10
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { has_estate = estate_nobles }
					NOT = { government = monarchy }
				}
			}
			add_ruler_modifier = {
				name = "bra_nobles_unhappy"
				duration = -1
			}
		}
		if = {
			limit = {
				has_dlc = "Rights of Man"
				OR = {
					has_reform = prussian_monarchy_base
					has_reform = prussian_monarchy
				}
			}
			add_government_power = {
				mechanic_type = militarization_mechanic
				power_type = militarized_society
				value = 10
			}
		}
	}
	option = {
		name = "flavor_brapru.33.c" #We must respect their ancient privileges
		ai_chance = {
			factor = 0 #Just no.
		}
		custom_tooltip = flavor_brapru.33.c.tt
		add_years_of_income = -0.25
		add_stability_or_adm_power = yes
	}
}

# Construction of Canals to Berlin-Clln has run out of funding
country_event = {
	id = flavor_brapru.34
	title = "flavor_brapru.34.t"
	desc = "flavor_brapru.34.d"
	picture = HARBOUR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		government = monarchy
		owns = 50
		is_at_war = no
		is_year = 1500
		NOT = { is_year = 1600 }
		OR = {
			has_regency = no
			has_consort_regency = yes
		}
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	immediate = {
		hidden_effect = {
			50 = { save_event_target_as = berlin_province }
		}
	}
	
	option = {
		name = flavor_brapru.34.a #Throw more money on the project
		custom_tooltip = flavor_brapru.34.a.tt
		ai_chance = {
			factor = 0 #Out of character
		}

		add_years_of_income = -1

		50 = {
			add_base_tax = 1
			add_base_production = 1
		}
	}
	option = {
		name = "flavor_brapru.34.b" #Beg the Nobility for help
		custom_tooltip = flavor_brapru.34.b.tt
		trigger = { government = monarchy }
		ai_chance = {
			factor = 0 #Out of character
		}
		if = {
			limit = {
				government = monarchy
				has_estate = estate_nobles
			}
			add_dip_power = -85
			add_estate_influence_modifier = {
				estate = estate_nobles
				desc = EST_VAL_SAVED_A_PROJECT
				influence = 15
				duration = 9125
			}
		}
		if = {
			limit = {
				NOT = { has_estate = estate_nobles }
			}
			add_dip_power = -85
			add_adm_power = -15
		}
		50 = {
			add_base_tax = 1
			add_base_production = 1
		}
	}
	option = {
		name = "flavor_brapru.34.c" # We can't afford it.
		custom_tooltip = flavor_brapru.34.c.tt
		ai_chance = { factor = 100 } # what actually happened
		add_prestige = -5
	}
}

# Praxis pietatis melica
country_event = {
	id = flavor_brapru.35
	title = "flavor_brapru.35.t"
	desc = "flavor_brapru.35.d"
	picture = RELIGION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		owns = 50
		religion = protestant
		is_year = 1635
		NOT = { is_year = 1700 }
	}
	
	mean_time_to_happen = {
		months = 195
	}
	
	option = {
		name = "flavor_brapru.35.a"
		add_prestige = 10
		define_advisor = {
			type = artist
			name = "Johann Crger"
			skill = 3
			discount = yes
		}
	}
}

# The Prussian Canton System
# One-time megaboost for military minded Prussian monarchs some-time in the 18th century..
country_event = {
	id = flavor_brapru.36
	title = "flavor_brapru.36.t"
	desc = "flavor_brapru.36.d"
	picture = MILITARY_CAMP_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		government = monarchy

		MIL = 5
		is_year = 1700
		NOT = { is_year = 1800 }
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = "flavor_brapru.36.a"
		custom_tooltip = flavor_brapru.36.a.tt
		ai_chance = { factor = 100 }
		add_stability = -1 #Administrative Friction
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		if = {
			limit = { has_dlc = "Rights of Man" }
			add_government_power = {
				mechanic_type = militarization_mechanic
				power_type = militarized_society
				value = 40
			}
		}
		if = {
			limit = {
				NOT = {
					has_dlc = "Rights of Man"
				}
			}
			add_mil_power = 100
		}
		add_yearly_manpower = 1
	}
	option = {
		name = "flavor_brapru.36.b"
		ai_chance = { factor = 0 }
		custom_tooltip = flavor_brapru.36.b.tt
		add_years_of_income = 1
		add_stability_or_adm_power = yes #Keeping the Status Quo
	}
}

# Moses Mendelssohn
country_event = {
	id = flavor_brapru.37
	title = "flavor_brapru.37.t"
	desc = "flavor_brapru.37.d"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = PRU
		is_year = 1730
		NOT = { is_year = 1760 }
	}

	immediate = {
		hidden_effect = {
			50 = { save_event_target_as = berlin_province }
		}
	}
		
	mean_time_to_happen = {
		months = 90
	}
	
	option = {
		name = flavor_brapru.37.a # We should talk more to this fellow
		define_advisor = {
			type = philosopher
			name = "Moses Mendelssohn"
			culture = saxon
			religion = jewish
			skill = 3
			discount = yes
		}
		add_innovativeness_small_effect = yes
	}
}

#Confiscation of Herrshaft Ruppin
country_event = {
	id = flavor_brapru.38
	title = "flavor_brapru.38.t"
	desc = "flavor_brapru.38.d"
	picture = DEATH_OF_HEIR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = PRU
			tag = BRA
		}
		government = monarchy
		owns = 51
		is_year = 1500
		NOT = { is_year = 1530 }
	}
	
	mean_time_to_happen = {
		months = 90
	}
	
	option = {
		name = "flavor_brapru.38.a" #Our hold over this province has now solidified!
		51 = {
			add_base_tax = 1
			add_base_production = 1
			add_base_manpower = 1
		}
	}
}

#Johannes Agricola
country_event = {
	id = flavor_brapru.39
	title = "flavor_brapru.39.t"
	desc = "flavor_brapru.39.d"
	picture = PRAYING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = PRU
			tag = BRA
		}
		government = monarchy
		religion = protestant
		is_year = 1539
		NOT = { is_year = 1560 }
	}
	
	mean_time_to_happen = {
		months = 63
	}
	
	option = {
		name = "flavor_brapru.39.a" #Bring him here
		define_advisor = {
			name = "Johannes Agricola"
			culture = saxon
			type = theologian
			skill = 2
			discount = yes
		}
		add_adm_power = 25
		if = {
			limit = { has_dlc = "Common Sense" }
			add_church_power = 10
		}
		every_neighbor_country = {
			limit = {
				religion = protestant
			}
			add_opinion = {
				who = ROOT
				modifier = agricolas_reputation
			}
		}
	}
	option = {
		name = "flavor_brapru.39.b" #We cannot abide his reconciliary views.
		add_legitimacy = 15
	}
}

#Resurgence of the Robber-Barons
country_event = {
	id = flavor_brapru.40
	title = "flavor_brapru.40.t"
	desc = "flavor_brapru.40.d"
	picture = HORDE_ON_HORSEBACK_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = PRU
			tag = BRA
		}
		num_of_cities = 5
		government = monarchy
		is_year = 1500
		NOT = { is_year = 1550 }
	}
	
	mean_time_to_happen = {
		months = 150
	}
	
	option = {
		name = "flavor_brapru.40.a" #"I never spilled the blood of noblemen, I only executed rouges, robbers and murders."
		custom_tooltip = flavor_brapru.40.a.tt
		add_country_modifier = {
			name = "bra_crushing_the_robber_barons"
			duration = 10950
		}
		random_owned_province = {
			limit = { is_capital = no }
			spawn_rebels = {
				type = noble_rebels
				size = 1
			}
			random_neighbor_province = {
				limit = {
					owned_by = ROOT
					is_capital = no
				}
				spawn_rebels = {
					type = noble_rebels
					size = 1
				}
			}
		}
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -10
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = 10
			}
			take_estate_land_share_small = { estate = estate_nobles }
			give_estate_land_share_small = { estate = estate_burghers }
		}
	}
	option = {
		name = "flavor_brapru.40.b" 
		add_country_modifier = {
			name = "bra_robber_baron_resurgence"
			duration = 5475
		}
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = 10
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -10
			}
			take_estate_land_share_small = { estate = estate_burghers }
			give_estate_land_share_small = { estate = estate_nobles }
		}
	}
}

#Economic Downturn - Alleviate by extending the privileges of the estates through the Kreditwerk?
country_event = {
	id = flavor_brapru.41
	title = "flavor_brapru.41.t"
	desc = "flavor_brapru.41.d"
	picture = PRAYING_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = BRA
		num_of_cities = 5
		government = monarchy
		is_year = 1550
		NOT = { is_year = 1600 }
	}
	
	mean_time_to_happen = {
		months = 150
		modifier = {
			factor = 0.8
			num_of_loans = 2
		}
	}
	
	option = {
		name = "flavor_brapru.41.a" #
		ai_chance = { factor = 50 }
		add_ruler_modifier = {
			name = "bra_kreditwerk"
			duration = -1
		}
	}
	option = {
		name = "flavor_brapru.41.b" 
		ai_chance = { factor = 50 }
		add_years_of_income = -0.75
	}
}

country_event = {
	id = flavor_brapru.42
	title = flavor_brapru.42.t
	desc = flavor_brapru.42.d
	picture = BAD_WITH_MONARCH_eventPicture
	fire_only_once = yes 
	trigger = {
		OR = { 
			tag = PRU 
			tag = BRA 
		}
		had_country_flag = {
			flag = accepted_ANS_union_flag
			days = 1825 
		}
		has_dlc = "Domination"
	}
	
	mean_time_to_happen = { months = 1 } 
	
	immediate = {
		hidden_effect = {
			clr_country_flag = accepted_ANS_union_flag
			clr_country_flag = declined_ANS_union_flag
			complete_mission = emp_brapru_franconian_conquest
		}
	}
	
	option = {
		name = flavor_brapru.42.a 
		
		clr_country_flag = accepted_ANS_union_flag
		clr_country_flag = declined_ANS_union_flag
		complete_mission = emp_brapru_franconian_conquest
		
		custom_tooltip = release_franconia_tt
		hidden_effect = {
			upper_franconia_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				add_core = FKN
				remove_core = ROOT 
			}
			franconia_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				add_core = FKN
				remove_core = ROOT 
			}
			release = FKN 
			if = { 
				limit = { 
					FKN = { is_subject_of = ROOT }
				}
				free_vassal = FKN 
			}
			every_province = {
				limit = { 
					country_or_non_sovereign_subject_holds = ROOT 
					OR = { 
						area = upper_franconia_area 
						area = franconia_area 
					}
				}
				add_core = FKN 
				cede_province = FKN 
			}
		}
		
		custom_tooltip = gain_15_ae_n_s_germany_tt
		hidden_effect = {
			every_country = {
				limit = { 
					capital_scope = {
						OR = { 
							region = north_german_region
							region = south_german_region 
						}
					}
				}
				add_aggressive_expansion = {
					who = ROOT 
					value = 15
					apply_calc = no 
				}
			}
		}
	}
}

#Credit for these events goes to Stiopa and his team
country_event = { 
	id = flavor_brapru.43
	title = flavor_brapru.43.t
	desc = flavor_brapru.43.d
	picture = COURT_eventPicture

	fire_only_once = yes 
	mean_time_to_happen = {
		months = 24
	}
	trigger = {
		OR = {
			tag = BRA
			tag = PRU
		}
		if = {
			limit = {
				religion = protestant
			}
			num_of_owned_provinces_with = {
				religion = reformed
				value = 5
			}
		}
		else_if = {
			limit = {
				religion = reformed
			}
			num_of_owned_provinces_with = {
				religion = protestant
				value = 5
			}
		}
		else = {
			always = no
		}
	}
	
	option = {
		name = flavor_brapru.43.a #A great development.
		
		ai_chance = { factor = 100 }
		
		country_event = { id = flavor_brapru.44 days = 90 }
	}
	option = {
		name = flavor_brapru.43.b #The churches can't be united, we are wasting our time
		
		ai_chance = { factor = 100 }
		
		add_adm_power = 50
	}
}

country_event = {
	id = flavor_brapru.44
	title = flavor_brapru.44.t #Toleranzedikt
	desc = flavor_brapru.44.d
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = flavor_brapru.44.a #A great development.
		
		ai_chance = { factor = 100 }
		
		set_country_flag = ME_PRU_Tolerance
		add_country_modifier = {
			name = PRU_bitter_resistance
			duration = 5475
		}
		add_country_modifier = {
			name = PRU_toleranzedikt
			duration = 10590
		}

	}
	
	option = {
		name = flavor_brapru.44.b #The churches can't be united, we are wasting our time
		
		ai_chance = { factor = 100 }
		
		if = { 
			limit = { has_estate = estate_church }
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 5
			}
		}
		else = { add_prestige_or_monarch_power = { amount = 10 } }
	}
}

country_event = {
	id = flavor_brapru.45
	title = flavor_brapru.45.t #Kreditwerk
	desc = flavor_brapru.45.d
	picture = COURT_eventPicture
	
	fire_only_once = yes
	trigger = {
		OR = { 
			tag = BRA 
			tag = PRU 
		}
		has_idea_group = economic_ideas 
	}
	
	mean_time_to_happen = { months = 600 } 
	option = {
		name = flavor_brapru.45.a #Ok
		
		ai_chance = { factor = 100 }
		
		add_adm_power = 50
		add_country_modifier = {
			name = BRA_abolished_kreditwerk
			duration = 18250
		}
	}
	option = {
		name = flavor_brapru.45.b #Ok
		
		ai_chance = { factor = 100 }
		
		
		change_government_reform_progress = 35
		add_country_modifier = {
			name = BRA_reformed_kreditwerk
			duration = 18250
		}
	}
}

country_event = {
	id = flavor_brapru.46
	title = flavor_brapru.46.t #Humboldt brothers
	desc = flavor_brapru.46.d
	picture = ADVISOR_eventPicture

	trigger = {
		is_year = 1650 
		OR = { 
			tag = BRA 
			tag = PRU 
		}
		OR = {
			innovativeness = 80
			prestige = 80 
		}
		50 = {
			owned_by = ROOT 
			development = 50 
			has_building = university 
		}
		if = {
			limit = { has_dlc = "Emperor" }
			mission_completed = emp_brapru_renovate_berlin
		}
	}
	
	mean_time_to_happen = { 
		months = 600
	}
	
	option = {
		name = flavor_brapru.46.a #Ok
		
		ai_chance = { factor = 100 }
		
		define_advisor = {
			type = philosopher
			name = "Wilhelm von Humboldt"
			skill = 3
			culture = ROOT
			religion = ROOT
			cost_multiplier = 0.33
		}
	}
	option = {
		name = flavor_brapru.46.b #Ok
		
		ai_chance = { factor = 100 }
		
		define_advisor = {
			type = natural_scientist
			name = "Alexander von Humboldt"
			skill = 3
			culture = ROOT
			religion = ROOT
			cost_multiplier = 0.5
		}
	}
}

country_event = {
	id = flavor_brapru.47
	title = flavor_brapru.47.t #Of Thaler, Groscher und Pfennige
	desc = flavor_brapru.47.d
	picture = ECONOMY_eventPicture
	fire_only_once = yes 
	trigger = {
		is_year = 1500
		OR = { 
			tag = PRU 
			tag = BRA 
		}
		OR = { 
			full_idea_group = economic_ideas 
			full_idea_group = administrative_ideas 
			adm = 6
		}
	}
	
	mean_time_to_happen = { months = 120 }
	
	option = {
		name = flavor_brapru.47.a #Ok
		
		ai_chance = { factor = 100 }
		
		change_government_reform_progress = 30
		add_years_of_income = 1
		add_mercantilism = 3
	}
	option = {
		name = flavor_brapru.47.b #Ok
		
		ai_chance = { factor = 100 }
		
		add_years_of_income = 0.5
		add_inflation = -2
		add_country_modifier = {
			name = PRU_investing
			duration = 5475
		}
	}
	option = {
		name = flavor_brapru.47.c #Ok
		
		ai_chance = { factor = 100 }
		highlight = yes
		trigger = {
			num_of_cities = 30
		}
		
		add_years_of_income = -1
		add_adm_power = 50
		add_dip_power = 50
		add_mil_power = 50
		add_country_modifier = {
			name = PRU_reichsthaler
			duration = 18250
		}
	}
}




	
	