﻿add_namespace = italy_md

#Lateran Treaties Accepted
country_event = {
	id = italy_md.1
	title = italy_md.1.t
	desc = italy_md.1.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.1.o1
		log = "[GetDateText]: [This.GetName]: italy_md.1.o1 executed"
		add_political_power = 10
		add_opinion_modifier = {
			target = HLS
			modifier = lateran_treaties_accepted
		}
	}
}
#Lateran Treaties Refused
country_event = {
	id = italy_md.2
	title = italy_md.2.t
	desc = italy_md.2.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.2.o1
		log = "[GetDateText]: [This.GetName]: italy_md.2.o1 executed"
		clr_country_flag = HLS_lateran_treaties
		add_opinion_modifier = {
			target = HLS
			modifier = lateran_treaties_refused
		}
	}
}
#Demand Subjugation to Minors
country_event = {
	id = italy_md.3
	title = italy_md.3.t
	desc = italy_md.3.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = { #Accept
		name = italy_md.3.o1
		log = "[GetDateText]: [This.GetName]: italy_md.3.o1 executed"
		ITA = { country_event = italy_md.4 }
		ai_chance = {
			factor = 50
		}
	}
	option = { #Refuse
		name = italy_md.3.o2
		log = "[GetDateText]: [This.GetName]: italy_md.3.o2 executed"
		add_opinion_modifier = {
			target = ITA
			modifier = outrageous_demands
		}
		ITA = { country_event = italy_md.5 }
		ai_chance = {
			factor = 50
			modifier = {
				tag = HLS
				factor = 0
			}
		}
	}
}
#Minor accepted to be annexed
country_event = {
	id = italy_md.4
	title = italy_md.4.t
	desc = italy_md.4.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.4.o1
		log = "[GetDateText]: [This.GetName]: italy_md.4.o1 executed"
		annex_country = { target = FROM transfer_troops = no }
	}
}
#Minor refused to be annexed
country_event = {
	id = italy_md.5
	title = italy_md.5.t
	desc = italy_md.5.d
	picture = GFX_report_event_war
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.5.o1
		log = "[GetDateText]: [This.GetName]: italy_md.5.o1 executed"
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
		add_opinion_modifier = {
			target = FROM
			modifier = refused_to_be_annexed
		}
	}
}
#Support ENI in Africa/Arabia
country_event = {
	id = italy_md.6
	title = italy_md.6.t
	desc = italy_md.6.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.6.o1
		log = "[GetDateText]: [This.GetName]: italy_md.6.o1 executed"
		ITA = { country_event = italy_md.8 }
		add_opinion_modifier = {
			target = ITA
			modifier = ITA_oil_investments_africa
		}
		if = {
			limit = {
				tag = EGY
			}
			add_resource = {  #Egyptian Coast on the Red Sea
				type = oil 
				amount = 4
				state = 457
			}
			ITA = { set_country_flag = EGY_happened_egypt_oil_deal_through_industry_focus }
		}
		if = {
			limit = {
				tag = NGR
			}
			add_resource = {  #Lagos
				type = oil 
				amount = 4
				state = 558
			}
		}
		if = {
			limit = {
				tag = SAU
			}
			add_resource = {  #Rihad
				type = oil 
				amount = 4
				state = 678
			}
		}
		if = {
			limit = {
				tag = UAE
			}
			add_resource = {  #Abu Dhabi
				type = oil 
				amount = 4
				state = 658
			}
		}
		ai_chance = {
			factor = 80
			modifier = { 
				factor = 70 
				has_government = communism
			}
		}
	}
	option = {
		name = italy_md.6.o2
		log = "[GetDateText]: [This.GetName]: italy_md.6.o2 executed"
		ITA = { country_event = italy_md.7 }
		if = {
			limit = {
				tag = EGY
			}
			add_resource = {  #Egyptian Coast on the Red Sea
				type = oil 
				amount = 5
				state = 457
			}
			ITA = { set_country_flag = egypt_refused_deal }
		}
		if = {
			limit = {
				tag = NGR
			}
			add_resource = {  #Lagos
				type = oil 
				amount = 5
				state = 558
			}
			ITA = { set_country_flag = nigeria_refused_deal }
		}
		if = {
			limit = {
				tag = SAU
			}
			add_resource = {  #Rihad
				type = oil 
				amount = 5
				state = 678
			}
			ITA = { set_country_flag = saudi_arabia_refused_deal }			
		}
		if = {
			limit = {
				tag = UAE
			}
			add_resource = {  #Abu Dhabi
				type = oil 
				amount = 5
				state = 658
			}
			ITA = { set_country_flag = uae_refused_deal }			
		}
		ai_chance = {
			factor = 20
			modifier = {
				factor = 35
				OR = {
					has_government = nationalist
					has_government = fascism 
				}
			}
		}
	}
}
#[From.GetName] refuses
country_event = {
	id = italy_md.7
	title = italy_md.7.t
	desc = italy_md.7.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.7.o1
		log = "[GetDateText]: [This.GetName]: italy_md.7.o1 executed"
		add_opinion_modifier = {
			target = FROM
			modifier = ITA_refused_oil_investments_africa
		}
	}
}
#[From.GetName] accepts!
country_event = {
	id = italy_md.8
	title = italy_md.8.t
	desc = italy_md.8.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.8.o1
		log = "[GetDateText]: [This.GetName]: italy_md.8.o1 executed"
		add_opinion_modifier = {
			target = FROM
			modifier = ITA_accepted_oil_investments_africa
		}
		random_owned_state = {
			add_resource = {
				type = oil 
				amount = 3
			}
		}
	}
}
#Egypt - Special event if going "Follow Mussolinis Dream" without going "Support ENI in Africa" first
country_event = {
	id = italy_md.9
	title = italy_md.9.t
	desc = italy_md.9.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.9.o1
		log = "[GetDateText]: [This.GetName]: italy_md.9.o1 executed"
		add_resource = {  #Egyptian Coast on the Red Sea
			type = oil 
			amount = 4
			state = 457
		}
		add_opinion_modifier = {
			target = ITA
			modifier = ITA_oil_investments_africa
		}
		add_to_variable = { party_pop_array^21 = 0.025 } #Fascist Increase by 2.5%
		ITA = { country_event = italy_md.8 }
		ITA = { set_country_flag = EGY_oil_deal_through_fascist_tree }
	}
	option = {
		name = italy_md.9.o2
		log = "[GetDateText]: [This.GetName]: italy_md.9.o1 executed"
		add_resource = {  #Egyptian Coast on the Red Sea
			type = oil 
			amount = 8
			state = 457
		}
		ITA = { country_event = italy_md.10 }
		ITA = { set_country_flag = EGY_oil_deal_through_fascist_tree }
	}
}
#Egypt refuses!
country_event = {
	id = italy_md.10
	title = italy_md.10.t
	desc = italy_md.10.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.10.o1
		log = "[GetDateText]: [This.GetName]: italy_md.10.o1 executed"
		if = {
			limit = { country_exists = EGY }	
			every_state = {
				limit = { 
					is_core_of = EGY
				}
				add_claim_by = ROOT
			}	
			create_wargoal = {
				type = annex_everything
				target = EGY
			}
			add_opinion_modifier = {
				target = EGY
				modifier = ITA_refused_oil_investments_africa
			}
		}
	}
}
#Invitation to Roman Empire
country_event = {
	id = italy_md.11
	title = italy_md.11.t
	desc = italyf_md.11.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {	#Accept
		name = italy_md.11.o1
		log = "[GetDateText]: [This.GetName]: italy_md.11.o1 executed"
		ITA = { add_to_faction = ROOT }
		set_country_flag = seeks_italian_alliance
		ITA = { country_event = diplomatic_response.1 }
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				NOT = { has_war_with = ITA }
			}
			modifier = {
				factor = 45
				set_temp_variable = { temp_idx = -1 }
				any_of = {
					array = influence_array
					value = v
					index = i
					if = {
						limit = { var:v = { tag = ITA } }
						set_temp_variable = { temp_idx = i }
						always = yes
					}
					else = { always = no }
				}
				check_variable = { temp_idx > -1 }
				check_variable = { influence_array_calc^temp_idx > 0.2 }
			}
			modifier = {
				factor = 50
				set_temp_variable = { temp_idx = -1 }
				any_of = {
					array = influence_array
					value = v
					index = i
					if = {
						limit = { var:v = { tag = ITA } }
						set_temp_variable = { temp_idx = i }
						always = yes
					}
					else = { always = no }
				}
				check_variable = { temp_idx > -1 }
				check_variable = { influence_array_calc^temp_idx > 0.4 }
			}
			modifier = {
				factor = 80
				set_temp_variable = { temp_idx = -1 }
				any_of = {
					array = influence_array
					value = v
					index = i
					if = {
						limit = { var:v = { tag = ITA } }
						set_temp_variable = { temp_idx = i }
						always = yes
					}
					else = { always = no }
				}
				check_variable = { temp_idx > -1 }
				check_variable = { influence_array_calc^temp_idx > 0.8 }
			}
			modifier = {
				factor = 0
				is_in_faction = yes
			}
		}
	}
	
	option = {	#Decline
		name = italy_md.11.o2
		log = "[GetDateText]: [This.GetName]: italy_md.11.o1 executed"
		ITA = { country_event = diplomatic_response.2 }
		ai_chance = {
			factor = 60
			modifier = { 
				factor = 100
				has_war_with = ITA
				is_ai = yes
			}
			modifier = { 
				factor = 75
				set_temp_variable = { temp_idx = -1 }
				any_of = {
					array = influence_array
					value = v
					index = i
					if = {
						limit = { var:v = { tag = ITA } }
						set_temp_variable = { temp_idx = i }
						always = yes
					}
					else = { always = no }
				}
				check_variable = { temp_idx > -1 }
				check_variable = { influence_array_calc^temp_idx < 0.2 }
			}
		}
	}
}
#Attempt to Join [Faction]
country_event = {
	id = italy_md.12
	title = italy_md.12.t
	desc = italy_md.12.d
	picture = GFX_report_event_political_deal2
	
	is_triggered_only = yes
	
	option = {	#Accept
		name = italy_md.12.o1
		log = "[GetDateText]: [This.GetName]: italy_md.12.o1 executed"
		add_to_faction = ITA
		ITA = { country_event = diplomatic_response.1 }
		ai_chance = { factor = 90 }
	}
	
	option = {	#Decline
		name = italy_md.12.o2
		log = "[GetDateText]: [This.GetName]: italy_md.12.o1 executed"
		ITA = { country_event = diplomatic_response.2 }
		ai_chance = { factor = 10 }
	}
}
#Eastern Investments
country_event = {
	id = italy_md.13
	title = italy_md.13.t
	desc = italy_md.13.d
	picture = GFX_report_event_european_union
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.13.o1
		log = "[GetDateText]: [This.GetName]: italy_md.13.o1 executed"
		add_political_power = 10
		random_owned_state = {
			limit = {
				free_building_slots = {
					building = infrastructure
					size > 0
					include_locked = yes
				}
			}
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
	}
}
#EU Military Cooperation
country_event = {
	id = italy_md.14
	title = italy_md.14.t
	desc = italy_md.14.d
	picture = GFX_report_event_european_union
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.14.o1
		log = "[GetDateText]: [This.GetName]: italy_md.14.o1 executed"
		army_experience = 5
		navy_experience = 10
		air_experience = 10
		add_tech_bonus = {
			name = infantry_tech
			bonus = 0.5
			uses = 1
			category = Cat_INF
		}
	}
}
#24th of August 2016 Earthquake
country_event = {
	id = italy_md.15
	title = italy_md.15.t
	desc = italy_md.15.d
	picture = GFX_report_event_earthquake
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.15.o1
		log = "[GetDateText]: [This.GetName]: italy_md.15.o1 executed"
		2 = {
			damage_building = {
				type = industrial_complex
				damage = 0.4
			}
			damage_building = {
				type = infrastructure
				damage = 0.1
			}
		}
	}
}
#6th of April 2009 Earthquake
country_event = {
	id = italy_md.16
	title = italy_md.16.t
	desc = italy_md.16.d
	picture = GFX_report_event_earthquake
		
	is_triggered_only = yes
	
	trigger = {
		has_full_control_of_state = 157
	}
	
	option = {
		name = italy_md.16.o1
		log = "[GetDateText]: [This.GetName]: italy_md.16.o1 executed"
		157 = {
			damage_building = {
				type = industrial_complex
				damage = 0.5
			}
			damage_building = {
				type = infrastructure
				damage = 0.2
			}
		}
	}
}
#Mass Migration
country_event = {
	id = italy_md.17
	title = italy_md.17.t
	desc = italy_md.17.d
	picture = GFX_report_event_migrant_boat
		
	fire_only_once = yes
	
	trigger = {
		original_tag = ITA
		date > 2002.1.1
	}
	option = {
		name = italy_md.17.o1
		log = "[GetDateText]: [This.GetName]: italy_md.17.o1 executed"
		add_ideas = ITA_migrants_from_africa
		set_country_flag = ITA_african_migrants
	}
}
#Immediately Stop Mass Migration if going Fascist Route
country_event = {
	id = italy_md.18
	title = italy_md.18.t
	desc = italy_md.18.d
	picture = GFX_report_event_migrant_boat
		
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 20
	}
	
	trigger = {
		original_tag = ITA
		has_country_flag = ITA_african_migrants
		OR = {
			has_completed_focus = ITA_march_on_rome
			has_completed_focus = ITA_reestablish_rome
			has_completed_focus = ITA_empower_the_king
		}
	}
	
	option = {
		name = italy_md.18.o1
		log = "[GetDateText]: [This.GetName]: italy_md.18.o1 executed"
		remove_ideas = ITA_migrants_from_africa
		clr_country_flag = ITA_african_migrants
	}
}
#Italeave
country_event = {
	id = italy_md.19
	title = italy_md.19.t
	desc = italy_md.19.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.19.o1
		log = "[GetDateText]: [This.GetName]: italy_md.19.o1 executed"
		custom_effect_tooltip = ITA_italeave_referendum
		hidden_effect = {
			random_list = {
				60 = { 
					country_event = { id = italy_md.20 days = 1 }
				}
				40 = { 
					country_event = { id = italy_md.21 days = 1 }
				}
			}
		}
	}
}
#Italeave: Leave
country_event = {
	id = italy_md.20
	title = italy_md.20.t
	desc = italy_md.20.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.20.o1
		log = "[GetDateText]: [This.GetName]: italy_md.20.o1 executed"
		add_stability = 0.05
		set_country_flag = italeave_referendum_leave
		remove_ideas = EU_member 
	}
}
#Italeave: Remain
country_event = {
	id = italy_md.21
	title = italy_md.21.t
	desc = italy_md.21.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.21.o1
		log = "[GetDateText]: [This.GetName]: italy_md.21.o1 executed"
		add_stability = 0.05
		set_country_flag = italeave_referendum_remain
	}
}
#Reactionary Election
country_event = {
	id = italy_md.22
	title = italy_md.22.t
	desc = italy_md.22.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.22.o1
		log = "[GetDateText]: [This.GetName]: italy_md.22.o1 executed"
		set_politics = {
			ruling_party = communism
			elections_allowed = yes
		}
		set_country_flag = ITA_elected_reactionary_party
		hidden_effect = {
			country_event = { id = italy_md.25 days = 2 }
			clear_array = ruling_party
			clear_array = gov_coalition_array
			add_to_array = { ruling_party = 6 }
			update_government_coalition_strength = yes
			update_party_name = yes
			set_coalition_drift = yes
		}
	}
}
#Reacionary Influence in Neighbor
country_event = {
	id = italy_md.23
	title = italy_md.23.t
	desc = italy_md.23.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.23.o1
		log = "[GetDateText]: [This.GetName]: italy_md.23.o1 executed"
		add_to_variable = { party_pop_array^6 = 0.10 }
		custom_effect_tooltip = ITA_reactionary_party_tt
	}
}
#Salerno-to-Reggio Calabria Motorway
country_event = {
	id = italy_md.24
	title = italy_md.24.t
	desc = italy_md.24.d
	picture = GFX_report_event_motorway
	
	fire_only_once = yes	
	
	trigger = {
		original_tag = ITA
		owns_state = 82
		date > 2016.1.1
	}
	
	mean_time_to_happen = {
		days = 30
	}
	
	option = {
		name = italy_md.24.o1
		log = "[GetDateText]: [This.GetName]: italy_md.24.o1 executed"
		if = {
			limit = {
				82 = { infrastructure < 10 }
			}
			82 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
}
#Rise of Opposition
country_event = {
	id = italy_md.25
	title = italy_md.25.t
	desc = italy_md.25.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.25.o1
		log = "[GetDateText]: [This.GetName]: italy_md.25.o1 executed"
		trigger = {
			has_country_flag = ITA_elected_reactionary_party
		}		
	}
	option = {
		name = italy_md.25.o2
		log = "[GetDateText]: [This.GetName]: italy_md.25.o1 executed"
		trigger = {
			has_country_flag = ITA_political_reforms_done
		}
	}
}
#Political Reforms
country_event = {
	id = italy_md.26
	title = italy_md.26.t
	desc = italy_md.26.d
	picture = GFX_report_event_italy
		
	fire_only_once = yes	
		
	is_triggered_only = yes
	
	option = {
		name = italy_md.26.o1
		log = "[GetDateText]: [This.GetName]: italy_md.26.o1 executed"
		add_political_power = 50
		set_country_flag = ITA_political_reforms_done
		hidden_effect = {
			country_event = { id = italy_md.25 days = 2 }
		}
	}
}
#Investments Abroad
country_event = {
	id = italy_md.27
	title = italy_md.27.t
	desc = italy_md.27.d
	picture = GFX_report_event_italy
	
	is_triggered_only = yes
	
	option = {
		name = italy_md.27.o1
		log = "[GetDateText]: [This.GetName]: italy_md.27.o1 executed"
		add_political_power = 15
		add_opinion_modifier = {
			target = ITA
			modifier = improve_trade
		}
		ITA = {
			add_opinion_modifier = {
				target = ROOT
				modifier = improve_trade
			}
		}
	}
}
#Mafia Sabotages 1
country_event = {
	id = italy_md.28
	title = italy_md.28.t
	desc = italy_md.28.d
	picture = GFX_report_event_damaged_industry
	
	fire_only_once = yes
	
	trigger = {
		has_idea = ITA_mafia_curtailed
		any_owned_state = {
			industrial_complex > 0
		}
		any_owned_state = {
			infrastructure > 0
		}
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = italy_md.28.o1
		log = "[GetDateText]: [This.GetName]: italy_md.28.o1 executed"
		swap_ideas = {
			add_idea = ITA_mafia
			remove_idea = ITA_mafia_curtailed
			
		}
		random_owned_state = {
			limit = {
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 0.35
			}
		}
		random_owned_state = {
			limit = {
				infrastructure > 0
			}
			damage_building = {
				type = infrastructure
				damage = 0.35
			}
		}
		add_stability = -0.01
		add_stability = -0.015
		news_event = { id = news.109 }
		custom_effect_tooltip = ITA_stop_war_on_mafia
		ai_chance = {
			factor = 0
		}
	}
	
	option = {
		name = italy_md.28.o2
		log = "[GetDateText]: [This.GetName]: italy_md.28.o2 executed"
		set_country_flag = ITA_mafia_sabotages_1
		
		random_owned_state = {
			limit = {
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
		random_owned_state = {
			limit = {
				infrastructure > 0
			}
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
		custom_effect_tooltip = ITA_continue_war_on_mafia		
		ai_chance = {
			factor = 100
		}
	}
}
#Mafia Sabotages 2
country_event = {
	id = italy_md.29
	title = italy_md.29.t
	desc = italy_md.29.d
	picture = GFX_report_event_damaged_industry
	
	fire_only_once = yes
	
	trigger = {
		has_country_flag = ITA_mafia_sabotages_1
		has_idea = ITA_mafia_curtailed
		any_owned_state = {
			arms_factory > 0
		}
		any_owned_state = {
			industrial_complex > 0
		}
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = italy_md.29.o1
		log = "[GetDateText]: [This.GetName]: italy_md.29.o1 executed"
		swap_ideas = {
			add_idea = ITA_mafia
			remove_idea = ITA_mafia_curtailed
			
		}
		random_owned_state = {
			limit = {
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 0.3
			}
		}
		random_owned_state = {
			limit = {
				arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 0.3
			}
		}
		clr_country_flag = ITA_mafia_sabotages_1
		add_stability = -0.01
		add_stability = -0.025
		news_event = { id = news.104 }
		custom_effect_tooltip = ITA_stop_war_on_mafia
		ai_chance = {
			factor = 0
		}
	}
	
	option = {
		name = italy_md.29.o2
		log = "[GetDateText]: [This.GetName]: italy_md.29.o2 executed"
		set_country_flag = ITA_mafia_sabotages_2
		
		random_owned_state = {
			limit = {
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
		
		random_owned_state = {
			limit = {
				arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 1
			}
		}
		custom_effect_tooltip = ITA_continue_war_on_mafia		
		ai_chance = {
			factor = 100
		}
	}
}
#Mafia Sabotages 3
country_event = {
	id = italy_md.30
	title = italy_md.30.t
	desc = italy_md.30.d
	picture = GFX_report_event_damaged_industry
	
	fire_only_once = yes
	
	trigger = {
		has_country_flag = ITA_mafia_sabotages_1
		has_country_flag = ITA_mafia_sabotages_2
		has_idea = ITA_mafia_curtailed
		any_owned_state = {
			infrastructure > 0
		}
		any_owned_state = {
			arms_factory > 0
		}
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = italy_md.30.o1
		log = "[GetDateText]: [This.GetName]: italy_md.30.o1 executed"
		swap_ideas = {
			add_idea = ITA_mafia
			remove_idea = ITA_mafia_curtailed
			
		}
		random_owned_state = {
			limit = {
				infrastructure > 0
			}
			damage_building = {
				type = infrastructure
				damage = 0.3
			}
		}
		random_owned_state = {
			limit = {
				arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 0.3
			}
		}
		clr_country_flag = ITA_mafia_sabotages_1
		clr_country_flag = ITA_mafia_sabotages_2
		add_stability = -0.01
		add_stability = -0.025
		news_event = { id = news.104 }
		custom_effect_tooltip = ITA_stop_war_on_mafia
		ai_chance = {
			factor = 0
		}
	}
	
	option = {
		name = italy_md.30.o2
		log = "[GetDateText]: [This.GetName]: italy_md.30.o2 executed"
		set_country_flag = ITA_mafia_sabotages_3
		
		random_owned_state = {
			limit = {
				infrastructure > 0
			}
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
		random_owned_state = {
			limit = {
				arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 1
			}
		}
		add_timed_idea = { idea = ITA_mafia_sabotages_industry days = 180 }
		custom_effect_tooltip = ITA_continue_war_on_mafia
		ai_chance = {
			factor = 100
		}
	}
}
#Mafia Sabotages 4
country_event = {
	id = italy_md.31
	title = italy_md.31.t
	desc = italy_md.31.d
	picture = GFX_report_event_italy
	
	fire_only_once = yes
	
	trigger = {
		has_country_flag = ITA_mafia_sabotages_1
		has_country_flag = ITA_mafia_sabotages_2
		has_idea = ITA_mafia_curtailed
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = italy_md.31.o1
		log = "[GetDateText]: [This.GetName]: italy_md.31.o1 executed"
		swap_ideas = {
			add_idea = ITA_mafia
			remove_idea = ITA_mafia_curtailed
			
		}
		clr_country_flag = ITA_mafia_sabotages_1
		clr_country_flag = ITA_mafia_sabotages_2
		clr_country_flag = ITA_mafia_sabotages_3
		add_stability = -0.03
		add_stability = -0.025
		news_event = { id = news.104 }
		custom_effect_tooltip = ITA_stop_war_on_mafia_tt
		ai_chance = {
			factor = 0
		}
	}
	
	option = {
		name = italy_md.31.o2
		log = "[GetDateText]: [This.GetName]: italy_md.31.o2 executed"
		set_country_flag = ITA_mafia_sabotages_4
		
		add_timed_idea = { idea = ITA_mafia_sabotages_military days = 90 }
		custom_effect_tooltip = ITA_continue_war_on_mafia_tt
		ai_chance = {
			factor = 100
		}
	}
}
#Victory over Mafia
country_event = {
	id = italy_md.32
	title = italy_md.32.t
	desc = italy_md.32.d
	picture = GFX_report_event_italy
	
	fire_only_once = yes
	
	trigger = {
		has_country_flag = ITA_mafia_sabotages_1
		has_country_flag = ITA_mafia_sabotages_2
		has_country_flag = ITA_mafia_sabotages_3
		has_country_flag = ITA_mafia_sabotages_4
		has_idea = ITA_mafia_curtailed
		AND = { 
			NOT = {
				has_idea = ITA_mafia_sabotages_industry
				has_idea = ITA_mafia_sabotages_military
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = italy_md.32.o1
		log = "[GetDateText]: [This.GetName]: italy_md.32.o1 executed"
		swap_ideas = {
			add_idea = ITA_victory_over_mafia
			remove_idea = ITA_mafia_curtailed
			
		}
		clr_country_flag = ITA_mafia_sabotages_1
		clr_country_flag = ITA_mafia_sabotages_2
		clr_country_flag = ITA_mafia_sabotages_3
		clr_country_flag = ITA_mafia_sabotages_4
		add_stability = 0.10
		news_event = { id = italy_news.8 }
		custom_effect_tooltip = ITA_end_war_on_mafia_tt
	}
}