ita_the_years_of_lead = {
}

ita_empire_managaement = {
	gcw_ai_war_timer = {
		allowed = {
			original_tag = ITA
		}
		available = {
			is_ai = yes
			NOT = {
				has_global_flag = EAM_Liberation_War
			}
		}
		activation = {
			is_ai = yes
			has_global_flag = EAM_Liberation_War
		}
		is_good = no
		days_mission_timeout = 180
		timeout_effect = {
			white_peace = GRE
			GRE = {
				country_event = { id = greEAMWar.3 }
			}
		}
	}
}

ita_Cassa_per_il_Mezzogiorno = {
	ita_survey = {
		icon = GFX_decision_generic_investigate
		allowed = {
			tag = ITA
		}
		visible = {
			NOT = {
				has_active_mission = ITA_industry_decider
			}
		}
		available = {
			check_variable = {
				var = Industy_Checker_ITA
				value = 1
				compare = greater_than_or_equals
			}
		}
		complete_effect = {
			activate_mission = ITA_industry_decider
			set_temp_variable = { TEMP_INDUSTRY_NUMBER = ITA_Cassa_per_il_Mezzogiorno_Available }
			subtract_from_temp_variable = { TEMP_INDUSTRY_NUMBER = ITA_Industry_in_use }

			set_variable = {
				var = Industy_Checker_ITA
				value = TEMP_INDUSTRY_NUMBER
			}
		}
	}
	ITA_industry_decider = {
		icon = GFX_decision_generic_decision
		allowed = {
			always = no
			tag = ITA
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 3
		timeout_effect = {
			if = {
				limit = {
					check_variable = {
						var = Industy_Checker_ITA
						value = 1
						compare = greater_than_or_equals
					}
				}
				if = {
					limit = {
					}
					PREV = {
						set_country_flag = has_building_in_progress
						random_list = {
							10 = {
								activate_mission = ITA_private_industry_expand_building_slot_1
								set_country_flag = effect_1_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_1_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_building_slot_2
								set_country_flag = effect_2_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_2_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_building_slot_3
								set_country_flag = effect_3_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_3_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_construct_civilian_factory_1
								set_country_flag = effect_4_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_4_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_construct_civilian_factory_2
								set_country_flag = effect_5_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_5_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_construct_civilian_factory_3
								set_country_flag = effect_6_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_6_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_infrastrcuture_1
								set_country_flag = effect_7_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_7_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_infrastrcuture_2
								set_country_flag = effect_8_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_8_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_infrastrcuture_3
								set_country_flag = effect_9_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_9_picked
								}
							}
							10 = {
								activate_mission = ITA_private_industry_expand_infrastrcuture_4
								set_country_flag = effect_10_picked
								add_to_variable = {
									var = ITA_Industry_in_use
									value = 1
								}
								modifier = {
									factor = 0
									has_country_flag = effect_10_picked
								}
							}
						}
						set_variable = {
							var = Industy_Checker_ITA
							value = TEMP_INDUSTRY_NUMBER
						}
					}
				}
			}
		}
	}
	ITA_private_industry_expand_building_slot_1 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_extra_state_shared_building_slots = 1
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_1_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_building_slot_2 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					infrastructure > 4
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_extra_state_shared_building_slots = 1
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_2_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_building_slot_3 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					infrastructure > 4
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_extra_state_shared_building_slots = 1
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_3_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_construct_civilian_factory_1 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = schools
						size > 0
						include_locked = no
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = schools
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_4_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_construct_civilian_factory_2 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = schools
						size > 0
						include_locked = no
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = schools
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_5_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_construct_civilian_factory_3 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = schools
						size > 0
						include_locked = no
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = schools
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_6_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_infrastrcuture_1 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					AND = {
						infrastructure > 3
						infrastructure < 10
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_7_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_infrastrcuture_2 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					AND = {
						infrastructure > 3
						infrastructure < 10
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_8_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_infrastrcuture_3 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					AND = {
						infrastructure > 3
						infrastructure < 10
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_9_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
	ITA_private_industry_expand_infrastrcuture_4 = {
		allowed = {
			always = no
		}
		available = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 125
		timeout_effect = {
			random_owned_state = {
				limit = {
					AND = {
						infrastructure > 3
						infrastructure < 10
					}
					OR = {
						check_variable = { nationality = 2 }
						check_variable = { nationality = 5 }
						check_variable = { nationality = 201 }
						check_variable = { nationality = 202 }
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			clr_country_flag = has_building_in_progress
			clr_country_flag = effect_10_picked
			add_to_variable = {
				var = ITA_Industry_in_use
				value = -1
			}
			add_to_variable = {
				var = Industy_Checker_ITA
				value = 1
			}
		}
	}
}

ita_Fascisms_Favors = {

	# good boy

	ITA_hold_down_party_monarchists = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 5
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 25
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_5_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 25
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_hold_down_party_monarchists"
			add_to_variable = { ita_good_boy_points_bank = -5 }
			add_to_variable = { political_power = -25 }
			add_popularity = {
				ideology = despotism
				popularity = -0.02
			}
			add_popularity = {
				ideology = anocracy
				popularity = -0.03
			}
		}
	}

	ITA_appeal_to_students = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 5
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 25
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_5_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 25
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_appeal_to_students"
			add_to_variable = { ita_good_boy_points_bank = -5 }
			add_to_variable = { political_power = -25 }
			add_manpower = 1000
		}
	}

	ITA_help_borghese_army = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_help_borghese_army"
			add_to_variable = { ita_good_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_army_add_borghese_pop = yes
		}
	}

	ITA_help_borghese_navy = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_help_borghese_navy"
			add_to_variable = { ita_good_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_navy_add_borghese_pop = yes
		}
	}

	ITA_help_borghese_airforce = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_help_borghese_airforce"
			add_to_variable = { ita_good_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_airforce_add_borghese_pop = yes
		}
	}

	ITA_help_borghese_MSVN = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_help_borghese_MSVN"
			add_to_variable = { ita_good_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_blackshirts_add_borghese_pop = yes
		}
	}

	ITA_help_borghese_carabinieri = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_help_borghese_carabinieri"
			add_to_variable = { ita_good_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_carabinieri_add_borghese_pop = yes
		}
	}

	ITA_funnel_MSVN_to_Army = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 15
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 75
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_15_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 75
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_funnel_MSVN_to_Army"
			add_to_variable = { ita_good_boy_points_bank = -15 }
			add_to_variable = { political_power = -75 }
			ITA_blackshirts_remove_borghese_pop = yes
			ITA_army_add_borghese_pop = yes
			add_manpower = 1250
		}
	}

	ITA_expand_colonial_bureaucracy = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_good_boy_points_bank
				value = 20
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 125
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_20_good_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 125
		days_remove = 720

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_expand_colonial_bureaucracy"
			add_to_variable = { ita_good_boy_points_bank = -20 }
			add_to_variable = { political_power = -125 }
			ITA_LARGER_EMPIRE_1 = yes
		}
	}

	# bad boy

	ITA_marches_in_libia = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 5
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_5_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 25
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_marches_in_libia"
			add_to_variable = { ita_bad_boy_points_bank = -5 }
			add_to_variable = { political_power = -25 }
			450 = {
				add_manpower = 600
			}
			448 = {
				add_manpower = 600
			}
		}
	}

	ITA_marches_in_albania = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 5
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_5_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 25
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_marches_in_albania"
			add_to_variable = { ita_bad_boy_points_bank = -5 }
			add_to_variable = { political_power = -25 }
			1295 = {
				add_manpower = 600
			}
			44 = {
				add_manpower = 600
			}
		}
	}

	ITA_marches_in_montenegro = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 5
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_5_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 25
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_marches_in_montenegro"
			add_to_variable = { ita_bad_boy_points_bank = -5 }
			add_to_variable = { political_power = -25 }
			745 = {
				add_manpower = 600
			}
			1326 = {
				add_manpower = 600
			}
		}
	}

	ITA_fuck_sogno_army = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_fuck_sogno_army"
			add_to_variable = { ita_bad_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_army_add_borghese_pop = yes
		}
	}

	ITA_fuck_sogno_navy = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_fuck_sogno_navy"
			add_to_variable = { ita_bad_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_navy_add_borghese_pop = yes
		}
	}

	ITA_fuck_sogno_airforce = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_fuck_sogno_airforce"
			add_to_variable = { ita_bad_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_airforce_add_borghese_pop = yes
		}
	}

	ITA_fuck_sogno_MSVN = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_fuck_sogno_MSVN"
			add_to_variable = { ita_bad_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_blackshirts_add_borghese_pop = yes
		}
	}

	ITA_fuck_sogno_carabinieri = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 10
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 50
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_fuck_sogno_carabinieri"
			add_to_variable = { ita_bad_boy_points_bank = -10 }
			add_to_variable = { political_power = -50 }
			ITA_carabinieri_add_borghese_pop = yes
		}
	}

	ITA_rally_young_blackshirts = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 15
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_10_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 75
		days_remove = 125

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_rally_young_blackshirts"
			add_to_variable = { ita_bad_boy_points_bank = -15 }
			add_to_variable = { political_power = -75 }
			ITA_blackshirts_add_borghese_pop = yes
			add_manpower = 750
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 750
				producer = ITA
			}
		}
	}

	ITA_appeal_to_fascist_industrialists = {

		icon = GFX_decision_generic_prospect_for_resources

		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = {
			check_variable = {
				var = ita_bad_boy_points_bank
				value = 20
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_20_bad_boy_points_cost

		ai_will_do = {
			factor = 25
		}
		cost = 125
		days_remove = 650

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ITA_appeal_to_fascist_industrialists"
			add_to_variable = { ita_bad_boy_points_bank = -20 }
			add_to_variable = { political_power = -125 }
			ITA_casa_point_5_gain = yes
		}
	}
}

ita_best_of_enemies = {
	ITA_borghese_coup = {


		available = {
			always = no
		}

		days_mission_timeout = 30

		activation = {
			has_global_flag = ITA_lost_oil_crisis
			NOT = {
				has_country_flag = ita_scorza_wins
			}
			count_triggers = {
				amount = 4
				check_variable = { ITA_Borghese_RoyalArmy > ITA_Sogno_RoyalArmy }
				check_variable = { ITA_Borghese_RoyalNavy > ITA_Sogno_RoyalNavy }
				check_variable = { ITA_Borghese_RoyalAirforce > ITA_Sogno_RoyalAirforce }
				check_variable = { ITA_Borghese_Blackshirts > ITA_Sogno_Blackshirts }
				check_variable = { ITA_Borghese_Carabinieri > ITA_Sogno_Carabinieri }
			}
		}

		cancel_trigger = {
			NOT = {
				count_triggers = {
					amount = 4
					check_variable = { ITA_Borghese_RoyalArmy > ITA_Sogno_RoyalArmy }
					check_variable = { ITA_Borghese_RoyalNavy > ITA_Sogno_RoyalNavy }
					check_variable = { ITA_Borghese_RoyalAirforce > ITA_Sogno_RoyalAirforce }
					check_variable = { ITA_Borghese_Blackshirts > ITA_Sogno_Blackshirts }
					check_variable = { ITA_Borghese_Carabinieri > ITA_Sogno_Carabinieri }
				}
			}
		}

		visible = {
			AND = {
				has_global_flag = ITA_lost_oil_crisis
				count_triggers = {
					amount = 4
					check_variable = { ITA_Borghese_RoyalArmy > ITA_Sogno_RoyalArmy }
					check_variable = { ITA_Borghese_RoyalNavy > ITA_Sogno_RoyalNavy }
					check_variable = { ITA_Borghese_RoyalAirforce > ITA_Sogno_RoyalAirforce }
					check_variable = { ITA_Borghese_Blackshirts > ITA_Sogno_Blackshirts }
					check_variable = { ITA_Borghese_Carabinieri > ITA_Sogno_Carabinieri }
				}
			}
		}

		is_good = no

		timeout_effect = {
			ITA = {
				country_event = {
					id = borghese.1
					days = 10
				}
			}
		}
	}

	ITA_sogno_coup = {


		available = {
			always = no
		}

		days_mission_timeout = 30

		activation = {
			AND = {
				has_global_flag = ITA_lost_oil_crisis
				has_government = fascism
				has_country_flag = ita_scorza_wins
				count_triggers = {
					amount = 4
					check_variable = { ITA_Borghese_RoyalArmy < ITA_Sogno_RoyalArmy }
					check_variable = { ITA_Borghese_RoyalNavy < ITA_Sogno_RoyalNavy }
					check_variable = { ITA_Borghese_RoyalAirforce < ITA_Sogno_RoyalAirforce }
					check_variable = { ITA_Borghese_Blackshirts < ITA_Sogno_Blackshirts }
					check_variable = { ITA_Borghese_Carabinieri < ITA_Borghese_Carabinieri }
				}
			}
		}

		cancel_trigger = {
			NOT = {
				count_triggers = {
					amount = 4
					check_variable = { ITA_Borghese_RoyalArmy < ITA_Sogno_RoyalArmy }
					check_variable = { ITA_Borghese_RoyalNavy < ITA_Sogno_RoyalNavy }
					check_variable = { ITA_Borghese_RoyalAirforce < ITA_Sogno_RoyalAirforce }
					check_variable = { ITA_Borghese_Blackshirts < ITA_Sogno_Blackshirts }
					check_variable = { ITA_Borghese_Carabinieri < ITA_Sogno_Carabinieri }
				}
			}
		}

		visible = {
			AND = {
				has_global_flag = ITA_lost_oil_crisis
				count_triggers = {
					amount = 4
					check_variable = { ITA_Borghese_RoyalArmy > ITA_Sogno_RoyalArmy }
					check_variable = { ITA_Borghese_RoyalNavy > ITA_Sogno_RoyalNavy }
					check_variable = { ITA_Borghese_RoyalAirforce > ITA_Sogno_RoyalAirforce }
					check_variable = { ITA_Borghese_Blackshirts > ITA_Sogno_Blackshirts }
					check_variable = { ITA_Borghese_Carabinieri > ITA_Sogno_Carabinieri }
				}
			}
		}

		is_good = no

		timeout_effect = {
			ITA = {
				country_event = {
					id = sogno.1
					days = 10
				}
			}
		}
	}
}

ITA_party_unity = {
	#
}

ita_agip_reinvestment = {
	ita_add_agip_success = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_country_flag = ita_reinvest_in_agip
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_add_agip_success"
			add_to_variable = {
				var = ITA_AGIP_Success
				value = 10
			}
		}
	}
	ita_subtract_agip_success = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_country_flag = ita_reinvest_in_agip
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_subtract_agip_success"
			add_to_variable = {
				var = ITA_AGIP_Success
				value = -10
			}
		}
	}
}

ITA_nuclear_program = {

	ITA_make_nuclear_weapons = {
		available = {
			has_country_flag = ITA_funding_sent
			check_variable = {
				var = ITA_nuclearprogress
				value = 1
				compare = greater_than_or_equals
			}
			NOT = {
				has_country_flag = ITA_nuke_making_time
			}
		}
		visible = {
			check_variable = {
				var = ITA_nuclearprogress
				value = 1
				compare = greater_than_or_equals
			}
		}
		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}
		complete_effect = {
			set_temp_variable = { ITA_nuke_test_days = 80 }
			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_fast_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_moderate_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 0 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_slow_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_stagnant_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 30 }
			}

			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Edoardo_Amaldi
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Paolo_Moci
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Emilio_Segre
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 20 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Bruno_Pontecorvo
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 15 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Ettore_Majorana
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 0 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Franco_Rasetti
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 10 }
			}

			set_variable = {
				var = italynukedaytimes
				value = ITA_nuke_test_days
			}
			set_country_flag = ITA_nuke_making_time
			activate_mission = ITA_test_nuke_warhead
		}
	}

	ITA_test_nuke_warhead = {

		icon = GFX_decision_generic_nuke

		available = {
			always = no
		}

		days_mission_timeout = italynukedaytimes

		activation = {
			always = no #Triggered from effect
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			clr_country_flag = ITA_nuke_making_time
			clr_country_flag = ITA_funding_sent
			add_to_variable = {
				var = ITA_nuclear_experience
				value = 1
			}
			if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 0
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 3
						compare = less_than
					}
				}
				set_country_flag = ITA_stagnant_nuke

				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_moderate_nuke
				clr_country_flag = ITA_fast_nuke
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 4
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 7
						compare = less_than
					}
				}
				set_country_flag = ITA_slow_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_moderate_nuke
				clr_country_flag = ITA_fast_nuke
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 8
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 12
						compare = less_than
					}
				}
				set_country_flag = ITA_moderate_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_fast_nuke
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 13
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 16
						compare = less_than
					}
				}
				set_country_flag = ITA_fast_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_moderate_nuke
			}
			add_to_variable = { ITA_nuclearstockpile = 1 }
			set_variable = { nuclear_stockpile = ITA_nuclearstockpile }
			set_variable = { nuclear_stockpile_k = nuclear_stockpile }
			divide_variable = { nuclear_stockpile_k = 1000 }
			set_variable = { nuclear_global_coverage = 0.1 }
			calculate_strike_capability = yes
			if = {
				limit = {
					check_variable = {
						var = ITA_nuclearstockpile
						value = 3
						compare = greater_than_or_equals
					}
					check_variable = {
						var = ITA_nuclearstockpile
						value = 59
						compare = less_than
					}
				}
				country_event = {
					id = NuclearItaly.3
					days = 1
					random_hours = 0
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclearstockpile
						value = 60
						compare = greater_than_or_equals
					}
					check_variable = {
						var = ITA_nuclearstockpile
						value = 299
						compare = less_than
					}
				}
				country_event = {
					id = NuclearItaly.4
					days = 1
					random_hours = 0
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclearstockpile
						value = 300
						compare = greater_than_or_equals
					}
					check_variable = {
						var = ITA_nuclearstockpile
						value = 799
						compare = less_than
					}
				}
				country_event = {
					id = NuclearItaly.5
					days = 1
					random_hours = 0
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclearstockpile
						value = 800
						compare = greater_than_or_equals
					}
				}
				country_event = {
					id = NuclearItaly.6
					days = 1
					random_hours = 0
				}
			}
		}
	}

	ita_test_the_bomb = {

		icon = GFX_decision_generic_nuke

		available = {
			has_country_flag = ITA_funding_sent
			NOT = {
				check_variable = {
					var = ITA_nuclearprogress
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			NOT = {
				has_country_flag = ITA_testing_bomb
				check_variable = {
					var = ITA_nuclearprogress
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}
		complete_effect= {
			set_country_flag = ITA_testing_bomb
			clr_country_flag = ITA_funding_sent
			set_temp_variable = { ITA_nuke_test_days = 120 }
			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_fast_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_moderate_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 0 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_slow_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_stagnant_nuke
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 30 }
			}

			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Edoardo_Amaldi
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Paolo_Moci
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = -10 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Emilio_Segre
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 20 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Bruno_Pontecorvo
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 15 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Ettore_Majorana
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 0 }
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Franco_Rasetti
					}
				}
				add_to_temp_variable = { ITA_nuke_test_days = 10 }
			}

			set_variable = {
				var = italynukedaytimes
				value = ITA_nuke_test_days
			}
			activate_mission = ITA_test_nuke
		}
	}

	ita_give_money = {

		icon = GFX_decision_generic_money

		available = {
			NOT = {
				has_country_flag = ITA_funding_sent
				has_country_flag = ITA_testing_bomb
			}
			NOT = {
				check_variable = {
					var = ITA_nuclearprogress
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			NOT = {
				check_variable = {
					var = ITA_nuclearprogress
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}
		days_remove = 6
		remove_effect = {
			set_country_flag = ITA_funding_sent
			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Edoardo_Amaldi
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.5 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Paolo_Moci
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.75 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Emilio_Segre
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 1 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Bruno_Pontecorvo
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 1.25 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Ettore_Majorana
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 1.1 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Franco_Rasetti
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 1.5 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}
		}
	}

	ita_give_money2 = {

		icon = GFX_decision_generic_money

		available = {
			NOT = {
				has_country_flag = ITA_funding_sent
				has_country_flag = ITA_nuke_making_time
			}
			check_variable = {
				var = ITA_nuclearprogress
				value = 1
				compare = greater_than_or_equals
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			check_variable = {
				var = ITA_nuclearprogress
				value = 1
				compare = greater_than_or_equals
			}
		}
		days_remove = 3
		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}
		remove_effect = {
			set_country_flag = ITA_funding_sent
			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Edoardo_Amaldi
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.05 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Paolo_Moci
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.1 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Emilio_Segre
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.15 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Bruno_Pontecorvo
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.20 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Ettore_Majorana
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.1 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Franco_Rasetti
					}
				}
				ITA = {
					set_temp_variable = { temp_econ_spending_amount = 0.2 }
					econ_spend_money_once_effect_raw_money = yes
				}
			}
		}
	}

	ita_fire_leaders = {

		icon = GFX_decision_generic_political_discourse

		available = {
			NOT = {
				has_country_flag = ITA_leader_recently_fired
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
		}
		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 25
		}
		complete_effect= {
			ITA = {
				country_event = {
					id = NuclearItaly.1
					days = 1
				}
			}
			set_country_flag = ITA_leader_recently_fired
			activate_mission = ita_fire_leader
			if = {
				limit = {
					NOT = {
						check_variable = {
							var = ITA_nuclearprogress
							value = 1
							compare = greater_than_or_equals
						}
					}
				}
			}
			add_to_variable = { ITA_nuclear_experience = -4 }
		}
	}

	ita_fire_leader = {

		icon = GFX_decision_generic_political_discourse

		available = {
			always = no
		}

		days_mission_timeout = 730

		activation = {
			always = no #Triggered from effect
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			clr_country_flag = ITA_leader_recently_fired
		}
	}

	ITA_test_nuke = {

		icon = GFX_decision_generic_nuke

		available = {
			always = no
		}

		days_mission_timeout = italynukedaytimes

		activation = {
			always = no #Triggered from effect
		}

		visible = {

		}

		is_good = yes

		timeout_effect = {
			clr_country_flag = ITA_leader_recently_fired
			clr_country_flag = ITA_funding_sent
			clr_country_flag = ITA_testing_bomb
			if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Edoardo_Amaldi
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .04 }
				}
			}
			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Paolo_Moci
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .025 }
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Emilio_Segre
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .05 }
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Bruno_Pontecorvo
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .03 }
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Ettore_Majorana
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .03 }
				}
			}

			else_if = {
				limit = {
					ITA = {
						has_country_flag = ITA_Franco_Rasetti
					}
				}

				ITA = {
					add_to_variable = { ITA_nuclearprogress = .035 }
				}
			}

			add_to_variable = {
				var = ITA_nuclear_experience
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 0
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 3
						compare = less_than
					}
				}

				set_country_flag = ITA_stagnant_nuke

				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_moderate_nuke
				clr_country_flag = ITA_fast_nuke
			}

			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 4
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 7
						compare = less_than
					}
				}

				set_country_flag = ITA_slow_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_moderate_nuke
				clr_country_flag = ITA_fast_nuke
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 8
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 12
						compare = less_than
					}
				}

				set_country_flag = ITA_moderate_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_fast_nuke
			}
			else_if = {
				limit = {
					check_variable = {
						var = ITA_nuclear_experience
						value = 13
						compare = greater_than
					}
					check_variable = {
						var = ITA_nuclear_experience
						value = 16
						compare = less_than
					}
				}

				set_country_flag = ITA_fast_nuke

				clr_country_flag = ITA_stagnant_nuke
				clr_country_flag = ITA_slow_nuke
				clr_country_flag = ITA_moderate_nuke
			}

			if = {
				limit = {
					check_variable = {
						var = ITA_nuclearprogress
						value = 1
						compare = greater_than_or_equals
					}
				}
				country_event = {
					id = NuclearItaly.2
					days = 3
					random_hours = 0
				}
			}
		}
	}
}

ITA_Piano_Solo_Decisions = {
	ITA_leftist_extrmist_growth = {
		allowed = {
			tag = ITA
		}
		activation = {
			has_country_flag = ITA_PIANO_SOLO_COUP
		}
		available = {
			NOT = {
				has_country_flag = ITA_PIANO_SOLO_COUP
			}
		}
		is_good = no
		days_mission_timeout = 7
		complete_effect = {

		}
		timeout_effect = {
			if = {
				limit = {
					ITA = {
						check_variable = {
							var = ITA_i_give_up_piano_solo_is_boolean_now
							value = 1
							compare = equals
						}
					}
				}
				if = {
					limit = {
						NOT = {
							OR = {
								has_country_flag = ITA_leftist_extreme_curb_1
								has_country_flag = ITA_leftist_extreme_curb_2
								has_country_flag = ITA_leftist_temp_curb
							}
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						value = 0.05
					}
					clamp_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_left_gain_5_percent
				}
				else_if = {
					limit = {
						has_country_flag = ITA_leftist_temp_curb
					}
					if = {
						limit = {
							NOT = {
								OR = {
									has_country_flag = ITA_leftist_extreme_curb_1
									has_country_flag = ITA_leftist_extreme_curb_2
								}
							}
						}
						add_to_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							value = 0.03
						}
						clamp_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_left_gain_3_percent
					}
					else_if = {
						limit = {
							has_country_flag = ITA_leftist_extreme_curb_1
						}
						add_to_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							value = 0.01
						}
						clamp_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_left_gain_1_percent
					}
					else_if = {
						limit = {
							AND = {
								has_country_flag = ITA_leftist_extreme_curb_1
								has_country_flag = ITA_leftist_extreme_curb_2
							}
						}
						add_to_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							value = 0.00
						}
						clamp_variable = {
							var = ITA_LEFT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_left_gain_0_percent
					}
					clr_country_flag = ITA_leftist_temp_curb
				}
				else_if = {
					limit = {
						has_country_flag = ITA_leftist_extreme_curb_1
						NOT = {
							has_country_flag = ITA_leftist_temp_curb
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						value = 0.03
					}
					clamp_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_left_gain_3_percent
				}
				else_if = {
					limit = {
						AND = {
							has_country_flag = ITA_leftist_extreme_curb_1
							has_country_flag = ITA_leftist_extreme_curb_2
						}
						NOT = {
							has_country_flag = ITA_leftist_temp_curb
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						value = 0.01
					}
					clamp_variable = {
						var = ITA_LEFT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_left_gain_1_percent
				}

				activate_mission = ITA_leftist_extrmist_growth
			}
		}
	}

	ITA_rightist_extrmist_growth = {
		allowed = {
			tag = ITA
		}
		activation = {
			has_country_flag = ITA_PIANO_SOLO_COUP
		}
		available = {
			NOT = {
				has_country_flag = ITA_PIANO_SOLO_COUP
			}
		}
		is_good = no
		days_mission_timeout = 7
		timeout_effect = {
			if = {
				limit = {
					ITA = {
						check_variable = {
							var = ITA_i_give_up_piano_solo_is_boolean_now
							value = 1
							compare = equals
						}
					}
				}
				if = {
					limit = {
						NOT = {
							OR = {
								has_country_flag = ITA_extreme_curb_1
								has_country_flag = ITA_extreme_curb_2
								has_country_flag = ITA_rightist_temp_curb
							}
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						value = 0.05
					}
					clamp_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_right_gain_5_percent
				}
				else_if = {
					limit = {
						has_country_flag = ITA_rightist_temp_curb
					}
					if = {
						limit = {
							NOT = {
								OR = {
									has_country_flag = ITA_extreme_curb_1
									has_country_flag = ITA_extreme_curb_2
								}
							}
						}
						add_to_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							value = 0.03
						}
						clamp_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_right_gain_3_percent
					}
					else_if = {
						limit = {
							has_country_flag = ITA_extreme_curb_1
						}
						add_to_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							value = 0.01
						}
						clamp_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_right_gain_1_percent
					}
					else_if = {
						limit = {
							AND = {
								has_country_flag = ITA_extreme_curb_1
								has_country_flag = ITA_extreme_curb_2
							}
						}
						add_to_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							value = 0.00
						}
						clamp_variable = {
							var = ITA_RIGHT_EXTREMISM_PS
							min = 0
							max = 1
						}
						custom_effect_tooltip = ITA_right_gain_0_percent
					}
					clr_country_flag = ITA_rightist_temp_curb
				}
				else_if = {
					limit = {
						has_country_flag = ITA_extreme_curb_1
						NOT = {
							has_country_flag = ITA_rightist_temp_curb
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						value = 0.03
					}
					clamp_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_right_gain_3_percent
				}
				else_if = {
					limit = {
						AND = {
							has_country_flag = ITA_extreme_curb_1
							has_country_flag = ITA_extreme_curb_2
						}
						NOT = {
							has_country_flag = ITA_rightist_temp_curb
						}
					}
				# var + tt
					add_to_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						value = 0.01
					}
					clamp_variable = {
						var = ITA_RIGHT_EXTREMISM_PS
						min = 0
						max = 1
					}
					custom_effect_tooltip = ITA_right_gain_1_percent
				}
				activate_mission = ITA_rightist_extrmist_growth
			}
		}
	}

	ITA_the_SIM_gains_understanding = {
		allowed = {
			tag = ITA
		}
		activation = {
			has_country_flag = ITA_PIANO_SOLO_COUP
		}
		available = {
			NOT = {
				has_country_flag = ITA_PIANO_SOLO_COUP
			}
		}
		is_good = no
		days_mission_timeout = 7
		timeout_effect = {
			if = {
				limit = {
					ITA = {
						check_variable = {
							var = ITA_i_give_up_piano_solo_is_boolean_now
							value = 1
							compare = equals
						}
					}
				}
				add_to_variable = {
					var = ITA_SIM_knowledge
					value = 0.03
				}
				clamp_variable = {
					var = ITA_SIM_knowledge
					min = 0
					max = 1
				}
				activate_mission = ITA_the_SIM_gains_understanding
				custom_effect_tooltip = ITA_SIM_gain_3_percent
			}
		}
	}

	ITA_slam_rightist_groups = {
		available = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		custom_cost_trigger = {
			check_variable = {
				var = ITA_SIM_knowledge
				value = 0.06
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 25
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_need_5_percent_understanding

		complete_effect = {
			add_to_variable = { ITA_SIM_knowledge = -0.05 }
			add_to_variable = { political_power = -25 }
			add_to_variable = {
				var = ITA_RIGHT_EXTREMISM_PS
				value = -0.07
			}
			clamp_variable = {
				var = ITA_RIGHT_EXTREMISM_PS
				min = 0
				max = 1
			}
			custom_effect_tooltip = ITA_right_lose_7_percent
		}
	}

	ITA_slam_leftist_groups = {
		available = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		custom_cost_trigger = {
			check_variable = {
				var = ITA_SIM_knowledge
				value = 0.06
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 25
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_need_5_percent_understanding

		complete_effect = {
			add_to_variable = { ITA_SIM_knowledge = -0.05 }
			add_to_variable = { political_power = -25 }
			add_to_variable = {
				var = ITA_LEFT_EXTREMISM_PS
				value = -0.07
			}
			clamp_variable = {
				var = ITA_LEFT_EXTREMISM_PS
				min = 0
				max = 1
			}
			custom_effect_tooltip = ITA_left_lose_7_percent
		}
	}

	ITA_curb_rightist_groups = {
		available = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		custom_cost_trigger = {
			check_variable = {
				var = ITA_SIM_knowledge
				value = 0.15
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_need_15_percent_understanding

		complete_effect = {
			add_to_variable = { ITA_SIM_knowledge = -0.15 }
			add_to_variable = { political_power = -50 }
			add_to_variable = {
				var = ITA_RIGHT_EXTREMISM_PS
				value = -0.04
			}
			set_country_flag = ITA_rightist_temp_curb
			custom_effect_tooltip = ITA_right_temp_curb_percent
			custom_effect_tooltip = ITA_right_lose_4_percent
		}
	}

	ITA_curb_leftist_groups = {
		available = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		allowed = {
			tag = ITA
		}
		visible = {
			ITA = {
				check_variable = {
					var = ITA_i_give_up_piano_solo_is_boolean_now
					value = 1
					compare = equals
				}
			}
		}
		custom_cost_trigger = {
			check_variable = {
				var = ITA_SIM_knowledge
				value = 0.15
				compare = greater_than_or_equals
			}
			check_variable = {
				var = political_power
				value = 50
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = ITA_need_15_percent_understanding

		complete_effect = {
			add_to_variable = { ITA_SIM_knowledge = -0.15 }
			add_to_variable = { political_power = -50 }
			add_to_variable = {
				var = ITA_LEFT_EXTREMISM_PS
				value = -0.04
			}
			set_country_flag = ITA_leftist_temp_curb
			custom_effect_tooltip = ITA_left_temp_curb_percent
			custom_effect_tooltip = ITA_right_lose_4_percent
		}
	}

}



ita_iberian_war = {
	ita_support_IBR = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = IBR
			NOT = {
				any_country = {
					has_country_flag = IBR_backed_by_italy
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			IBR = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	ita_support_SPA = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = SPA
			OR = {
				NOT = {
					IBR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPS = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			SPA = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	ita_support_SPS = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = SPS
			OR = {
				NOT = {
					IBR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPA = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			SPS = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	ita_support_SPR = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = SPR
			OR = {
				NOT = {
					IBR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPA = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					SPS = {
						has_country_flag = IBR_backed_by_italy
					}
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			SPR = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	ita_support_POR = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = POR
			OR = {
				NOT = {
					IBR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					RPP = {
						has_country_flag = IBR_backed_by_italy
					}
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			POR = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	ita_support_RPP = {
		allowed = {
			tag = ITA
		}
		visible = {
			#has_completed_focus = ita_pick_a_side
			country_exists = RPP
			OR = {
				NOT = {
					IBR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
				NOT = {
					POR = {
						has_country_flag = IBR_backed_by_italy
					}
				}
			}
		}
		fire_only_once = yes
		available = {
		}
		complete_effect = {
			RPP = {
				set_country_flag = IBR_backed_by_italy
				country_event = { id = scorza.9005 days = 1 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	ita_seize_the_dam = {

		available = {
			OR = {
				controls_state = 118
				controls_state = 290
			}
		}

		visible = {
			has_war_with = GIB
		}

		activation = {
			has_country_flag = ita_attacking_the_dam
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 100

		timeout_effect = {
			add_stability = -0.02
			add_war_support = -0.05
			white_peace = GIB
		}

		complete_effect = {
			add_stability = 0.03
			add_war_support = 0.05
		}
	}
}

ITA_italo_turkish_war_category = {
	ita_send_advisors = {

		cost = 50

		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			IME = { has_war_with = TUR }
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}


		fire_only_once = yes


		complete_effect = {
			IME = {
				army_experience = 5
				add_doctrine_cost_reduction = {
					name = land_doc_bonus
					cost_reduction = 0.25
					uses = 1
					category = land_doctrine
				}
			}
		}
	}

	ita_send_blackshirts = {

		cost = 50

		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			IME = { has_war_with = TUR }
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}

		fire_only_once = yes


		complete_effect = {
			IME = {
				add_manpower = 5000
			}
			ITA = {
				add_manpower = -5000
			}
		}
	}

	ita_send_old_guns = {

		cost = 50

		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			IME = { has_war_with = TUR }
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}


		fire_only_once = yes


		complete_effect = {
			ITA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_0
					amount = -1000
					producer = ITA
				}

				add_equipment_to_stockpile = {
					type = support_equipment_1
					amount = -500
					producer = ITA
				}
			}
			IME = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_0
					amount = 1000
					producer = ITA
				}

				add_equipment_to_stockpile = {
					type = support_equipment_1
					amount = 500
					producer = ITA
				}
			}
		}
	}

	ita_send_new_guns = {

		cost = 100

		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			IME = { has_war_with = TUR }
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}


		fire_only_once = yes


		complete_effect = {
			ITA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_2
					amount = -2500
					producer = ITA
				}
			}
			IME = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_2
					amount = 2500
					producer = ITA
				}
			}
		}
	}

	ita_involve_the_greeks = {

		cost = 50
		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			IME = { has_war_with = TUR }
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}


		fire_only_once = yes


		complete_effect = {
			GRE = { add_manpower = -1000
				army_experience = 5

				731 = {
					add_building_construction = {
						type = bunker
						level = 1
						province = 895
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 3936
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 3526
						instant_build = yes
					}
				}
			}

			TUR = { add_manpower = -2000 army_experience = 5 }
			ITA = { add_manpower = -1000 army_experience = 5 }


		}
	}
	ita_victory_over_there = {

		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}

		visible = {
			has_global_flag = ita_tur_ita_win
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}

		fire_only_once = yes

		complete_effect = {
			add_stability = 0.025
			country_event = {
				id = ciano.11
			}
		}
	}

	ita_address_the_defeat = {

		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}

		visible = {
			has_global_flag = ita_tur_ita_lose
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
			}
		}


		fire_only_once = yes


		complete_effect = {
			country_event = {
				id = ciano.12
			}
			add_stability = -0.025
		}
	}

	ita_call_for_peace = {

		custom_cost_trigger = { always = yes }
		ai_will_do = {
			factor = 100
		}

		visible = {
			NOT = {
				has_global_flag = ita_tur_ita_lose
			}
			NOT = {
				has_global_flag = ita_tur_ita_win
			}
			has_global_flag = italy_turkey_war
			AND = {
				country_exists = TUR
				country_exists = IME
				date > 1962.12.01
			}
		}

		fire_only_once = yes


		complete_effect = {
			country_event = {
				id = itatur.3
			}
		}
	}
}

ITA_algerian_war_category = {
	ita_alg_send_advisors = {

		cost = 50
		visible = {
			ILG = { has_war_with = SLG }
			AND = {
				country_exists = SLG
				country_exists = ILG
			}
		}


		fire_only_once = yes


		complete_effect = {
			ILG = {
				army_experience = 5
				add_doctrine_cost_reduction = {
					name = land_doc_bonus
					cost_reduction = 0.25
					uses = 1
					category = land_doctrine
				}
			}
		}
	}

	ita_alg_send_blackshirts = {

		cost = 50

		visible = {
			ILG = { has_war_with = SLG }
			AND = {
				country_exists = SLG
				country_exists = ILG
			}
		}

		fire_only_once = yes


		complete_effect = {
			ILG = {
				add_manpower = 5000
			}
			ITA = {
				add_manpower = -5000
			}
		}
	}

	ita_alg_send_old_guns = {

		cost = 50
		visible = {
			ILG = { has_war_with = SLG }
			AND = {
				country_exists = SLG
				country_exists = ILG
			}
		}


		fire_only_once = yes


		complete_effect = {
			ITA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_0
					amount = -1000
					producer = ITA
				}

				add_equipment_to_stockpile = {
					type = support_equipment_1
					amount = -500
					producer = ITA
				}
			}
			ILG = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_0
					amount = 1000
					producer = ITA
				}

				add_equipment_to_stockpile = {
					type = support_equipment_1
					amount = 500
					producer = ITA
				}
			}
		}
	}

	ita_alg_send_new_guns = {

		cost = 100

		visible = {
			ILG = { has_war_with = SLG }
			AND = {
				country_exists = SLG
				country_exists = ILG
			}
		}

		fire_only_once = yes

		complete_effect = {
			ITA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_2
					amount = -2500
					producer = ITA
				}
			}
			ILG = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_2
					amount = 2500
					producer = ITA
				}
			}
		}
	}
}

ita_demitaly_proxy_war_support = {
	ita_run_the_propaganda = {
		cost = 50

		days_re_enable = 15

		available = {
			check_variable = {
				var = ITA_oc_demitaly_war_support
				value = 40
				compare = less_than_or_equals
			}
		}

		visible = {
		}

		complete_effect = {
			add_to_variable = {
				var = ITA_run_the_propaganda_fatigue
				value = 1
			}
			random_list = {
				25 = {
					country_event = {
						id = ITAOIL.100
						days = 3
					}
					modifier = {
						factor = 1.5
						check_variable = { ITA_run_the_propaganda_fatigue = 0 }
					}
				}
				25 = {
					country_event = {
						id = ITAOIL.101
						days = 3
					}
					modifier = {
						factor = 1.5
						check_variable = { ITA_run_the_propaganda_fatigue = 1 }
					}
				}
				100 = {
					country_event = {
						id = ITAOIL.102
						days = 3
					}
					modifier = {
						factor = 1.5
						check_variable = { ITA_run_the_propaganda_fatigue > 1 }
					}
				}
			}
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = ITA_run_the_propaganda_fatigue
							value = 0
							compare = greater_than_or_equals
						}
						check_variable = { run_propaganda_counter = 0 }
					}
					country_event = {
						id = ITAOIL.103
						days = 30
					}
				}
			}
			add_to_variable = {
				var = run_propaganda_counter
				value = 1
			}
		}
	}
	ita_spin_the_narrative = {
		cost = 35

		days_re_enable = 5

		available = {
			check_variable = {
				var = ITA_oc_demitaly_war_support
				value = 90
				compare = less_than_or_equals
			}
		}

		visible = {
		}

		complete_effect = {
			add_to_variable = {
				var = ITA_spin_the_narrative_fatigue
				value = 1
			}

			random_list = {
				25 = {
					country_event = {
						id = ITAOIL.105
						days = 1
					}
					modifier = {
						factor = 1.15
						check_variable = { ITA_spin_the_narrative_fatigue = 0 }
					}
				}
				75 = {
					country_event = {
						id = ITAOIL.106
						days = 1
					}
					modifier = {
						factor = 1.2
						check_variable = { ITA_spin_the_narrative_fatigue > 3 }
					}
				}
			}
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = ITA_spin_the_narrative_fatigue
							value = 0
							compare = greater_than_or_equals
						}
					}
					country_event = {
						id = ITAOIL.104
						days = 20
					}
				}
			}
			add_to_variable = {
				var = spin_narrative_counter
				value = 1
			}
		}
	}
}
ita_demitaly_supporting_proxies = {
	ITA_increase_war_tier = {
		cost = 100

		days_re_enable = 50

		available = {
			check_variable = {
				var = ITA_oc_demitaly_war_support
				value = 20
				compare = greater_than_or_equals
			}
		}

		visible = {
			OR = {
				has_idea = ITA_antiwar_protests_1
				has_idea = ITA_antiwar_protests_2
				has_idea = ITA_antiwar_protests_3
			}
			check_variable = {
				var = ITA_oc_demitaly_war_tier
				value = 3
				compare = not_equals
			}
		}

		complete_effect = {
			add_to_variable = {
				var = ITA_oc_demitaly_war_tier
				value = 1
			}
			ITA_increase_antiwar_protests = yes
		}
	}

	ITA_decrease_war_tier = {
		cost = 100

		days_re_enable = 50


		visible = {
			OR = {
				has_idea = ITA_antiwar_protests_1
				has_idea = ITA_antiwar_protests_2
				has_idea = ITA_antiwar_protests_3
			}
			check_variable = {
				var = ITA_oc_demitaly_war_tier
				value = 1
				compare = not_equals
			}
		}

		complete_effect = {
			subtract_from_variable = {
				var = ITA_oc_demitaly_war_tier
				value = 1
			}
			ITA_decrease_antiwar_protests = yes
		}
	}

	ITA_volunteer_25_percent = {
		custom_cost_trigger = { always = yes } #no cost


		visible = {
			check_variable = { ITA_volunteer_commitment = 2 }
		}

		complete_effect = {
			set_variable = { ITA_volunteer_commitment = 1 }
		}
	}

	ITA_volunteer_50_percent = {
		custom_cost_trigger = { always = yes } #no cost


		visible = {
			OR = {
				check_variable = { ITA_volunteer_commitment = 1 }
				check_variable = { ITA_volunteer_commitment = 3 }
			}
		}

		complete_effect = {
			set_variable = { ITA_volunteer_commitment = 2 }
		}
	}

	ITA_volunteer_75_percent = {
		custom_cost_trigger = { always = yes } #no cost


		visible = {
			OR = {
				check_variable = { ITA_volunteer_commitment = 2 }
				check_variable = { ITA_volunteer_commitment = 4 }
			}
		}

		complete_effect = {
			set_variable = { ITA_volunteer_commitment = 3 }
		}
	}

	ITA_volunteer_100_percent = {
		custom_cost_trigger = { always = yes } #no cost


		visible = {
			check_variable = { ITA_volunteer_commitment = 3 }
		}

		complete_effect = {
			set_variable = { ITA_volunteer_commitment = 4 }
		}
	}

	ITA_volunteers_to_syria = {
		cost = 15

		days_re_enable = 10

		available = {
			check_variable = { ITA_available_volunteer_manpower > 0 }
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			SYR = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			SYR = {
				ITA_manpower_giving = yes
			}
		}
	}

	ITA_volunteers_to_iraq = {
		cost = 15

		days_re_enable = 10

		available = {
			check_variable = { ITA_available_volunteer_manpower > 0 }
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			IRQ = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			IRQ = {
				ITA_manpower_giving = yes
			}
		}
	}

	ITA_volunteers_to_yemen = {
		cost = 15

		days_re_enable = 10

		available = {
			check_variable = { ITA_available_volunteer_manpower > 0 }
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			YEM = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			YEM = {
				ITA_manpower_giving = yes
			}
		}
	}

	ITA_volunteers_to_egypt = {
		cost = 15

		days_re_enable = 10

		available = {
			check_variable = { ITA_available_volunteer_manpower > 0 }
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			EGY = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			EGY = {
				ITA_manpower_giving = yes
			}
		}
	}

	ITA_volunteer_division_syria = {
		cost = 30

		days_re_enable = 30

		available = {
			check_variable = { ITA_available_volunteer_manpower > 7000 }
			SYR = {
				capital_scope = {
					is_controlled_by = PREV
				}
			}
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			SYR = {
				exists = yes
				has_war = yes
			}
			check_variable = { ITA_oc_demitaly_war_tier > 1 }
		}

		complete_effect = {
			SYR = {
				ITA_volunteer_divisions_giving = yes
			}
		}
	}

	ITA_volunteer_division_iraq = {
		cost = 30

		days_re_enable = 30

		available = {
			check_variable = { ITA_available_volunteer_manpower > 7000 }
			IRQ = {
				capital_scope = {
					is_controlled_by = PREV
				}
			}
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			IRQ = {
				exists = yes
				has_war = yes
			}
			check_variable = { ITA_oc_demitaly_war_tier > 1 }
		}

		complete_effect = {
			IRQ = {
				ITA_volunteer_divisions_giving = yes
			}
		}
	}

	ITA_volunteer_division_yemen = {
		cost = 30

		days_re_enable = 30

		available = {
			check_variable = { ITA_available_volunteer_manpower > 7000 }
			YEM = {
				capital_scope = {
					is_controlled_by = PREV
				}
			}
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			YEM = {
				exists = yes
				has_war = yes
			}
			check_variable = { ITA_oc_demitaly_war_tier > 1 }
		}

		complete_effect = {
			YEM = {
				ITA_volunteer_divisions_giving = yes
			}
		}
	}

	ITA_volunteer_division_egypt = {
		cost = 30

		days_re_enable = 30

		available = {
			check_variable = { ITA_available_volunteer_manpower > 7000 }
			EGY = {
				capital_scope = {
					is_controlled_by = PREV
				}
			}
		}

		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			EGY = {
				exists = yes
				has_war = yes
			}
			check_variable = { ITA_oc_demitaly_war_tier > 1 }
		}

		complete_effect = {
			EGY = {
				ITA_volunteer_divisions_giving = yes
			}
		}
	}

	ITA_airstrikes_in_syria = {
		cost = 15

		days_re_enable = 110


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			SYR = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			every_country = {
				limit = {
					has_war_with = SYR
				}
				add_timed_idea = {
					idea = ITA_airstrike_campaign_enemy
					days = 100
				}
			}
		}
	}

	ITA_airstrikes_in_iraq = {
		cost = 15

		days_re_enable = 110


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			IRQ = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			every_country = {
				limit = {
					has_war_with = IRQ
				}
				add_timed_idea = {
					idea = ITA_airstrike_campaign_enemy
					days = 100
				}
			}
		}
	}

	ITA_airstrikes_in_yemen = {
		cost = 15

		days_re_enable = 110


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			YEM = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			every_country = {
				limit = {
					has_war_with = YEM
				}
				add_timed_idea = {
					idea = ITA_airstrike_campaign_enemy
					days = 100
				}
			}
		}
	}

	ITA_airstrikes_in_egypt = {
		cost = 15

		days_re_enable = 110


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			EGY = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			every_country = {
				limit = {
					has_war_with = EGY
				}
				add_timed_idea = {
					idea = ITA_airstrike_campaign_enemy
					days = 100
				}
			}
		}
	}

	ITA_guns_to_syria = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			SYR = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			SYR = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_guns_to_iraq = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			IRQ = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			IRQ = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_guns_to_yemen = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			YEM = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			YEM = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_guns_to_egypt = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			EGY = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			EGY = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_guns_to_the_levant = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			IME = {
				exists = yes
			}
		}

		complete_effect = {
			IME = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_guns_to_the_UAE = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			UAE = {
				exists = yes
			}
		}

		complete_effect = {
			UAE = {
				ITA_equipment_guns_giving = yes
			}
		}
	}

	ITA_vehicles_to_syria = {
		cost = 10

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			SYR = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			SYR = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_vehicles_to_iraq = {
		cost = 15

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			IRQ = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			IRQ = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_vehicles_to_yemen = {
		cost = 15

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			YEM = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			YEM = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_vehicles_to_egypt = {
		cost = 15

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			EGY = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			EGY = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_vehicles_to_the_levant = {
		cost = 15

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			IME = {
				exists = yes
			}
		}

		complete_effect = {
			IME = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_vehicles_to_the_UAE = {
		cost = 15

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			OR = {
				check_variable = { ITA_oc_demitaly_war_tier = 2 }
				check_variable = { ITA_oc_demitaly_war_tier = 3 }
			}
			UAE = {
				exists = yes
			}
		}

		complete_effect = {
			UAE = {
				ITA_equipment_APC_IFV_giving = yes
			}
		}
	}

	ITA_tanks_to_syria = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			SYR = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			SYR = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}

	ITA_tanks_to_iraq = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			IRQ = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			IRQ = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}

	ITA_tanks_to_yemen = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			YEM = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			YEM = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}

	ITA_tanks_to_egypt = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			EGY = {
				exists = yes
				has_war = yes
			}
		}

		complete_effect = {
			EGY = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}

	ITA_tanks_to_the_levant = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			IME = {
				exists = yes
			}
		}

		complete_effect = {
			IME = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}

	ITA_tanks_to_the_UAE = {
		cost = 25

		days_re_enable = 25


		visible = {
			has_country_flag = ITA_oil_crisis_demitaly_war
			check_variable = { ITA_oc_demitaly_war_tier = 3 }
			UAE = {
				exists = yes
			}
		}

		complete_effect = {
			UAE = {
				ITA_equipment_tanks_giving = yes
			}
		}
	}
}

ITA_east_african_war_category = {
	ita_begin_to_reclaim_the_horn = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			has_global_flag = IEA_full_collapse
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			#why does this event not exist anymore, I hate old Italy code
			#country_event = { id = impurita.3 }
			declare_war_on = {
				target = ERT
				type = annex_everything
			}
		}
	}
	ita_reclaim_somalia = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			has_global_flag = IEA_full_collapse
			country_exists = SML
			NOT = {
				country_exists = ERT
			}
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			declare_war_on = {
				target = SML
				type = annex_everything
			}
		}
	}
	ita_reclaim_ethiopia = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			has_global_flag = IEA_full_collapse
			country_exists = ETB
			NOT = {
				country_exists = ERT
			}
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			#country_event = { id = impurita.5 }
			declare_war_on = {
				target = ETB
				type = annex_everything
			}
			hidden_effect = {
				ETB = {
					if = {
						limit = {
							has_game_rule = {
								rule = ETH_ETHIOPIAN_CIVIL_WAR_OUTCOME
								option = ETH_ETHIOPIAN_CIVIL_WAR_OUTCOME_ETB
							}
							has_idea = Custom_TNO_war_buff
						}
						remove_war_buff = yes
					}
				}
			}
		}
	}
	ita_defeat_oromo = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			country_exists = ORM
			NOT = {
				country_exists = ERT
			}
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			#country_event = { id = impurita.6 }
			declare_war_on = {
				target = ORM
				type = annex_everything
			}
			hidden_effect = {
				ORM = {
					if = {
						limit = {
							has_game_rule = {
								rule = ETH_ETHIOPIAN_CIVIL_WAR_OUTCOME
								option = ETH_ETHIOPIAN_CIVIL_WAR_OUTCOME_ORM
							}
							has_idea = Custom_TNO_war_buff
						}
						remove_war_buff = yes
					}
				}
			}
		}
	}
	ita_invade_kenya = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			has_global_flag = IEA_full_collapse
			country_exists = KEN
			NOT = {
				country_exists = ERT
			}
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			#country_event = { id = impurita.7 }
			declare_war_on = {
				target = KEN
				type = annex_everything
			}
		}
	}
	ita_reestablish_IEA = {
		allowed = {
			tag = ITA
		}
		visible = {
			has_global_flag = IEA_full_collapse
		}
		available = {
			has_global_flag = IEA_full_collapse
			NOT = {
				OR = {
					country_exists = ERT
					country_exists = SML
					country_exists = ETB
					country_exists = ORM
					country_exists = KEN
				}
			}
		}

		fire_only_once = yes
		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ita_begin_to_reclaim_the_horn"
			#country_event = { id = impurita.8 }
			every_state = {
				limit = {
					is_core_of = IEA
				}
				IEA = {
					transfer_state = PREV
				}
			}
			set_autonomy = {
				target = IEA
				autonomy_state = autonomy_italy_governate
			}
			set_variable = {
				var = ITA_IEA_management
				value = 1
			}
			IEA = {
				set_politics = {
					ruling_party = despotism
				}
				hidden_effect = {
					set_popularities = {
						communist = 0
						ultranationalism = 0
						socialist = 0
						progressivism = 0
						liberalism = 0
						liberal_conservatism = 0
						conservatism = 0
						anocracy = 20
						despotism = 40
						fascism = 40
						national_socialism = 0
					}
					load_oob = IEA_1962
				}
				IEA_Davide_Fossa = {
					promote_character = {
						ideology = despotism_colonial_government_subtype
					}
				}
				add_timed_idea = {
					idea = IEA_rebuilding_east_africa
					days = 730
				}
				add_timed_idea = {
					idea = IEA_pacifying_east_africa
					days = 730
				}
				if = {
					limit = {
						USA = { is_faction_leader = yes }
						ITA = { is_in_faction_with = USA }
					}
					add_ideas = OFN_Dependent_Member
				}
				else_if = {
					limit = {
						JAP = { is_faction_leader = yes }
						ITA = { is_in_faction_with = JAP }
					}
					add_ideas = Sphere_Economic_Dependent
				}
			}
		}
	}
}