namespace = GE_reform_cycle_republic

country_event = {
	id = GE_reform_cycle_republic.201
	title = GE_reform_cycle_republic.201.t
	desc = GE_reform_cycle_republic.201.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		has_reform = republican_authoritarianism_reform
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.201.a
			
		add_country_modifier = {
			name = "Additional_Taxes" #+2 Unrest
			duration = 1825
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.201.b
		
		add_country_modifier = {
			name = "Lowered_Taxes" #-15% Tax Income
			duration = 1825
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.201.c
		
		kill_advisor = random
	}
}

country_event = {
	id = GE_reform_cycle_republic.202
	title = GE_reform_cycle_republic.202.t
	desc = GE_reform_cycle_republic.202.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		has_reform = republican_authoritarianism_reform
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.202.a
			
		add_prestige = 5
		add_years_of_income = 0.25
	}
	
	option = {
		name = GE_reform_cycle_republic.202.b
		
		add_country_modifier = {
			name = "Maintain_Situation" #-15% Stability, +25% Production Income, -1 Unrest
			duration = 5475
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.202.c
		
		highlight = yes

		trigger = {
			has_reform = frequent_elections_reform
		}
		custom_tooltip = AVAILABLE_BECAUSE_OF_REFORM_FREQUENT_ELECTIONS
		
		add_republican_tradition = 5
		
	}
}

country_event = {
	id = GE_reform_cycle_republic.203
	title = GE_reform_cycle_republic.203.t
	desc = GE_reform_cycle_republic.203.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = nepotism_reform
			has_reform = demedici_dynasty_reform
		}
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.203.a
			
		random_owned_province = {
			limit = {
				is_territory = no
				is_capital = no
			}
			spawn_rebels = {
				type = noble_rebels
				size = 1
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.203.b
		
		add_years_of_income = -0.25
		add_dip_power = -25
	}
	
	option = {
		name = GE_reform_cycle_republic.203.c
		
		highlight = yes

		trigger = {
			has_reform = devolution_of_powers_reform
		}
		custom_tooltip = AVAILABLE_BECAUSE_OF_REFORM_DEVOLUTION_OF_POWERS
		
		random_owned_province = {
			limit = {
				is_territory = no
				is_capital = no
			}
			add_local_autonomy = 25
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.203.e
		
		highlight = yes
		
		trigger = {
			ruler_has_personality = bold_fighter_personality
		}
		
		if = {
			limit = {
				mil = 5
			}
			random_list = {
				75 = { }
				25 = { kill_ruler = yes }
			}
		}
		else_if = {
			limit = {
				mil = 3
			}
			random_list = {
				50 = { }
				50 = { kill_ruler = yes }
			}
		}
		else = {
			random_list = {
				25 = { }
				75 = { kill_ruler = yes }
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.203.f
		
		highlight = yes
		
		trigger = {
			ruler_has_personality = silver_tongue_personality
		}
		
		add_estate_loyalty = {
			estate = estate_burghers
			loyalty = 5
		}
	}
}

country_event = {
	id = GE_reform_cycle_republic.204
	title = GE_reform_cycle_republic.204.t
	desc = GE_reform_cycle_republic.204.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = nepotism_reform
			has_reform = demedici_dynasty_reform
		}
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.204.a
			
		add_years_of_income = 0.35
	}
	
	option = {
		name = GE_reform_cycle_republic.204.b
		
		add_estate_loyalty = {
			estate = estate_nobles
			loyalty = 5
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.204.c

		trigger = {
			any_owned_province = {
				NOT = { has_building = workshop }
			}
		}
		
		random_owned_province = {
			limit = {
				NOT = { has_building = workshop }
			}
			add_building = workshop
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.204.e
		
		highlight = yes

		trigger = {
			ruler_has_personality = intricate_web_weaver_personality
		}

		add_republican_tradition = 2
		
	}
	
	option = {
		name = GE_reform_cycle_republic.204.f
		
		highlight = yes

		trigger = {
			OR = {
				ruler_has_personality = charismatic_negotiator_personality
				ruler_has_personality = silver_tongue_personality
			}
		}
		if = {
			limit = {
				ruler_has_personality = charismatic_negotiator_personality
			}
		}
		else_if = {
			limit = {
				ruler_has_personality = silver_tongue_personality
			}
		}
		
		add_years_of_income = 0.65
	}
}

country_event = {
	id = GE_reform_cycle_republic.205
	title = GE_reform_cycle_republic.205.t
	desc = GE_reform_cycle_republic.205.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = republicanism_reform
			has_reform = support_borghese_reform
			has_reform = rule_by_consent_reform
		}
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.205.a
			
		add_estate_loyalty = {
			estate = estate_burghers
			loyalty = -10
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.205.b
		
		add_estate_loyalty = {
			estate = estate_nobles
			loyalty = -5
		}
		random_list = {
			80 = { }
			20 = {
				random_owned_province = {
					limit = {
						is_capital = no
						is_territory = no
					}
					spawn_rebels = {
						type = noble_rebels
						size = 1
					}
				}
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.205.c

		add_country_modifier = {
			name = "Heretical_Panic" #-10% Production Efficiency, -2 missionary strenght
			duration = 3650
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.205.e
		
		highlight = yes

		trigger = {
			ruler_has_personality = sinner_personality
		}

		add_estate_loyalty = {
			estate = estate_church
			loyalty = 5
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.205.f
		
		highlight = yes

		trigger = {
			OR = {
				ruler_has_personality = incorruptible_personality
				ruler_has_personality = righteous_personality
			}
		}
		if = {
			limit = {
				ruler_has_personality = incorruptible_personality
			}
		}
		else_if = {
			limit = {
				ruler_has_personality = righteous_personality
			}
		}
		
		kill_ruler = yes
		add_republican_tradition = 12
	}
}

country_event = {
	id = GE_reform_cycle_republic.206
	title = GE_reform_cycle_republic.206.t
	desc = GE_reform_cycle_republic.206.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = republicanism_reform
			has_reform = support_borghese_reform
			has_reform = rule_by_consent_reform
		}
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.206.a
			
		add_country_modifier = {
			name = "Calmed_Foreigners" #15% Global Trade Power, 10% Improve Relations
			duration = 3650
		}
		add_republican_tradition = -3
	}
	
	option = {
		name = GE_reform_cycle_republic.206.b
		
		add_republican_tradition = 3
	}
	
	option = {
		name = GE_reform_cycle_republic.206.c

		add_country_modifier = {
			name = "New_Blood" #-5% Dev Cost, +10% Stability Cost
			duration = 3650
		}
		random_owned_province = {
			limit = {
				is_territory = no
			}
			add_base_manpower = 1
		}
	}
}

country_event = {
	id = GE_reform_cycle_republic.207
	title = GE_reform_cycle_republic.207.t
	desc = GE_reform_cycle_republic.207.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = mixed_republic_reform
		}
		NOT = { republican_tradition = 75 }
		army_size_percentage = 0.90
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_saved_name = {
			key = general_coup
			type = advisor
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.207.a
			
		random_owned_province = {
			limit = {
				is_territory = no
				is_capital = no
			}
			spawn_rebels = {
				type = pretender_rebels
				size = 2
				leader = general_coup
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.207.b
		
		add_republican_tradition = -3
	}
	
	option = {
		name = GE_reform_cycle_republic.207.c
		
		hidden_effect = {
			define_general = {
				name = general_coup
				shock = 4
				fire = 2
				manuever = 4
				siege = 2
			}
		}
		
		add_republican_tradition = -15
		add_government_reform = presidential_despot_reform
		define_ruler = {
			name = general_coup
			change_MIL = 3
			attach_leader = general_coup
		}
		hidden_effect = { add_ruler_personality = bold_fighter_personality }
	}
	
	option = {
		name = GE_reform_cycle_republic.207.e
		
		highlight = yes

		trigger = {
			OR = {
				ruler_has_personality = secretive_personality
				ruler_has_personality = righteous_personality
				ruler_has_personality = intricate_web_weaver_personality
			}
		}
		if = {
			limit = {
				ruler_has_personality = intricate_web_weaver_personality
			}
		}
		else_if = {
			limit = {
				ruler_has_personality = righteous_personality
			}
		}
		else_if = {
			limit = {
				ruler_has_personality = secretive_personality
			}
		}
		
		add_republican_tradition = 3
	}
	
	option = {
		name = GE_reform_cycle_republic.207.f
		
		highlight = yes

		trigger = {
			ruler_has_personality = naive_personality
		}

		random_list = {
			10 = { add_corruption = -1 }
			90 = {
				hidden_effect = {
					define_general = {
						name = general_coup
						shock = 4
						fire = 2
						manuever = 4
						siege = 2
					}
				}
				
				add_republican_tradition = -15
				add_government_reform = presidential_despot_reform
				define_ruler = {
					name = general_coup
					change_MIL = 3
					attach_leader = general_coup
				}
				hidden_effect = { add_ruler_personality = bold_fighter_personality }
			}
		}
	}
}

country_event = {
	id = GE_reform_cycle_republic.208
	title = GE_reform_cycle_republic.208.t
	desc = GE_reform_cycle_republic.208.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		OR = {
			has_reform = mixed_republic_reform
		}
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = GE_reform_cycle_republic.208.a
			
		add_country_modifier = {
			name = "Enjoying_The_Peace" #-10% Stability Cost, +0.1 Republican tradition
			duration = 3650
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.208.b
		
		add_years_of_income = 0.25
		add_estate_influence_modifier = {
			estate = estate_burghers
			desc = EST_VAL_BURGHERS_ADVANCE
			influence = 10
			duration = 3650
		}
		if = {
			limit = {
				has_faction = mr_aristocrats
			}
			add_faction_influence = {
				faction = mr_aristocrats
				influence = 10
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.208.c

		
		highlight = yes

		trigger = {
			ruler_has_personality = embezzler_personality
		}

		add_years_of_income = 1
		add_corruption = -1
	}
}

country_event = {
	id = GE_reform_cycle_republic.401
	title = GE_reform_cycle_republic.401.t
	desc = GE_reform_cycle_republic.401.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		has_reform = administrative_divisions_reform
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_colony = no
					is_territory = no
					is_capital = no
				}
				save_event_target_as = GE_reform_cycle_republic.401
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.401.a
			
		random_owned_province = {
			limit = {
				province_id = event_target:GE_reform_cycle_republic.401
			}
			random_list = {
				50 = { }
				50 = {
					spawn_rebels = {
						type = anti_tax_rebels
						size = 2
					}
				}
			}
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.401.b
		
		every_owned_province = {
			limit = {
				area = event_target:holy_orthodoxy_cycle_GE_pos
			}
			add_local_autonomy = 15
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.401.c
		
		highlight = yes
		
		every_owned_province = {
			limit = {
				area = event_target:holy_orthodoxy_cycle_GE_pos
			}
			add_unrest = 8
		}
	}
}

country_event = {
	id = GE_reform_cycle_republic.402
	title = GE_reform_cycle_republic.402.t
	desc = GE_reform_cycle_republic.402.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		has_reform = administrative_divisions_reform
		NOT = { has_country_modifier = Maintain_Taxes }
		NOT = { has_country_modifier = Maintain_Income }
	}

	is_triggered_only = yes #Pulse
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {

	}
	
	option = {
		name = GE_reform_cycle_republic.402.a
			
		add_country_modifier = {
			name = "Maintain_Taxes" #+10% Tax
			duration = 9125
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.402.b
		
		add_country_modifier = {
			name = "Maintain_Income" #-1 Unrest
			duration = 9125
		}
	}
	
	option = {
		name = GE_reform_cycle_republic.402.c
		
		highlight = yes
		
		trigger = {
			OR = {
				ruler_has_personality = midas_touched_personality
				ruler_has_personality = entrepreneur_personality
			}
		}
		if = {
			limit = {
				ruler_has_personality = midas_touched_personality
			}
		}
		else_if = {
			limit = {
				ruler_has_personality = entrepreneur_personality
			}
		}
		
		add_country_modifier = {
			name = "Optimized_Taxation" #+5% Goods Produced, +5% Tax
			duration = 9125
		}

	}
}