ITA_Culture_category_decisions = {
	ITA_decision_invest_in_opera = {
		ai_will_do = {
			base = 1
		}
		icon = ita_culture
		available = {
			original_tag = PIE
		}
		remove_trigger = {
			has_war = yes
		}
		modifier = {
			stability_weekly = 0.005
			political_power_gain = 0.5
		}
		days_remove = 100
		cost = 100
	}
	ITA_decision_spread_new_songs = {
		ai_will_do = {
			base = 1
		}
		icon = ita_culture
		available = {
			has_war = no
			has_cosmetic_tag = PIE_focus_ITA
		}
		remove_trigger = {
			has_war = yes
		}
		modifier = {
			stability_weekly = 0.003
			political_power_gain = 0.4
		}
		complete_effect = {
			every_neighbor_country = {
				add_opinion_modifier = {
					target = PREV
					modifier = italian_music_popular
				}
			}
		}
		days_remove = 90
		cost = 100
	}
}

ITA_decisions_category_influence_monaco = {
	ITA_decisions_category_influence_monaco_1 = {
		ai_will_do = {
			base = 10
		}
		icon = generic_political_actions
		available = {
			date > 1858.1.1
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.700
				}
			}
		}
		cost = 50
		fire_only_once = yes
	}
	ITA_decisions_category_influence_monaco_2 = {
		ai_will_do = {
			base = 10
		}
		icon = generic_political_actions
		visible = {
			PIE = {
				has_country_flag = PIE_aggressive_stance_monaco
			}
		}
		complete_effect = {
			MNC = {
				add_ideas = {
					ITA_minor_MNC_rebels
				}
			}
		}
		cost = 50
		fire_only_once = yes
	}
	ITA_decisions_category_influence_monaco_3 = {
		ai_will_do = {
			base = 10
		}
		icon = generic_political_actions
		visible = {
			PIE = {
				has_country_flag = PIE_aggressive_stance_monaco
			}
		}
		complete_effect = {
			MNC = {
				add_autonomy_score = {
					value = -100
					localization = MNC_Sardinian_Influence
				}
			}
		}
		cost = 60
	}
	ITA_decisions_category_influence_monaco_4 = {
		ai_will_do = {
			base = 10
		}
		icon = generic_political_actions
		visible = {
			PIE = {
				has_country_flag = PIE_aggressive_stance_monaco
			}
		}
		available = {
			MNC = {
				compare_autonomy_progress_ratio < 0.5
			}
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.701
				}
			}
		}
		cost = 50
	}
}

ITA_decisions_category_wars_and_conflicts = {
	### Regular Decisions, not Missions
	### Tuscany Decisions
	# War Against Sardinia
	ITA_TUS_decision_Tuscan_Banks = {
		ai_will_do = {
			base = 50
		}
		fire_only_once = yes
		allowed = {
			original_tag = TUS
		}
		icon = generic_political_actions
		visible = {
			has_completed_focus = TUS_focus_hostility_break_out
			country_exists = PIE
		}
		available = {
			has_active_mission = ITA_War_Mission_TUS_2IP
		}
		modifier = {
			consumer_goods_expected_value = 0.1
			production_factory_efficiency_gain_factor = 0.05
			army_org_regain = 0.1
		}
		days_remove = 100
		cost = 25
	}
	ITA_TUS_decision_accept_volunteers = {
		ai_will_do = {
			base = 50
		}
		fire_only_once = yes
		allowed = {
			original_tag = TUS
		}
		icon = generic_political_actions
		visible = {
			has_completed_focus = TUS_focus_hostility_break_out
			country_exists = PIE
		}
		available = {
			has_active_mission = ITA_War_Mission_TUS_2IP
		}
		complete_effect = {
			add_Manpower = 5000
		}
		cost = 25
	}
	ITA_TUS_decision_encourage_resistance_sardinia = {
		ai_will_do = {
			base = 60
		}
		fire_only_once = yes
		allowed = {
			original_tag = TUS
		}
		icon = generic_political_actions
		visible = {
			has_completed_focus = TUS_focus_hostility_break_out
			country_exists = PIE
		}
		available = {
			has_active_mission = ITA_War_Mission_TUS_2IP
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.536
				}
				add_ideas = {
					TUS_Encourage_Resistance_Idea
				}
			}
		}
		cost = 50
	}
	### Sardinia-Piedmont Decisions
	ITA_decision_2IP_Hunters_Alps = {
		ai_will_do = {
			base = 35
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				has_active_mission = ITA_2IP_Mobilization_War_Imiment
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			division_template = {
				name = "Hunters Regiment"
				is_locked = yes
				priority = 0
				template_counter = 0
				regiments = {
					light_infantry = {
						x = 0
						y = 0
					}
					light_infantry = {
						x = 0
						y = 1
					}
					light_infantry = {
						x = 0
						y = 2
					}
					light_infantry = {
						x = 1
						y = 0
					}
				}
			}
			981 = {
				create_unit = {
					division = "name = \"1st Hunters Regiment\" division_template = \"Hunters Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
				create_unit = {
					division = "name = \"2nd Hunters Regiment\" division_template = \"Hunters Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
				create_unit = {
					division = "name = \"3rd Hunters Regiment\" division_template = \"Hunters Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
				create_unit = {
					division = "name = \"4th Hunters Regiment\" division_template = \"Hunters Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
				create_unit = {
					division = "name = \"5th Hunters Regiment\" division_template = \"Hunters Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
			}
		}
		cost = 25
	}
	ITA_decision_Organize_Perugian_Volunteers = {
		ai_will_do = {
			base = 35
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				has_active_mission = ITA_2IP_Mobilization_War_Imiment
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
		}
		complete_effect = {
			division_template = {
				name = "Perugian Volunteers"
				is_locked = yes
				priority = 0
				template_counter = 0
				regiments = {
					light_infantry = {
						x = 0
						y = 0
					}
					light_infantry = {
						x = 0
						y = 1
					}
					light_infantry = {
						x = 0
						y = 2
					}
				}
			}
			981 = {
				create_unit = {
					division = "name = \"1st Perugian Regiment\" division_template = \"Perugian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
			}
			PAP = {
				country_event = {
					id = risorgimento.187
				}
			}
		}
		cost = 25
	}
	ITA_decision_call_on_the_national_guard = {
		ai_will_do = {
			base = 35
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				has_active_mission = ITA_2IP_Mobilization_War_Imiment
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			has_completed_focus = PIE_Institute_National_Guard
		}
		complete_effect = {
			division_template = {
				name = "National Guard"
				is_locked = yes
				priority = 0
				template_counter = 0
				regiments = {
					guard_infantry = {
						x = 0
						y = 0
					}
					guard_infantry = {
						x = 0
						y = 1
					}
					guard_infantry = {
						x = 0
						y = 2
					}
					line_infantry = {
						x = 1
						y = 0
					}
					line_infantry = {
						x = 1
						y = 1
					}
				}
			}
			981 = {
				create_unit = {
					division = "name = \"1st National Guard Regiment\" division_template = \"National Guard\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
				create_unit = {
					division = "name = \"2nd National Guard Regiment\" division_template = \"National Guard\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = PIE
					prioritize_location = 11721
				}
			}
		}
		cost = 25
	}
	ITA_decision_2IP_Sardinian_Banks = {
		ai_will_do = {
			base = 35
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_political_actions
		visible = {
			OR = {
				has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				has_active_mission = ITA_2IP_Mobilization_War_Imiment
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
		}
		modifier = {
			consumer_goods_expected_value = 0.1
			production_factory_efficiency_gain_factor = 0.05
			army_org_regain = 0.1
		}
		days_remove = 100
		cost = 25
	}
	ITA_decision_2IP_Troop_Training = {
		ai_will_do = {
			base = 35
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				has_active_mission = ITA_2IP_Mobilization_War_Imiment
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			has_active_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
		}
		modifier = {
			army_core_attack_factor = 0.1
			terrain_penalty_reduction = 0.25
			breakthrough_factor = 0.25
		}
		days_remove = 100
		cost = 25
	}
	ITA_decision_Expedition_Santa_Anna_Brothers = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			CBI = {
				1380 = {
					create_unit = {
						division = "name = \"Santa Anna Brothers' Rebels\" division_template = \"Sicilian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 7059
					}
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Giovanni_Pantaleo = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.196
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Organize_Partinico_Volunteers = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			1380 = {
				create_unit = {
					division = "name = \"Partinicesi Volunteers\" division_template = \"Sicilian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = CBI
					prioritize_location = 7059
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Decree_of_Sicilian_Militia = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_political_actions
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			1380 = {
				create_unit = {
					division = "name = \"Sicilian Militia\" division_template = \"Sicilian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = CBI
					prioritize_location = 7059
				}
				create_unit = {
					division = "name = \"Sicilian Militia\" division_template = \"Sicilian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = CBI
					prioritize_location = 7059
				}
				create_unit = {
					division = "name = \"Sicilian Militia\" division_template = \"Sicilian Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = CBI
					prioritize_location = 7059
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Decree_of_municipal_property = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_political_actions
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		complete_effect = {
			#### add Idea with manpower and consumer goods
			CBI = {
				add_stability = 0.1
				add_war_support = 0.1
				add_manpower = 500
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Organize_Artillery_Brigades = {
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			CBI = {
				controls_province = 10074
			}
		}
		complete_effect = {
			CBI = {
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 500
					producer = NSC
				}
				add_equipment_to_stockpile = {
					type = uniform_equipment_0
					amount = 1000
					producer = NSC
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
					producer = NSC
				}
				115 = {
					create_unit = {
						division = "name = \"Orsini Artillery\" division_template = \"Southern Army Artillery\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Orsini Artillery\" division_template = \"Southern Army Artillery\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Medici_Column = {
		####Add event maybe
		ai_will_do = {
			base = 30
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			CBI = {
				controls_province = 10074
			}
		}
		complete_effect = {
			CBI = {
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 500
					producer = PIE
				}
				add_equipment_to_stockpile = {
					type = uniform_equipment_0
					amount = 1500
					producer = PIE
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
					producer = PIE
				}
				115 = {
					create_unit = {
						division = "name = \"Medici Column\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Medici Column\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Medici Column\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Medici Column\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Agnetta_Expedition = {
		####Add event maybe
		ai_will_do = {
			base = 30
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			CBI = {
				controls_province = 10074
			}
		}
		complete_effect = {
			CBI = {
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 200
					producer = PIE
				}
				add_equipment_to_stockpile = {
					type = uniform_equipment_0
					amount = 500
					producer = PIE
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 500
					producer = PIE
				}
				add_manpower = 500
				115 = {
					create_unit = {
						division = "name = \"Agnetta Artillery Column\" division_template = \"Southern Army Artillery\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Agnetta Artillery Column\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Agnetta 1st Brigade\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
					create_unit = {
						division = "name = \"Agnetta 2nd Brigade\" division_template = \"Red Shirts\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
						owner = CBI
						prioritize_location = 10074
					}
				}
			}
		}
		cost = 25
	}
	ITA_decision_Expedition_Coppola_Russa = {
		####Add event maybe
		ai_will_do = {
			base = 30
		}
		fire_only_once = yes
		allowed = {
			original_tag = PIE
		}
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				has_active_mission = ITA_War_Mission_NSC_Expedition
				CBI = {
					has_war_with = NSC
				}
			}
			NOT = {
				has_country_flag = is_literally_italy
			}
		}
		available = {
			CBI = {
				controls_province = 10074
			}
		}
		complete_effect = {
			CBI = {
				add_equipment_to_stockpile = {
					type = uniform_equipment_0
					amount = 200
					producer = PIE
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 500
					producer = PIE
				}
				add_manpower = 5000
			}
		}
		cost = 25
	}
	###activate_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
	ITA_Mission_AUS_PIE_Peace_Treaty_1860 = {
		allowed = {
			always = no
		}
		# MEANS NO ONE SEES IT AT GAMESTART
		icon = generic_political_actions
		is_good = no		# AI is smarter with conditions/achieving them if it is no, trust me.
		days_mission_timeout = 300		# Arbitrary number, but I recommend a time of 1.5x expected time to finish war, max 1000
		activation = {
			always = no
		}
		# MEANS THIS MISSION WILL BE MANUALLY ENABLED (~400x Optimized)
		available = {
			# Conditions to trigger peace treaty
			if = {
				limit = {
					tag = PIE
				}
				if = {
					limit = {
						has_completed_focus = PIE_Work_With_Mazzini
					}
					custom_trigger_tooltip = {
						tooltip = ITA_Mission_AUS_PIE_Peace_Treaty_1860_ITA_VICTORY_France_Carbonari_tt
						LVN = {
							has_capitulated = yes
						}
					}
				}
				if = {
					limit = {
						has_completed_focus = PIE_Military_Plan_FT
					}
					custom_trigger_tooltip = {
						tooltip = ITA_Mission_AUS_PIE_Peace_Treaty_1860_ITA_VICTORY_NORMAL_tt
						LVN = {
							OR = {
								has_capitulated = yes
								surrender_progress > 0.7
							}
						}
					}
				}
				if = {
					limit = {
						has_completed_focus = PIE_The_Russian_Alliance
					}
					custom_trigger_tooltip = {
						tooltip = ITA_Mission_AUS_PIE_Peace_Treaty_1860_ITA_VICTORY_Russia_tt
						OR = {
							tag = PIE
							tag = RUS
						}
						OR = {
							PIE = {
								controls_province = 6656
								controls_province = 603
							}
							RUS = {
								controls_province = 442
								controls_province = 6522
								controls_province = 11478
							}
							AUS = {
								surrender_progress > 0.5
							}
							LVN = {
								has_capitulated = yes
							}
						}
					}
				}
			}
			if = {
				limit = {
					tag = AUS
				}
				# Austria's Victory Conditions
				custom_trigger_tooltip = {
					tooltip = ITA_Mission_AUS_PIE_Peace_Treaty_1860_AUS_VICTORY_tt
					tag = AUS
					PIE = {
						surrender_progress > 0.25
					}
				}
			}
		}
		complete_effect = {
			# Peace Treaty (Simple form, you can customize it later for various outcomes)
			# Insert Sardinia's Victory Here (Recommended you also check for tag so it only fires for Sardinia)
			PIE = {
				if = {
					limit = {
						has_completed_focus = PIE_Work_With_Mazzini
						tag = PIE
						LVN = {
							has_capitulated = yes
						}
					}
					clr_country_flag = PIE_2I_war_active
					country_lock_all_division_template = no
					PAP = {
						country_event = {
							id = risorgimento.122
						}
					}
					PIE = {
						transfer_state = 159
						transfer_state = 160
					}
					custom_effect_tooltip = PIE_2I_Peace
					hidden_effect = {
					}
				}
				if = {
					limit = {
						OR = {
							tag = PIE
							tag = FRA
						}
						LVN = {
							surrender_progress > 0.7
						}
						NOT = {
							#has_completed_focus = PIE_Path_of_the_Carbonari
							PIE = {
								has_completed_focus = PIE_The_Russian_Alliance
							}
						}
					}
					# Non-essential info
					hidden_effect = {
						if = {
							limit = {
								PIE = {
									has_idea = ITA_2IP_War_Leader
								}
							}
							PIE = {
								remove_ideas = {
									ITA_2IP_War_Leader
								}
							}
						}
						if = {
							limit = {
								FRA = {
									has_idea = ITA_2IP_War_Leader
								}
							}
							FRA = {
								remove_ideas = {
									ITA_2IP_War_Leader
								}
							}
						}
						if = {
							limit = {
								LVN = {
									has_idea = PIE_Encourage_Resistance_Idea
								}
							}
							LVN = {
								remove_ideas = {
									PIE_Encourage_Resistance_Idea
								}
							}
						}
						LVN = {
							remove_ideas = AUS_idea_italian_war
						}
						clr_country_flag = PIE_2I_war_active
						country_lock_all_division_template = no
						delete_unit_template_and_units = {
							division_template = "National Guard"
						}
						delete_unit_template_and_units = {
							division_template = "Perugian Volunteers"
						}
						delete_unit_template_and_units = {
							division_template = "Hunters Regiment"
						}
						PAP = {
							country_event = {
								id = risorgimento.122
							}
						}
						159 = {
							remove_dynamic_modifier = {
								modifier = dynmod_AUS_italian_unrest
							}
						}
						every_enemy_country = {
							white_peace = PIE
						}
						news_event = risorgimento.900
						clr_global_flag = FRA_PIE_OneCall
						set_global_flag = PIE_2IW_Victory
						NSC = {
							country_event = {
								id = risorgimento.697
								days = 30
							}
						}
						AUS = {
							set_country_flag = AUS_disaster_in_italy_flag
							mark_focus_tree_layout_dirty = yes
							country_event = {
								id = austria.301
								days = 4
							}
							remove_ideas = AUS_idea_italian_war
						}
						TUS = {
							every_enemy_country = {
								white_peace = TUS
							}
						}
						MNC = {
							every_enemy_country = {
								white_peace = MNC
							}
						}
						# France and puppets peace
						FRA = {
							if = {
								limit = {
									has_war_with = AUS
								}
								white_peace = AUS
							}
							if = {
								limit = {
									has_war_with = LVN
								}
								white_peace = LVN
							}
							dismantle_faction = yes
							remove_ideas = {
								ITA_2IP_Idea
							}
							country_event = {
								id = france.751
								days = 7
							}
						}
						EPD = {
							if = {
								limit = {
									has_war_with = AUS
								}
								white_peace = AUS
							}
							if = {
								limit = {
									has_war_with = LVN
								}
								white_peace = LVN
							}
						}
						GAB = {
							if = {
								limit = {
									has_war_with = AUS
								}
								white_peace = AUS
							}
							if = {
								limit = {
									has_war_with = LVN
								}
								white_peace = LVN
							}
						}
						TAH = {
							if = {
								limit = {
									has_war_with = AUS
								}
								white_peace = AUS
							}
							if = {
								limit = {
									has_war_with = LVN
								}
								white_peace = LVN
							}
						}
					}
					AUS = {
						remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					}
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					PIE = {
						country_event = {
							id = risorgimento.125
							days = 2
						}
						remove_ideas = {
							ITA_2IP_Idea
						}
					}
					PIE = {
						transfer_state = 159
					}
					#custom_effect_tooltip = PIE_2I_Peace
				}
				if = {
					limit = {
						OR = {
							PIE = {
								controls_province = 6656
								controls_province = 603
							}
							RUS = {
								controls_province = 442
								controls_province = 6522
								controls_province = 11478
							}
							AUS = {
								surrender_progress > 0.5
							}
							LVN = {
								has_capitulated = yes
							}
						}
						PIE = {
							has_completed_focus = PIE_The_Russian_Alliance
						}
						OR = {
							tag = PIE
							tag = RUS
						}
					}
					hidden_effect = {
						AUS = {
							if = {
								limit = {
									PIE = {
										controls_province = 6656
										controls_province = 603
									}
								}
								country_event = {
									id = risorgimento.259
								}
							}
							if = {
								limit = {
									RUS = {
										controls_province = 442
										controls_province = 6522
										controls_province = 11478
									}
								}
								country_event = {
									id = risorgimento.260
								}
							}
						}
						RUS = {
							country_event = {
								id = risorgimento.261
							}
						}
						159 = {
							remove_dynamic_modifier = {
								modifier = dynmod_AUS_italian_unrest
							}
						}
						if = {
							limit = {
								LVN = {
									has_idea = PIE_Encourage_Resistance_Idea
								}
							}
							LVN = {
								remove_ideas = {
									PIE_Encourage_Resistance_Idea
								}
							}
						}
						LVN = {
							remove_ideas = AUS_idea_italian_war
						}
						clr_country_flag = PIE_2I_war_active
						country_lock_all_division_template = no
						delete_unit_template_and_units = {
							division_template = "National Guard"
						}
						delete_unit_template_and_units = {
							division_template = "Perugian Volunteers"
						}
						delete_unit_template_and_units = {
							division_template = "Hunters Regiment"
						}
						RUS = {
							dismantle_faction = yes
						}
						PAP = {
							country_event = {
								id = risorgimento.122
							}
						}
						white_peace = LVN
						white_peace = AUS
						white_peace = TUS
						white_peace = MOD
						white_peace = PRM
						news_event = risorgimento.900
						set_global_flag = PIE_2IW_Victory
						NSC = {
							country_event = {
								id = risorgimento.697
								days = 30
							}
						}
						AUS = {
							set_country_flag = AUS_disaster_in_italy_flag
							mark_focus_tree_layout_dirty = yes
							country_event = {
								id = austria.301
								days = 4
							}
							remove_ideas = AUS_idea_italian_war
						}
						MNC = {
							every_enemy_country = {
								white_peace = MNC
							}
						}
						TUS = {
							white_peace = AUS
						}
						TUS = {
							white_peace = LVN
						}
						TUS = {
							white_peace = FRA
						}
						RUS = {
							white_peace = AUS
						}
						RUS = {
							white_peace = LVN
						}
						FIN = {
							white_peace = AUS
						}
						FIN = {
							white_peace = LVN
						}
						GEO = {
							white_peace = AUS
						}
						GEO = {
							white_peace = LVN
						}
						ABK = {
							white_peace = AUS
						}
						ABK = {
							white_peace = LVN
						}
					}
					AUS = {
						remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					}
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					PIE = {
						country_event = {
							id = risorgimento.123
							days = 2
						}
						remove_ideas = {
							ITA_2IP_Idea
						}
						transfer_state = 159
					}
					#PIE = {
					#	if = {
					#		limit = {
					#			has_country_flag = PIE_RUS_taking_LVN
					#		}
					#		transfer_state = 160
					#		add_state_core = 160
					#		160 = {
					#			remove_dynamic_modifier = {
					#				modifier = dynmod_AUS_italian_unrest
					#			}
					#		}
					#		clr_country_flag = PIE_RUS_taking_LVN
					#		AUS = {
					#			remove_dynamic_modifier = {
					#				modifier = AUS_Italian_Unrest_Modifier
					#			}
					#			clear_variable = AUS_ITA_Unrest_ppf
					#			clear_variable = AUS_ITA_Unrest_ddf
					#			clear_variable = AUS_ITA_Unrest_sf
					#			clear_variable = AUS_ITA_Unrest_risk_change
					#			clear_variable = ITA_UPROAR_RISK
					#		}
					#	}
					#	add_state_core = 159
					#	#clr_country_flag = PIE_RUS_taking_Lombardy
					#}
				}
			}
			if = {
				# INSERT AUSTRIA'S VICTORY CONDITIONS HERE
				limit = {
					tag = AUS
					PIE = {
						surrender_progress > 0.25						# Austria's Victory Conditions
					}
				}
				AUS = {
					if = {
						limit = {
							PIE = {
								has_idea = ITA_2IP_War_Leader
							}
						}
						PIE = {
							remove_ideas = {
								ITA_2IP_War_Leader
							}
						}
					}
					if = {
						limit = {
							FRA = {
								has_idea = ITA_2IP_War_Leader
							}
						}
						FRA = {
							remove_ideas = {
								ITA_2IP_War_Leader
							}
						}
					}
					if = {
						limit = {
							LVN = {
								has_idea = PIE_Encourage_Resistance_Idea
							}
						}
						LVN = {
							remove_ideas = {
								PIE_Encourage_Resistance_Idea
							}
						}
					}
					LVN = {
						hidden_effect = {
							remove_ideas = AUS_idea_italian_war
						}
					}
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					white_peace = PIE
					white_peace = PRM
					if = {
						limit = {
							has_war_with = RUS
						}
						TUS = {
							white_peace = AUS
						}
						TUS = {
							white_peace = LVN
						}
						TUS = {
							white_peace = FRA
						}
						RUS = {
							if = {
								limit = {
									has_war_with = AUS
								}
								dismantle_faction = yes
							}
							white_peace = AUS
						}
						RUS = {
							white_peace = LVN
						}
						FIN = {
							white_peace = AUS
						}
						FIN = {
							white_peace = LVN
						}
						GEO = {
							white_peace = AUS
						}
						GEO = {
							white_peace = LVN
						}
						ABK = {
							white_peace = AUS
						}
						ABK = {
							white_peace = LVN
						}
					}
					if = {
						limit = {
							has_war_with = FRA
						}
						FRA = {
							dismantle_faction = yes
						}
						white_peace = FRA
					}
					country_event = {
						id = austria.526
					}
					#Event enabling Austrian post-war victory content
					country_event = {
						id = risorgimento.48
					}
					#House of Savoy Flees
					hidden_effect = {
						set_country_flag = AUS_triumph_in_italy_flag
						mark_focus_tree_layout_dirty = yes
						remove_ideas = AUS_idea_italian_war
					}
				}
				PIE = {
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					#country_event = { id = sardinia_something } #Event that the ruling dynasty has fled to Sardinia
				}
				# Insert Austria's Victory Here (Recommended you also check for tag so it only fires for Austria)
				LVN = {
					white_peace = PIE
					white_peace = PRM
					#country_event = {
					#	id = ita_confederation.6
					#}
					#Annex all states of PIE into LVN, apart from Sardinia
					transfer_state = 158
					transfer_state = 735
					transfer_state = 822
					transfer_state = 981
					transfer_state = 1153
					#Perhaps set a cosmetic tag to change name and flag?
					#annex_country = {
					#	target = PRM
					#}
					#annex_country = {
					#	target = TIC
					#}
					#if = {
					#	limit = {
					#		MNC = {
					#			is_puppet_of = PIE
					#		}
					#	}
					#	LVN = {
					#		annex_country = {
					#			target = MNC
					#		}
					#	}
					#}
					#set_country_flag = ITA_AUS_Divide_Italy_Yes
					#set_country_flag = ITA_AUS_won_2I_Divide_Italy
				}
				MNC = {
					every_enemy_country = {
						white_peace = MNC
					}
				}
				TUS = {
					every_enemy_country = {
						white_peace = TUS
					}
				}
			}
			else = {
				## IMPORTANT, IF YOU USE 'ELSE' IT WILL ALWAYS BE SEEN BY AI/PLAYER
				# Optional: could be used for a custom_effect_tooltip to say simply 'will fire peace conference'
				custom_effect_tooltip = ITA_Mission_AUS_PIE_Peace_Treaty_1860_tt
			}
		}
		timeout_effect = {
			#if = {
			#	limit = {
			#		date > 1860.5.1
			#	}
			# Optional Trigger in case war lasting too long
			if = {
				limit = {
					tag = PIE
					has_completed_focus = PIE_Military_Plan_FT
					OR = {
						PIE = {
							controls_province = 3780
						}
						FRA = {
							controls_province = 14288
						}
					}
				}
				hidden_effect = {
					if = {
						limit = {
							PIE = {
								has_idea = ITA_2IP_War_Leader
							}
						}
						PIE = {
							remove_ideas = {
								ITA_2IP_War_Leader
							}
						}
					}
					if = {
						limit = {
							FRA = {
								has_idea = ITA_2IP_War_Leader
							}
						}
						FRA = {
							remove_ideas = {
								ITA_2IP_War_Leader
							}
						}
					}
					if = {
						limit = {
							PIE = {
								has_idea = ITA_2IP_Idea
							}
						}
						PIE = {
							remove_ideas = {
								ITA_2IP_Idea
							}
						}
					}
					if = {
						limit = {
							FRA = {
								has_idea = ITA_2IP_Idea
							}
						}
						FRA = {
							remove_ideas = {
								ITA_2IP_Idea
							}
						}
					}
					if = {
						limit = {
							LVN = {
								has_idea = PIE_Encourage_Resistance_Idea
							}
						}
						LVN = {
							remove_ideas = {
								PIE_Encourage_Resistance_Idea
							}
						}
					}
					LVN = {
						remove_ideas = AUS_idea_italian_war
					}
					clr_country_flag = PIE_2I_war_active
					country_lock_all_division_template = no
					delete_unit_template_and_units = {
						division_template = "National Guard"
					}
					delete_unit_template_and_units = {
						division_template = "Perugian Volunteers"
					}
					delete_unit_template_and_units = {
						division_template = "Hunters Regiment"
					}
					PAP = {
						country_event = {
							id = risorgimento.122
						}
					}
					159 = {
						remove_dynamic_modifier = {
							modifier = dynmod_AUS_italian_unrest
						}
					}
					every_enemy_country = {
						white_peace = PIE
					}
					news_event = risorgimento.900
					clr_global_flag = FRA_PIE_OneCall
					set_global_flag = PIE_2IW_Victory
					NSC = {
						country_event = {
							id = risorgimento.697
							days = 30
						}
					}
					AUS = {
						set_country_flag = AUS_disaster_in_italy_flag
						mark_focus_tree_layout_dirty = yes
						country_event = {
							id = austria.301
							days = 4
						}
						remove_ideas = AUS_idea_italian_war
					}
					TUS = {
						every_enemy_country = {
							white_peace = TUS
						}
					}
					MNC = {
						every_enemy_country = {
							white_peace = MNC
						}
					}
					# France and puppets peace
					FRA = {
						if = {
							limit = {
								has_war_with = AUS
							}
							white_peace = AUS
						}
						if = {
							limit = {
								has_war_with = LVN
							}
							white_peace = LVN
						}
						dismantle_faction = yes
						country_event = {
							id = france.751
							days = 7
						}
					}
					EPD = {
						if = {
							limit = {
								has_war_with = AUS
							}
							white_peace = AUS
						}
						if = {
							limit = {
								has_war_with = LVN
							}
							white_peace = LVN
						}
					}
					GAB = {
						if = {
							limit = {
								has_war_with = AUS
							}
							white_peace = AUS
						}
						if = {
							limit = {
								has_war_with = LVN
							}
							white_peace = LVN
						}
					}
					TAH = {
						if = {
							limit = {
								has_war_with = AUS
							}
							white_peace = AUS
						}
						if = {
							limit = {
								has_war_with = LVN
							}
							white_peace = LVN
						}
					}
				}
				AUS = {
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				}
				remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				PIE = {
					country_event = {
						id = risorgimento.125
						days = 2
					}
				}
				PIE = {
					transfer_state = 159
				}
			}
			if = {
				limit = {
					tag = PIE
					has_completed_focus = PIE_The_Russian_Alliance
					AND = {
						PIE = {
							controls_province = 3780
						}
						OR = {
							RUS = {
								controls_state = 88
							}
							RUS = {
								controls_state = 89
							}
							PIE = {
								controls_province = 11584
							}
						}
					}
				}
				hidden_effect = {
					159 = {
						remove_dynamic_modifier = {
							modifier = dynmod_AUS_italian_unrest
						}
					}
					if = {
						limit = {
							LVN = {
								has_idea = PIE_Encourage_Resistance_Idea
							}
						}
						LVN = {
							remove_ideas = {
								PIE_Encourage_Resistance_Idea
							}
						}
					}
					clr_country_flag = PIE_2I_war_active
					country_lock_all_division_template = no
					delete_unit_template_and_units = {
						division_template = "National Guard"
					}
					delete_unit_template_and_units = {
						division_template = "Perugian Volunteers"
					}
					delete_unit_template_and_units = {
						division_template = "Hunters Regiment"
					}
					RUS = {
						dismantle_faction = yes
					}
					PAP = {
						country_event = {
							id = risorgimento.122
						}
					}
					white_peace = LVN
					white_peace = AUS
					white_peace = TUS
					white_peace = MOD
					white_peace = PRM
					news_event = risorgimento.900
					set_global_flag = PIE_2IW_Victory
					NSC = {
						country_event = {
							id = risorgimento.697
							days = 30
						}
					}
					AUS = {
						set_country_flag = AUS_disaster_in_italy_flag
						mark_focus_tree_layout_dirty = yes
						country_event = {
							id = austria.301
							days = 4
						}
					}
					MNC = {
						every_enemy_country = {
							white_peace = MNC
						}
					}
					TUS = {
						white_peace = AUS
					}
					TUS = {
						white_peace = LVN
					}
					TUS = {
						white_peace = FRA
					}
					RUS = {
						white_peace = AUS
					}
					RUS = {
						white_peace = LVN
					}
					FIN = {
						white_peace = AUS
					}
					FIN = {
						white_peace = LVN
					}
					GEO = {
						white_peace = AUS
					}
					GEO = {
						white_peace = LVN
					}
					ABK = {
						white_peace = AUS
					}
					ABK = {
						white_peace = LVN
					}
				}
				AUS = {
					remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				}
				remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
				PIE = {
					country_event = {
						id = risorgimento.123
						days = 2
					}
					remove_ideas = {
						ITA_2IP_Idea
					}
				}
				PIE = {
					if = {
						limit = {
							has_country_flag = PIE_RUS_taking_LVN
						}
						transfer_state = 160
						add_state_core = 160
						160 = {
							remove_dynamic_modifier = {
								modifier = dynmod_AUS_italian_unrest
							}
						}
						clr_country_flag = PIE_RUS_taking_LVN
						AUS = {
							remove_dynamic_modifier = {
								modifier = AUS_Italian_Unrest_Modifier
							}
							clear_variable = AUS_ITA_Unrest_ppf
							clear_variable = AUS_ITA_Unrest_ddf
							clear_variable = AUS_ITA_Unrest_sf
							clear_variable = AUS_ITA_Unrest_risk_change
							clear_variable = ITA_UPROAR_RISK
						}
					}
					transfer_state = 159
					add_state_core = 159
					clr_country_flag = PIE_RUS_taking_Lombardy
				}
			}
			else = {
				if = {
					limit = {
						tag = AUS
					}
					AUS = {
						if = {
							limit = {
								PIE = {
									has_idea = ITA_2IP_War_Leader
								}
							}
							PIE = {
								remove_ideas = {
									ITA_2IP_War_Leader
								}
							}
						}
						if = {
							limit = {
								FRA = {
									has_idea = ITA_2IP_War_Leader
								}
							}
							FRA = {
								remove_ideas = {
									ITA_2IP_War_Leader
								}
							}
						}
						if = {
							limit = {
								PIE = {
									has_idea = ITA_2IP_Idea
								}
							}
							PIE = {
								remove_ideas = {
									ITA_2IP_Idea
								}
							}
						}
						if = {
							limit = {
								FRA = {
									has_idea = ITA_2IP_Idea
								}
							}
							FRA = {
								remove_ideas = {
									ITA_2IP_Idea
								}
							}
						}
						if = {
							limit = {
								LVN = {
									has_idea = PIE_Encourage_Resistance_Idea
								}
							}
							LVN = {
								remove_ideas = {
									PIE_Encourage_Resistance_Idea
								}
							}
						}
						remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
						white_peace = PIE
						white_peace = PRM
						if = {
							limit = {
								has_war_with = RUS
							}
							TUS = {
								white_peace = AUS
							}
							TUS = {
								white_peace = LVN
							}
							TUS = {
								white_peace = FRA
							}
							RUS = {
								if = {
									limit = {
										has_war_with = AUS
									}
									dismantle_faction = yes
								}
								white_peace = AUS
							}
							RUS = {
								white_peace = LVN
							}
							FIN = {
								white_peace = AUS
							}
							FIN = {
								white_peace = LVN
							}
							GEO = {
								white_peace = AUS
							}
							GEO = {
								white_peace = LVN
							}
							ABK = {
								white_peace = AUS
							}
							ABK = {
								white_peace = LVN
							}
						}
						if = {
							limit = {
								has_war_with = FRA
							}
							FRA = {
								dismantle_faction = yes
							}
							white_peace = FRA
						}
						country_event = {
							id = austria.526
						}
						#Event enabling Austrian post-war victory content
						country_event = {
							id = risorgimento.48
						}
						#House of Savoy Flees
						hidden_effect = {
							set_country_flag = AUS_triumph_in_italy_flag
							mark_focus_tree_layout_dirty = yes
						}
					}
					PIE = {
						remove_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
						#country_event = { id = sardinia_something } #Event that the ruling dynasty has fled to Sardinia
					}
					# Insert Austria's Victory Here (Recommended you also check for tag so it only fires for Austria)
					LVN = {
						white_peace = PIE
						white_peace = PRM
						#country_event = {
						#	id = ita_confederation.6
						#}
						#Annex all states of PIE into LVN, apart from Sardinia
						transfer_state = 158
						transfer_state = 735
						transfer_state = 822
						transfer_state = 981
						transfer_state = 1153
						#Perhaps set a cosmetic tag to change name and flag?
						#annex_country = {
						#	target = PRM
						#}
						#annex_country = {
						#	target = TIC
						#}
						#if = {
						#	limit = {
						#		MNC = {
						#			is_puppet_of = PIE
						#		}
						#	}
						#	LVN = {
						#		annex_country = {
						#			target = MNC
						#		}
						#	}
						#}
						#set_country_flag = ITA_AUS_Divide_Italy_Yes
						#set_country_flag = ITA_AUS_won_2I_Divide_Italy
					}
					MNC = {
						every_enemy_country = {
							white_peace = MNC
						}
					}
					TUS = {
						every_enemy_country = {
							white_peace = TUS
						}
					}
					MOD = {
						transfer_state = 813
						add_state_core = 813
						PRM = {
							remove_state_core = 813
						}
						add_popularity = {
							ideology = autocracy
							popularity = 0.2
						}
						set_politics = {
							ruling_party = autocracy
						}
					}
					PRM = {
						drop_cosmetic_tag = yes
						add_popularity = {
							ideology = autocracy
							popularity = 0.2
						}
						set_politics = {
							ruling_party = autocracy
						}
					}
				}
			}
			#}
			#else_if = {
			#	limit = {
			#		AUS = {
			#			has_war_with = PIE
			#		}
			#	}
			#	# Check if they are still at war
			#	activate_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860				# Loops the mission if they are still at war.
			#}
		}
	}
	ITA_War_Mission_TUS_2IP = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 200
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_PIE_victory_conditions_AUS_tt1
					# Victory Condition for Sardinia
					tag = PIE
					TUS = {
						surrender_progress > 0.7
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_TUS_victory_conditions_AUS_tt2
					# Victory Condition for Tuscany
					tag = TUS
					PIE = {
						surrender_progress > 0.7
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = PIE
					TUS = {
						surrender_progress > 0.7
					}
				}
				# Peace Treaty Event for X_country victory
				white_peace = TUS
				complete_national_focus = PIE_Annex_Central_Italian_States
				remove_mission = ITA_War_Mission_TUS_2IP
				TUS = {
					remove_mission = ITA_War_Mission_TUS_2IP
				}
			}
			if = {
				limit = {
					tag = TUS
					PIE = {
						surrender_progress > 0.7
					}
				}
				# Peace Treaty for Y_country victory
				remove_mission = ITA_War_Mission_TUS_2IP
				PIE = {
					remove_mission = ITA_War_Mission_TUS_2IP
				}
				TUS = {
					#Piedmont needs own event for exodus to sardinia
					if = {
						limit = {
							has_war_with = MNC
						}
						annex_country = {
							target = MNC
						}
					}
					PIE = {
						every_owned_state = {
							if = {
								limit = {
									NOT = {
										state = 114
									}
								}
								transfer_state_to = TUS
							}
						}
					}
					country_event = {
						id = risorgimento.48
					}
				}
			}
		}
		timeout_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							tag = PIE
							has_war_with = TUS
						}
						AND = {
							tag = TUS
							has_war_with = PIE
						}
					}
					date < 1861.1.1
				}
				activate_mission = ITA_War_Mission_TUS_2IP
			}
			else_if = {
				limit = {
					date > 1860.12.31
				}
				PIE = {
					complete_national_focus = PIE_Annex_Central_Italian_States
				}
			}
		}
	}
	ITA_War_Mission_PAP = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 200
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_PIE_victory_conditions_PAP_tt1
					# Victory Condition for Sardinia
					tag = PIE
					OR = {
						157 = {
							is_controlled_by = PIE
						}
						PAP = {
							surrender_progress > 0.7
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_PAP_victory_conditions_PAP_tt2
					# Victory Condition for Papal States
					tag = PAP
					PIE = {
						surrender_progress > 0.7
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = PIE
					OR = {
						157 = {
							is_controlled_by = PIE
						}
						PAP = {
							surrender_progress > 0.7
						}
					}
				}
				# Peace Treaty Event for X_country victory
				PIE = {
					#transfer_state = 161
					transfer_state = 157
					white_peace = PAP
					country_event = {
						id = risorgimento.256
						days = 2
					}
				}
				PAP = {
					country_event = {
						id = event_papacy.101
					}
				}
			}
			if = {
				limit = {
					tag = PAP
					PIE = {
						surrender_progress > 0.6
					}
				}
				PAP = {
					annex_country = {
						target = PIE
					}
					country_event = {
						id = event_papacy.101
					}
				}
				# Peace Treaty for Y_country victory
				###Country Event for Papal Victory
				#if = {
				#	limit = {
				#		PAP = {
				#			has_completed_focus = PAP_mantle_once_discarded
				#		}
				#	}
				#	annex_country = {
				#		target = PIE
				#	}
				#}
			}
		}
		timeout_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							tag = PIE
							has_war_with = PAP
						}
						AND = {
							tag = PAP
							has_war_with = PIE
						}
					}
					date < 1861.1.1
				}
				activate_mission = ITA_War_Mission_PAP
			}
			else_if = {
				limit = {
					date > 1860.12.31
				}
				PIE = {
					#transfer_state = 161
					transfer_state = 157
				}
			}
		}
	}
	ITA_War_Mission_PAP_Rome = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 200
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_Rome_victory_conditions_PAP_tt1
					# Victory Condition for Sardinia
					tag = ITA #Probably PIE though
					OR = {
						2 = {
							is_controlled_by = ITA
						}
						PAP = {
							surrender_progress > 0.5
						}
						ITA = {
							controls_province = 9904 #Rome
						}
						
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_Rome_victory_conditions_PAP_tt2
					# Victory Condition for Papal States
					tag = PAP
					ITA = {
						surrender_progress > 0.6
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = ITA #Probably PIE though
					OR = {
						2 = {
							is_controlled_by = ITA
						}
						PAP = {
							surrender_progress > 0.5
						}
						ITA = {
							controls_province = 9904 #Rome
						}
						
					}
				}
				# Peace Treaty Event 
				ITA = {
					transfer_state = 2
					add_state_core = 2
					diplomatic_relation = {
						country = PAP
						relation = guarantee
						active = yes
					}
					news_event = {
						id = ita.904
					}
					set_temp_variable = {
						eoanb_prestige_change = 3
					}
					eoanb_change_prestige_score = yes
				}
			}
			if = {
				limit = {
					tag = PAP
					PIE = {
						surrender_progress > 0.6
					}
				}
				PAP = {
					white_peace = ITA
					# Eventually maybe reconquer some land?
				}
			}
		}
		timeout_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							tag = ITA
							has_war_with = PAP
						}
						AND = {
							tag = PAP
							has_war_with = ITA
						}
					}
					date < 1864.12.1
				}
				activate_mission = ITA_War_Mission_PAP_Rome
			}
			else_if = {
				limit = {
					date > 1864.12.1
				}
				ITA = {
					transfer_state = 2
					add_state_core = 2
					diplomatic_relation = {
						country = PAP
						relation = guarantee
						active = yes
					}
					news_event = {
						id = ita.904
					}
					set_temp_variable = {
						eoanb_prestige_change = 3
					}
					eoanb_change_prestige_score = yes
				}
			}
		}
	}
	ITA_War_Mission_PAP_TUS = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 200
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_PIE_victory_conditions_PAP_tt1
					# Victory Condition for Sardinia
					tag = TUS
					OR = {
						157 = {
							is_controlled_by = TUS
						}
						PAP = {
							surrender_progress > 0.7
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_PAP_victory_conditions_PAP_tt2
					# Victory Condition for Papal States
					tag = PAP
					TUS = {
						surrender_progress > 0.7
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = TUS
					OR = {
						157 = {
							is_controlled_by = TUS
						}
						PAP = {
							surrender_progress > 0.7
						}
					}
				}
				# Peace Treaty Event for X_country victory
				TUS = {
					#transfer_state = 161
					transfer_state = 157
					white_peace = PAP
				}
			}
			if = {
				limit = {
					tag = PAP
					PIE = {
						surrender_progress > 0.6
					}
				}
				# Peace Treaty for Y_country victory
				###Country Event for Papal Victory
				annex_country = {
					target = TUS
				}
			}
		}
		timeout_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							tag = TUS
							has_war_with = PAP
						}
						AND = {
							tag = PAP
							has_war_with = TUS
						}
					}
					date < 1861.1.1
				}
				activate_mission = ITA_War_Mission_PAP
			}
			else_if = {
				limit = {
					date > 1860.12.31
				}
				TUS = {
					#transfer_state = 161
					transfer_state = 157
				}
			}
		}
	}
	ITA_War_Mission_NSC_Expedition = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = no
		days_mission_timeout = 400
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_PIE_victory_conditions_NSC_tt1
					# Victory Condition for Sardinia
					tag = PIE
					OR = {
						AND = {
							OR = {
								PIE = {
									controls_province = 819
								}
								CBI = {
									controls_province = 819
								}
							}
							OR = {
								PIE = {
									controls_province = 923
								}
								CBI = {
									controls_province = 923
								}
							}
						}
						NSC = {
							surrender_progress > 0.9
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_NSC_victory_conditions_NSC_tt2
					# Victory Condition for Two Sicilies
					tag = NSC
					if = {
						limit = {
							has_war_with = PIE
						}

						AND = {
							PIE = {
								surrender_progress > 0.7
							}
							CBI = {
								has_capitulated = yes
							}
						}
					}
					else = {
						CBI = {
							has_capitulated = yes
						}
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = PIE
					OR = {
						AND = {
							OR = {
								PIE = {
									controls_province = 819
								}
								CBI = {
									controls_province = 819
								}
							}
							OR = {
								PIE = {
									controls_province = 923
								}
								CBI = {
									controls_province = 923
								}
							}
						}
						NSC = {
							surrender_progress > 0.9
						}
					}
				}
				hidden_effect = {
					PIE = {
						dismantle_faction = yes
					}
					country_event = {
						id = risorgimento.249
						days = 1
					}
					country_event = {
						id = risorgimento.255
					}
					ROM = {
						country_event = {
							id = risorgimento.249
							days = 1
						}
					}
					NSC = {
						remove_ideas = {
							NSC_vic_idea_Cholera
							NSC_vic_idea_Poverty
							NSC_vic_idea_Sulphur
							NSC_vic_idea_Sulphur_UK
							NSC_vic_idea_Incapable_Army
							NSC_vic_idea_Sicilian_Menace
							NSC_vic_idea_1848_Rev
							PIE_Baby_Boom
						}
					}
				}
				PIE = {
					white_peace = NSC
					delete_unit_template_and_units = {
						division_template = "Puglian Irregulars"
					}
				}
				CBI = {
					annex_country = {
						target = NSC
					}
					white_peace = NSC
				}
			}
			if = {
				limit = {
					tag = NSC
					AND = {
						PIE = {
							surrender_progress > 0.7
						}
						CBI = {
							has_capitulated = yes
						}
					}
				}
				annex_country = {
					target = CBI
				}
				PIE = {
					remove_mission = ITA_War_Mission_NSC_Expedition
				}
				remove_mission = ITA_War_Mission_NSC_Expedition
			}
		}
		timeout_effect = {
			if = {
				limit = {
					date < 1862.1.1
				}
				activate_mission = ITA_War_Mission_NSC_Expedition
			}
			else_if = {
				limit = {
					date > 1861.12.31
				}
				PIE = {
					white_peace = NSC
				}
				CBI = {
					white_peace = NSC
					annex_country = {
						target = NSC
					}
				}
			}
		}
	}
	ITA_War_Mission_NSC_Expedition_TUS = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = no
		days_mission_timeout = 300
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = ITA_TUS_victory_conditions_NSC_tt1
					# Victory Condition for Sardinia
					tag = TUS
					OR = {
						AND = {
							OR = {
								TUS = {
									controls_province = 819
								}
								CBI = {
									controls_province = 819
								}
							}
							OR = {
								TUS = {
									controls_province = 923
								}
								CBI = {
									controls_province = 923
								}
							}
						}
						NSC = {
							surrender_progress > 0.9
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = ITA_NSC_victory_conditions_NSC_tt3
					# Victory Condition for Two Sicilies
					tag = NSC
					TUS = {
						surrender_progress > 0.7
					}
					CBI = {
						has_capitulated = yes
					}
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					tag = TUS
					OR = {
						AND = {
							OR = {
								TUS = {
									controls_province = 819
								}
								CBI = {
									controls_province = 819
								}
							}
							OR = {
								TUS = {
									controls_province = 923
								}
								CBI = {
									controls_province = 923
								}
							}
						}
						NSC = {
							surrender_progress > 0.9
						}
					}
				}
				# Peace Treaty Event for X_country victory
				hidden_effect = {
					TUS = {
						dismantle_faction = yes
					}
					country_event = {
						id = risorgimento.249
						days = 1
					}
					country_event = {
						id = risorgimento.255
					}
					ROM = {
						country_event = {
							id = risorgimento.249
							days = 1
						}
					}
					NSC = {
						remove_ideas = {
							NSC_vic_idea_Cholera
							NSC_vic_idea_Poverty
							NSC_vic_idea_Sulphur
							NSC_vic_idea_Sulphur_UK
							NSC_vic_idea_Incapable_Army
							NSC_vic_idea_Sicilian_Menace
							NSC_vic_idea_1848_Rev
							PIE_Baby_Boom
						}
					}
				}
				TUS = {
					white_peace = NSC
					remove_mission = ITA_War_Mission_NSC_Expedition
				}
				CBI = {
					annex_country = {
						target = NSC
					}
					white_peace = NSC
				}
			}
			if = {
				limit = {
					tag = NSC
					TUS = {
						surrender_progress > 0.7
					}
				}
				annex_country = {
					target = CBI
				}
				TUS = {
					remove_mission = ITA_War_Mission_NSC_Expedition
				}
				remove_mission = ITA_War_Mission_NSC_Expedition
			}
		}
		timeout_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							tag = TUS
							has_war_with = NSC
						}
						AND = {
							tag = NSC
							has_war_with = TUS
						}
					}
					date < 1862.1.1
				}
				activate_mission = ITA_War_Mission_NSC_Expedition_TUS
			}
			else_if = {
				limit = {
					date > 1861.12.31
				}
				TUS = {
					white_peace = NSC
				}
				CBI = {
					white_peace = NSC
					annex_country = {
						target = NSC
					}
				}
			}
		}
	}
	ITA_War_Mission_Garibaldis_Decree_Expedition = {
		###Dictator
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 250
		available = {
			CBI = {
				has_full_control_of_state = 1380
				controls_province = 10074
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.193
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Garibaldis_Decree_Expedition
		}
	}
	ITA_War_Mission_Garibaldis_Decree_RomeVenice_Expedition = {
		###Announces Plan to go all the way to Rome and Venice
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 250
		available = {
			CBI = {
				controls_province = 10027
			}
		}
		complete_effect = {
			news_event = {
				id = risorgimento.912
			}
			FRA = {
				country_event = {
					id = risorgimento.194
				}
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Garibaldis_Decree_RomeVenice_Expedition
		}
	}
	ITA_War_Mission_Garibaldis_Decree_Capture_of_Sicily = {
		###Announces Plan to go all the way to Rome and Venice
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 250
		available = {
			CBI = {
				controls_province = 4159
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.201
			}
			country_event = {
				id = risorgimento.244
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Garibaldis_Decree_RomeVenice_Expedition
		}
	}
	ITA_War_Mission_Expedition_Palermo_Uprising = {
		### 
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 100
		available = {
			CBI = {
				controls_province = 10074
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.200
			}
			hidden_effect = {
				CBI = {
					set_state_owner = 115
				}
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Expedition_Palermo_Uprising
		}
	}
	ITA_War_Mission_Expedition_Real_Marina = {
		### NSC navy defects to PIE
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 100
		available = {
			CBI = {
				controls_province = 4159
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.206
			}
			NSC = {
				country_event = risorgimento.207
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Expedition_Real_Marina
		}
	}
	ITA_War_Mission_Expedition_Apulia = {
		### Apulia joins Sardinia
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = yes
		days_mission_timeout = 100
		available = {
			CBI = {
				controls_province = 10027
			}
		}
		complete_effect = {
			country_event = {
				id = risorgimento.208
			}
			NSC = {
				country_event = risorgimento.209
			}
			hidden_effect = {
				division_template = {
					name = "Puglian Irregulars"
					is_locked = yes
					priority = 0
					template_counter = 0
					regiments = {
						light_infantry = {
							x = 0
							y = 0
						}
						light_infantry = {
							x = 0
							y = 1
						}
						light_infantry = {
							x = 0
							y = 2
						}
					}
				}
			}
		}
		timeout_effect = {
			activate_mission = ITA_War_Mission_Expedition_Apulia
		}
	}
	ITA_2IP_Mobilization_War_Imiment = {
		allowed = {
			tag = PIE
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = ITA_2IP_Mobilization_TT
				always = no
			}
		}
		activation = {
			always = no
		}
		visible = {
			has_completed_focus = PIE_War_Preperations_Second_War
		}
		is_good = yes
		days_mission_timeout = 100
		timeout_effect = {
			remove_mission = ITA_2IP_Mobilization_War_Imiment
			hidden_effect = {
				add_political_power = 100
				if = {
					limit = {
						is_ai = yes
					}
					add_political_power = 100
					add_ideas = ITA_AI_Boost_War
				}
				country_event = {
					id = risorgimento.180
					days = 10
				}
				if = {
					limit = {
						OR = {
							MOL = {
								has_country_flag = FRA_Romanian_Border_2IP
							}
							ROM = {
								has_country_flag = FRA_Romanian_Border_2IP
							}
						}
					}
					AUS = {
						country_event = {
							id = risorgimento.229
						}
						activate_mission = AUS_mission_romanian_troops_transylvanian_border
						hidden_effect = {
							add_ai_strategy = {
								type = prepare_for_war
								id = ROM
								value = 10
							}
							add_ai_strategy = {
								type = prepare_for_war
								id = MOL
								value = 10
							}
						}
					}
				}
			}
			if = {
				limit = {
					has_completed_focus = PIE_Plan_for_Plombieres
				}
				country_event = {
					id = risorgimento.115
				}
				AUS = {
					#activate_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860	#might be necessary here! needs checking
					hidden_effect = {
						if = {
							limit = {
								is_ai = yes
							}
							add_ideas = AUS_idea_italian_war
						}
					}
				}
				LVN = {
					hidden_effect = {
						if = {
							limit = {
								is_ai = yes
							}
							add_ideas = AUS_idea_italian_war
						}
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = PIE_The_Russian_Alliance
				}
				RUS = {
					country_event = {
						id = risorgimento.86
					}
				}
				AUS = {
					declare_war_on = {
						target = PIE
						type = wargoal_second_italian_war_of_independence
					}
					activate_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
					hidden_effect = {
						if = {
							limit = {
								is_ai = yes
							}
							add_ideas = AUS_idea_italian_war
						}
					}
				}
				LVN = {
					add_to_war = {
						targeted_alliance = AUS
						enemy = PIE
						hostility_reason = asked_to_join
					}
					hidden_effect = {
						if = {
							limit = {
								is_ai = yes
							}
							add_ideas = AUS_idea_italian_war
						}
					}
				}
			}
			activate_mission = ITA_Mission_AUS_PIE_Peace_Treaty_1860
			PRM = {
				country_event = {
					id = risorgimento.57
					days = 5
				}
			}
			TUS = {
				country_event = {
					id = risorgimento.57
					days = 5
				}
			}
			MOD = {
				country_event = {
					id = risorgimento.57
					days = 5
				}
			}
			hidden_effect = { PAP = { complete_national_focus = PAP_focus_Risorgimento } }
		}
	}
	ITA_decision_NSC_troops_marche = {
		###RNSC puts troops North
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		is_good = no
		ai_will_do = {
			base = 50
		}
		war_with_on_timeout = PIE
		war_with_on_timeout = PAP
		days_mission_timeout = 150
		available = {
			OR = {
				AND = {
					divisions_in_state = {
						type = infantry
						size > 5
						state = 812
					}
					divisions_in_state = {
						type = infantry
						size > 5
						state = 117
					}
					NOT = {
						has_war_with = CBI
					}
				}
				NOT = {
					has_war_with = CBI
				}
			}
		}
		complete_effect = {
			## none, decision is canceled when Piedmont unironically does invade
		}
		timeout_effect = {
			activate_mission = ITA_decision_NSC_troops_marche
			#custom_effect_tooltip = ITA_decision_NSC_troops_marche_TT
			if = {
				limit = {
					NOT = {
						AND = {
							divisions_in_state = {
								type = infantry
								size > 4
								state = 812
							}
							divisions_in_state = {
								type = infantry
								size > 4
								state = 117
							}
						}
					}
				}
				random_list = {
					25 = {
						add_war_support = -0.05
					}
					25 = {
						add_manpower = -200
					}
					25 = {
						army_experience = -10
					}
					25 = {
						set_equipment_fraction = 0.9
					}
				}
			}
		}
	}
}

#ITA_Referendum_category_decisions = {
#ITA_decision_ticino_referendum = {
#icon = generic_political_actions
#available = {
#}
#visible = {
#always = yes
#}
#complete_effect = {
#country_event = {
##id = ita.10
#hours = 1
#}
#}
#cost = 100
#fire_only_once = yes
#}
#}
ITA_brigindage_category_decisions = {
	ITA_decision_deal_with_brigindage = {
		ai_will_do = {
			base = 1
		}
		icon = generic_political_actions
		allowed = {
			always = no
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = ITA_brigandage_mission_active
				has_country_flag = ITA_brigandage_mission_over				#REMEMBER THIS
			}
		}
		days_mission_timeout = 1000
		timeout_effect = {
			# What happens when we fail the mission?
			#country_event = {
			#	id = ita.36
			#	days = 10
			#}
			remove_ideas = ITA_Brigandage
		}
		complete_effect = {
			# What happens when we activate the mission i.e. mission success?
			add_political_power = 50
			remove_ideas = ITA_Brigandage
		}
	}
	ITA_Brigandage_government_debate = {
		ai_will_do = {
			base = 1
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			AND = {
				original_tag = PIE
				has_completed_focus = ITA_PIE_focus_Gather_Political_Leaders
				has_active_mission = ITA_decision_deal_with_brigindage
			}
		}
		cost = 50
		fire_only_once = yes
		complete_effect = {
			#country_event = {
			#	id = ita.39
			#	days = 1
			#}
		}
	}
	ITA_Increase_Military_Presence = {
		ai_will_do = {
			base = 1
		}
		icon = generic_political_actions
		cost = 50
		days_re_enable = 180
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Tackling_Brigandage
		}
		complete_effect = {
			add_timed_idea = {
				idea = ITA_Military_Crackdown_Southern
				days = 180
			}
			add_power_balance_value = {
				id = ITA_Balance_of_Power_Brigandage
				value = 0.05
			}
		}
	}
	ITA_Manipulate_Southern_Economy = {
		ai_will_do = {
			base = 1
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Move_Southern_Industry_North
		}
		complete_effect = {
			add_timed_idea = {
				idea = ITA_Manipulate_Southern_Economy_idea
				days = 200
			}
		}
	}
	ITA_Brutal_Repression_South = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Tackling_Brigandage
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 45
		ai_will_do = {
			base = 15
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Tackling_Brigandage
		}
		days_remove = 120
		remove_effect = {
			country_event = {
				id = ita.75
			}
		}
	}
	ITA_Drafting_of_the_Massari_Report = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Begin_the_Inquiry
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 45
		ai_will_do = {
			base = 15
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Begin_the_Inquiry
		}
		days_remove = 120
		remove_effect = {
			country_event = { 
				id = ita.85
			}
		}
	}
	ITA_Brigandage_Pica_Law = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Pica_Law
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 45
		ai_will_do = {
			base = 15
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Pica_Law
		}
		days_remove = 150
		modifier = {
			power_balance_weekly = 0.01
		}
		remove_effect = {
			### TODO:Event about result of Pica Law (perhaps a small negative move left?)
			if = {
				limit = {
					has_power_balance_modifier = {
						id = ITA_Balance_of_Power_Brigandage
						modifier = ITA_power_balance_pica_law_sicily
					}
				}
				remove_power_balance_modifier = {
					id = ITA_Balance_of_Power_Brigandage
					modifier = ITA_power_balance_pica_law_sicily
				}
			}
		}
	}
	ITA_Extend_Pica_Law = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_decision = ITA_Brigandage_Pica_Law
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		available = {
			has_decision = ITA_Brigandage_Pica_Law
		}
		complete_effect = {
			add_days_remove  = {
				decision = ITA_Brigandage_Pica_Law
				days = 365
			}
		}
	}
	ITA_Extend_Pica_Law_south = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_decision = ITA_Brigandage_Pica_Law
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 40
		ai_will_do = {
			base = 15
		}
		available = {
			has_decision = ITA_Brigandage_Pica_Law
		}
		complete_effect = {
			country_event = {
				id = ita.88
			}
			add_power_balance_modifier = {
				id = ITA_Balance_of_Power_Brigandage
				modifier = ITA_power_balance_pica_law_sicily
			}
		}
	}
	ITA_Bersaglieri_Campaign_Abruzzo = {
		ai_will_do = {
			base = 1
		}
		highlight_states = {
			highlight_state_targets = {
				state = 812
			}
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Law_no_143
		}
		complete_effect = {
			add_power_balance_value = {
				id = ITA_Balance_of_Power_Brigandage
				value = 0.05
			}
		}
	}
	ITA_Bersaglieri_Campaign_Campania = {
		ai_will_do = {
			base = 1
		}
		highlight_states = {
			highlight_state_targets = {
				state = 117
			}
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Law_no_143
		}
		complete_effect = {
			add_power_balance_value = {
				id = ITA_Balance_of_Power_Brigandage
				value = 0.05
			}
		}
	}
	ITA_Bersaglieri_Campaign_Apulia = {
		ai_will_do = {
			base = 1
		}
		highlight_states = {
			highlight_state_targets = {
				state = 997
			}
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Law_no_143
		}
		complete_effect = {
			add_power_balance_value = {
				id = ITA_Balance_of_Power_Brigandage
				value = 0.05
			}
		}
	}
	ITA_Bersaglieri_Campaign_Calabria = {
		ai_will_do = {
			base = 1
		}
		highlight_states = {
			highlight_state_targets = {
				state = 156
			}
		}
		icon = generic_political_actions
		cost = 50
		fire_only_once = yes
		available = {
			has_active_mission = ITA_decision_deal_with_brigindage
			has_completed_focus = ITA_PIE_focus_Law_no_143
		}
		complete_effect = {
			add_power_balance_value = {
				id = ITA_Balance_of_Power_Brigandage
				value = 0.05
			}
		}
	}
}

ITA_decisions_category_artisan_industry = {
	ITA_culoz_moudane_railway = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = PIE_Authorize_Culoz_Modane_Railway
		}
		icon = railway
		fire_only_once = yes
		cost = 80
		modifier = {
			consumer_goods_expected_value = 0.03
		}
		days_remove = 100
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					6780
					9745
				}
			}
		}
	}
	ITA_frejus_rail_tunnel = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = PIE_Commence_Construction_Frejus_Rail_Tunnel
		}
		icon = railway
		fire_only_once = yes
		cost = 100
		modifier = {
			consumer_goods_expected_value = 0.03
		}
		days_remove = 100
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					9745
					778
					9603
				}
			}
		}
	}
	ITA_annecy_geneva_railway = {
		allowed = {
			OR = {
				tag = SWI
				tag = PIE
			}
		}
		visible = {
			always = no
		}
		icon = railway
		fire_only_once = yes
		cost = 100
		modifier = {
			consumer_goods_expected_value = 0.07
		}
		days_remove = 200
		remove_effect = {
			effect_tooltip = {
				build_railway = {
					level = 1
					path = {
						9603
						13124
						6666
					}
				}
			}
			hidden_effect = {
				if = {
					limit = {
						tag = PIE
					}
					build_railway = {
						level = 1
						path = {
							778
							9603
							6666
						}
					}
				}
			}
		}
	}
	ITA_National_Roads_Switzerland = {
		allowed = {
			OR = {
				tag = SWI
				tag = PIE
			}
		}
		visible = {
			always = no
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 60
		modifier = {
			civilian_factory_use = 1
		}
		days_remove = 200
		remove_effect = {
			effect_tooltip = {
				3 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				981 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			hidden_effect = {
				if = {
					limit = {
						tag = SWI
					}
					3 = {
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
					}
				}
				if = {
					limit = {
						tag = PIE
					}
					981 = {
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}
	}
	ITA_TUS_Prato_Textile_Mill = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_textile_industry
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		ai_will_do = {
			base = 25
		}
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50
		days_remove = 200
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		remove_effect = {
			162 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = fabric_weavery
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_TUS_Casentino_Textile_Mill = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_textile_industry
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		ai_will_do = {
			base = 25
		}
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50
		days_remove = 200
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		remove_effect = {
			162 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = fabric_weavery
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_TUS_Valtiberina_Textile_Mill = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_textile_industry
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		ai_will_do = {
			base = 25
		}
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50
		days_remove = 200
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		remove_effect = {
			162 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = fabric_weavery
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_TUS_Invest_in_Artisan_Industry = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_the_artisans
		}
		ai_will_do = {
			base = 35
		}
		icon = generic_construction
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 3
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -3 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		modifier = {
			production_factory_efficiency_gain_factor = 0.05
			production_factory_max_efficiency_factor = 0.05
			consumer_goods_income_factor = 0.25
			hidden_modifier = {
				consumer_goods_income_factor_from_decisions  = 0.25
			}
		}
		days_remove = 365
	}
	ITA_TUS_Expand_Workshops_Artisans = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_the_artisans
		}
		icon = generic_construction
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 3
			}
			has_political_power > 49.99
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 150
		complete_effect = {
			set_temp_variable = { money_to_gain = -3 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		remove_effect = {
			162 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_TUS_Gavorrano_Metalliferous_Field = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_the_iron_industry
		}
		icon = generic_construction
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 100
		remove_effect = {
			add_resource = {
				type = iron
				amount = 3
				state = 162
			}
		}
	}
	ITA_TUS_Fund_Steelworks_Companies = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_the_iron_industry
		}
		icon = generic_construction
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 150
		remove_effect = {
			162 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_TUS_livorno_chiarone_railway = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_not_industrialisation
		}
		icon = railway
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					11833
					6875
					6862
				}
			}
		}
	}
	ITA_TUS_florence_siena_railway = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_not_industrialisation
		}
		icon = railway
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		complete_effect = {
			hidden_effect = {
				set_country_flag = TUS_siena_railway
			}
		}
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					9907
					910
					9750
				}
			}
			if = {
				limit = {
					has_country_flag = TUS_arezzo_railway
				}
				country_event = {
					id = risorgimento.509
				}
			}
		}
	}
	ITA_TUS_florence_arezzo_railway = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_not_industrialisation
		}
		icon = railway
		fire_only_once = yes
		custom_cost_text = eoanb_money_and_political_power_50
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_political_power > 49.99
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
			add_political_power = -50
		}
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		complete_effect = {
			hidden_effect = {
				set_country_flag = TUS_arezzo_railway
			}
		}
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					9907
					9879
				}
			}
			if = {
				limit = {
					has_country_flag = TUS_siena_railway
				}
				country_event = {
					id = risorgimento.509
				}
			}
		}
	}
	ITA_TUS_arezzo_perguia_railway = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_not_industrialisation
			has_country_flag = TUS_arezzo_perugia_rail_decision
		}
		icon = railway
		fire_only_once = yes
		cost = 80
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					9879
					3885
				}
			}
			hidden_effect = {
				clr_country_flag = TUS_arezzo_perugia_rail_decision
			}
		}
	}
	ITA_TUS_siena_perguia_railway = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_not_industrialisation
			has_country_flag = TUS_siena_perugia_rail_decision
		}
		icon = railway
		fire_only_once = yes
		cost = 80
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		remove_effect = {
			build_railway = {
				level = 1
				path = {
					9750
					3885
				}
			}
			hidden_effect = {
				clr_country_flag = TUS_siena_perugia_rail_decision
			}
		}
	}
	ITA_PIE_sardinian_infrastructure = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_country_flag = PIE_industrialize_sardinia
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 40
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		remove_effect = {
			114 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}
	}
	ITA_PIE_sardinian_industrial_capacity = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_country_flag = PIE_industrialize_sardinia
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 65
		modifier = {
			consumer_goods_expected_value = 0.04
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 250
		remove_effect = {
			114 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	ITA_La_Spezia_Naval_Expansion = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Expand_the_Arsenal_in_La_Spezia
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 50
		modifier = {
			civilian_factory_use = 2
		}
		ai_will_do = {
			base = 25
		}
		days_remove = 150
		remove_effect = {
			158 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				set_building_level = {
					type = naval_base
					level = 8
					province = 14140
				}
			}
		}
	}
}

ITA_decisions_category_TUS_liberalizing_tuscany = {
	ITA_TUS_subverting_austrian_influence = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		days_remove = 250
		complete_effect = {
			add_political_power = -15
			country_event = {
				id = risorgimento.523
			}
		}
		modifier = {
			political_power_gain = -0.2
		}
	}
	ITA_TUS_arm_civic_militias = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_equipment = {
				infantry_equipment_rifle_0 > 250
			}
			has_decision = ITA_TUS_subverting_austrian_influence
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		days_remove = 100
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_0
				amount = -500
			}
		}
	}
	ITA_TUS_call_civic_militias = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_arm_civic_militias
			has_decision = ITA_TUS_subverting_austrian_influence
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 35
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			division_template = {
				name = "Civic Militias"
				is_locked = yes
				priority = 0
				template_counter = 0
				regiments = {
					light_infantry = {
						x = 0
						y = 0
					}
					light_infantry = {
						x = 0
						y = 1
					}
					light_infantry = {
						x = 0
						y = 2
					}
					line_infantry = {
						x = 1
						y = 0
					}
					line_infantry = {
						x = 1
						y = 1
					}
				}
			}
			162 = {
				create_unit = {
					division = "name = \"1st Civic Militia Division\" division_template = \"Civic Militias\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
				create_unit = {
					division = "name = \"2nd Civic Militia Division\" division_template = \"Civic Militias\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
				create_unit = {
					division = "name = \"3rd Civic Militia Division\" division_template = \"Civic Militias\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
				create_unit = {
					division = "name = \"4th Civic Militia Division\" division_template = \"Civic Militias\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
			}
		}
	}
	ITA_TUS_smuggle_goods_through_livorno = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 35
		ai_will_do = {
			base = 50
		}
		days_remove = 200
		complete_effect = {
			add_manpower = 1000
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_0
				amount = 500
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment_0
				amount = 500
			}
			add_equipment_to_stockpile = {
				type = cannon_equipment_0
				amount = 50
			}
		}
		modifier = {
			consumer_goods_expected_value = -0.1
		}
	}
	ITA_TUS_form_volunteer_regiment = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_work_with_outside_forces
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 35
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			162 = {
				create_unit = {
					division = "name = \"1st Volunteer Regiment\" division_template = \"Volunteer Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
				create_unit = {
					division = "name = \"2nd Volunteer Regiment\" division_template = \"Volunteer Regiment\" start_experience_factor = 0.5 start_equipment_factor = 0.85"
					owner = TUS
					prioritize_location = 9907
				}
			}
		}
	}
	ITA_TUS_request_goods_from_piedmont = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_a_message_to_sardinia
			custom_trigger_tooltip = {
				tooltip = PIE_TUS_supported_tuscany_tt
				PIE = {
					has_country_flag = PIE_TUS_Support_Democracy_in_Tuscany
				}
			}
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_0
				amount = 500
			}
		}
	}
	ITA_TUS_request_piedmont_military_advisors = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_a_message_to_sardinia
			custom_trigger_tooltip = {
				tooltip = PIE_TUS_supported_tuscany_tt
				PIE = {
					has_country_flag = PIE_TUS_Support_Democracy_in_Tuscany
				}
			}
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 35
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			army_experience = 15
			TUS_girolamo_calà_ulloa = {
				add_corps_commander_role = {
					traits = {
						organizer
						defensive_doctrine
						thorough_planner
					}
					skill = 3
					attack_skill = 2
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 2
				}
			}
		}
	}
	ITA_TUS_request_goods_from_france = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_a_message_to_others
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			FRA = {
				country_event = {
					id = risorgimento.524
				}
			}
		}
	}
	ITA_TUS_request_goods_from_russia = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_a_message_to_others
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			RUS = {
				country_event = {
					id = risorgimento.525
				}
			}
		}
	}
	ITA_TUS_request_goods_from_england = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
			has_completed_focus = TUS_focus_a_message_to_others
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 50
		}
		complete_effect = {
			ENG = {
				country_event = {
					id = risorgimento.526
				}
			}
		}
	}
	ITA_TUS_request_removal_austrian_garrison = {
		allowed = {
			tag = TUS
		}
		visible = {
			has_completed_focus = TUS_focus_convince_the_populace
			has_completed_focus = TUS_focus_into_republicanism
		}
		available = {
			has_decision = ITA_TUS_subverting_austrian_influence
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 40
		}
		complete_effect = {
			#remove_decision = ITA_TUS_subverting_austrian_influence
			AUS = {
				country_event = {
					id = risorgimento.531
				}
			}
		}
	}
}

ITA_decisions_category_ITA_legislative_actions = {
	ITA_PIE_legislative_rattazzi_losing_confidence = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		available = {
			always = no
		}
		icon = mission_icon
		days_mission_timeout = 120
		selectable_mission = yes
		complete_effect = {
		}
		timeout_effect = {
			country_event = {
				id = ita.61
			}
		}
	}
	ITA_PIE_legislative_September_Convention = {
		allowed = {
			always = no
		}
		activation = {
			always = no
		}
		available = {
			always = no
		}
		icon = mission_icon
		days_mission_timeout = 180
		selectable_mission = no
		timeout_effect = {
			set_capital = {
				state = 162
			}
		}
	}
	ITA_PIE_legislative_Inquiry_on_Turin_Massacre = {
		allowed = {
			tag = PIE
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Aftermath_of_the_Turin_Massacre
			NOT = {
				has_completed_focus = ITA_PIE_focus_Government_in_Crisis
			}
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Aftermath_of_the_Turin_Massacre
			NOT = {
				has_completed_focus = ITA_PIE_focus_Government_in_Crisis
			}
		}
		fire_only_once = yes
		icon = generic_political_actions
		cost = 20
		days_remove = 130
		complete_effect = {
			country_event = {
				id = ita.107
			}
		}
		remove_effect = {
			country_event = {
				id = ita.108
			}
		}
	}
}

ITA_decisions_category_ITA_florence_restoration = {
	ITA_PIE_florence_begin_revival = {
		allowed = {
			tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Arrival_of_the_King_Florence
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Arrival_of_the_King_Florence
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 20
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			add_ideas = {
				ITA_Florence_Revival
			}
		}
	}
}

ITA_decisions_category_PIE_legislative_actions = {
	ITA_PIE_legislative_alessandria_barracks = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 20
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			army_experience = 10
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
	}
	ITA_PIE_legislative_turin_hospital = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 20
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			army_experience = 10
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
	}
	ITA_PIE_legislative_military_draft_law = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 20
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			army_experience = 5
			add_manpower = 1000
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
	}
	ITA_PIE_legislative_military_academy = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		days_remove = 100
		complete_effect = {
			army_experience = 5
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
		modifier = {
			war_support_weekly = 0.01
			command_power_gain = 0.25
		}
	}
	ITA_PIE_legislative_establish_military_sons = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			add_manpower = 2500
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
	}
	ITA_PIE_legislative_railway_concessions = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		days_remove = 400
		modifier = {
			production_speed_rail_way_factor = 0.25
			consumer_goods_expected_value = 0.1
			monthly_unemployment_change = -0.01
		}
	}
	ITA_PIE_legislative_ademprivi_sardinia = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		icon = generic_political_actions
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			## Event about Ademprivi
		}
	}
	ITA_PIE_legislative_teacher_schools = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		days_remove = 400
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
		modifier = {
			research_speed_factor = 0.05
			research_spending_cost_factor = 0.05
			hidden_modifier = {
				research_spending_cost_factor_from_decisions  = 0.05
			}
		}
	}
	ITA_PIE_legislative_alessandria_college = {
		allowed = {
			tag = PIE
		}
		visible = {
		}
		available = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		icon = generic_construction
		fire_only_once = yes
		cost = 30
		ai_will_do = {
			base = 10
		}
		days_remove = 250
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
		modifier = {
			research_speed_factor = 0.03
			research_spending_cost_factor = 0.05
			hidden_modifier = {
				research_spending_cost_factor_from_decisions  = 0.05
			}
		}
	}
}

ITA_decisions_category_PIE_diplomatic_endeavors = {
	ITA_USA_Diplomacy_Begin = {
		allowed = {
			original_tag = PIE
		}
		icon = USA
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		days_remove = 700
		modifier = {
			political_power_factor = -0.01
		}
		complete_effect = {
			USA = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = USA
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_USA_Relations_Report = {
		allowed = {
			original_tag = PIE
		}
		available = {
			has_decision = ITA_USA_Diplomacy_Begin
		}
		icon = USA
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.212
				}
			}
		}
	}
	ITA_USA_Reaction_to_Civil_War = {
		allowed = {
			OR = {
				original_tag = PIE
				original_tag = TUS
				original_tag = PAP
				original_tag = NSC
			}
		}
		visible = {
			has_country_flag = is_literally_italy
		}
		available = {
			OR = {
				USA = {
					has_offensive_war_with = CSA
				}
				CSA = {
					has_offensive_war_with = USA
				}
			}
		}
		icon = USA
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		days_remove = 500
		complete_effect = {
			country_event = {
				id = ita.50
			}
		}
	}
	ITA_ENG_Diplomacy_Begin = {
		allowed = {
			original_tag = PIE
		}
		available = {
			OR = {
				has_completed_focus = PIE_Political_Structure_Planning_FT
				has_country_flag = is_literally_italy
			}
		}
		icon = ENG
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		modifier = {
			political_power_factor = -0.01
		}
		days_remove = 700
		complete_effect = {
			ENG = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = ENG
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_ENG_Postal_Convention = {
		allowed = {
			original_tag = PIE
		}
		available = {
			has_decision = ITA_ENG_Diplomacy_Begin
		}
		icon = ENG
		fire_only_once = yes
		cost = 5
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.236
				}
			}
		}
	}
	ITA_ENG_Signal_Building_Law = {
		allowed = {
			original_tag = PIE
		}
		available = {
			has_decision = ITA_ENG_Diplomacy_Begin
		}
		icon = ENG
		fire_only_once = yes
		cost = 10
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.238
				}
			}
		}
	}
	ITA_QNG_Hong_Kong_Consulate = {
		allowed = {
			original_tag = PIE
		}
		available = {
			date > 1858.1.1
		}
		icon = ENG
		fire_only_once = yes
		cost = 10
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.272
				}
			}
		}
	}
	ITA_RUS_Seek_Russian_Recognition = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Build_Recognition_in_Europe
		}
		available = {
			if = {
				limit = {
					NOT = {
						has_country_flag = PIE_RUS_Alliance_2IP
					}
				}
				date > 1862.1.1
			}
		}
		icon = RUS
		fire_only_once = yes
		cost = 15
		ai_will_do = {
			base = 25
		}
		complete_effect = {
			country_event = {
				id = ita.64
			}
		}
	}
	ITA_FRA_Seek_French_Recognition = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Build_Recognition_in_Europe
		}
		available = {
		}
		icon = FRA
		fire_only_once = yes
		cost = 15
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			country_event = {
				id = ita.19
			}
		}
	}
	ITA_GRE_Seek_Greek_Recognition = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Build_Recognition_in_Europe
		}
		available = {
		}
		icon = GRE
		fire_only_once = yes
		cost = 15
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			country_event = {
				id = ita.100
			}
		}
	}
	ITA_POR_Seek_Portuguese_Recognition = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Build_Recognition_in_Europe
		}
		available = {
		}
		icon = POR
		fire_only_once = yes
		cost = 15
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			country_event = {
				id = ita.103
			}
		}
	}
	ITA_QNG_Christofor_Negri = {
		allowed = {
			original_tag = PIE
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Reorganize_the_Cabinet
		}
		icon = QNG
		fire_only_once = yes
		cost = 10
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			ITA = {
				country_event = {
					id = ita.113
				}
			}
		}
	}
	ITA_QNG_Torelli_Report = {
		allowed = {
			original_tag = PIE
		}
		available = {
			date > 1864.1.1
		}
		visible = {
			has_country_flag = is_literally_italy
		}
		icon = QNG
		fire_only_once = yes
		cost = 10
		ai_will_do = {
			base = 10
		}
		complete_effect = {
			ITA = {
				country_event = {
					id = ita.115
				}
			}
		}
	}
	ITA_QNG_Far_East_Expedition = {
		activation = {
			always = no
		}
		allowed = {
			original_tag = PIE
		}
		available = {
			always = no
		}
		icon = QNG
		fire_only_once = yes
		selectable_mission = no
		ai_will_do = {
			base = 10
		}
		days_mission_timeout = 400
		timeout_effect = {
			country_event = {
				id = ita.117
			}
		}
	}
	ITA_QNG_Far_East_Expedition_part1 = {
		activation = {
			always = no
		}
		allowed = {
			original_tag = PIE
		}
		available = {
			always = no
		}
		icon = QNG
		fire_only_once = yes
		selectable_mission = no
		ai_will_do = {
			base = 10
		}
		days_mission_timeout = 370
		timeout_effect = {
			country_event = {
				id = ita.118
			}
		}
	}
	ITA_QNG_Far_East_Expedition_part2 = {
		activation = {
			always = no
		}
		allowed = {
			original_tag = PIE
		}
		available = {
			always = no
		}
		icon = QNG
		fire_only_once = yes
		selectable_mission = no
		ai_will_do = {
			base = 10
		}
		days_mission_timeout = 180
		timeout_effect = {
			country_event = {
				id = ita.119
			}
		}
	}
	ITA_QNG_Far_East_Expedition_part3 = {
		activation = {
			always = no
		}
		allowed = {
			original_tag = PIE
		}
		available = {
			always = no
		}
		icon = QNG
		fire_only_once = yes
		selectable_mission = no
		ai_will_do = {
			base = 10
		}
		days_mission_timeout = 60
		timeout_effect = {
			country_event = {
				id = ita.120
			}
		}
	}
	ITA_FRA_PAP_Roman_Question_French_Garrison_Leave = {
		allowed = {
			OR = {
				original_tag = PIE
				original_tag = TUS
				original_tag = PAP
			}
		}
		available = {
			always = no
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_The_Roman_Question
		}
		days_remove = 100
		icon = civil_support_ita
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		remove_effect = {
			### papal states transfered, cores gained
			effect_tooltip = {
				if = {
					limit = {
						PAP = {
							has_country_flag = PAP_Decline_Italian_Proposal_FRA
						}
					}
					PAP = {
						country_event = {
							id = ita.81
						}
					}
				}
				else = {
					ITA = {
						transfer_state = 2
						add_state_core = 2
						diplomatic_relation = {
							country = PAP
							relation = guarantee
							active = yes
						}
						PIE_Urbano_Rattazzi = {
							if = {
								limit = {
									is_country_leader = yes
								}
								add_trait = {
									ideology = conserv_liberal
									trait = PIE_trait_Captured_Rome
								}
							}
						}
						PIE_bettino_ricasoli = {
							if = {
								limit = {
									is_country_leader = yes
								}
								add_trait = {
									ideology = conserv_liberal
									trait = PIE_trait_Captured_Rome
								}
							}
						}
					}
				}
			}
			hidden_effect = {
				if = {
					limit = {
						tag = ITA
						NOT = {
							PAP = {
								has_country_flag = PAP_Decline_Italian_Proposal_FRA
							}
						}
					}
					FRA = {
						diplomatic_relation = {
							country = PAP
							relation = guarantee
							active = no
						}
					}
					ITA = {
						transfer_state = 2
						add_state_core = 2
						diplomatic_relation = {
							country = PAP
							relation = guarantee
							active = yes
						}
						news_event = {
							id = ita.904
						}
						set_temp_variable = {
							eoanb_prestige_change = 3
						}
						eoanb_change_prestige_score = yes
						PIE_Urbano_Rattazzi = {
							if = {
								limit = {
									is_country_leader = yes
								}
								add_trait = {
									ideology = conserv_liberal
									trait = PIE_trait_Captured_Rome
								}
							}
						}
						PIE_bettino_ricasoli = {
							if = {
								limit = {
									is_country_leader = yes
								}
								add_trait = {
									ideology = conserv_liberal
									trait = PIE_trait_Captured_Rome
								}
							}
						}
					}
				}
				else_if = {
					limit = {
						tag = ITA
						PAP = {
							has_country_flag = PAP_Decline_Italian_Proposal_FRA
						}
					}
					FRA = {
						diplomatic_relation = {
							country = PAP
							relation = guarantee
							active = no
						}
					}
					PAP = {
						country_event = {
							id = ita.81
						}
					}
				}
			}
		}
	}
	ITA_SWI_Diplomacy_Begin = {
		allowed = {
			tag = PIE
		}
		icon = SWI
		fire_only_once = yes
		cost = 50
		days_remove = 700
		ai_will_do = {
			base = 15
		}
		modifier = {
			political_power_factor = -0.01
		}
		complete_effect = {
			SWI = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = SWI
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_SWI_Annecy_Geneva_Railroad = {
		allowed = {
			tag = PIE
		}
		icon = SWI
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 15
		}
		available = {
			has_decision = ITA_SWI_Diplomacy_Begin
		}
		complete_effect = {
			SWI = {
				country_event = {
					id = risorgimento.211
				}
				activate_decision = ITA_annecy_geneva_railway
			}
			PIE = {
				country_event = {
					id = risorgimento.211
				}
				activate_decision = ITA_annecy_geneva_railway
			}
		}
	}
	ITA_SWI_Infastructure_Investements = {
		allowed = {
			tag = PIE
		}
		icon = SWI
		fire_only_once = yes
		cost = 45
		ai_will_do = {
			base = 15
		}
		available = {
			has_decision = ITA_SWI_Diplomacy_Begin
		}
		complete_effect = {
			activate_decision = ITA_National_Roads_Switzerland
			country_event = {
				id = risorgimento.215
			}
			SWI = {
				country_event = {
					id = risorgimento.215
				}
				activate_decision = ITA_National_Roads_Switzerland
			}
		}
	}
	ITA_BEL_Diplomacy_Begin = {
		allowed = {
			tag = PIE
		}
		icon = BEL
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		days_remove = 700
		modifier = {
			political_power_factor = -0.01
		}
		complete_effect = {
			BEL = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = BEL
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_BEL_Treaty_of_Navigation_Trade = {
		allowed = {
			tag = PIE
		}
		available = {
			has_decision = ITA_BEL_Diplomacy_Begin
		}
		icon = BEL
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		days_remove = 500
		complete_effect = {
			country_event = {
				id = risorgimento.216
			}
		}
	}
	ITA_DEN_Diplomacy_Begin = {
		allowed = {
			original_tag = PIE
		}
		icon = DEN
		fire_only_once = yes
		cost = 50
		ai_will_do = {
			base = 15
		}
		days_remove = 700
		modifier = {
			political_power_factor = -0.01
		}
		complete_effect = {
			DEN = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = DEN
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_DEN_Sound_Toll = {
		allowed = {
			original_tag = PIE
		}
		available = {
			has_decision = ITA_DEN_Diplomacy_Begin
		}
		icon = DEN
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			PIE = {
				country_event = {
					id = risorgimento.234
				}
			}
		}
	}
	ITA_MOD_Diplomacy_Begin = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			OR = {
				has_completed_focus = PIE_Seek_Help_Major
				has_country_flag = is_literally_italy
			}
			country_exists = MOD
		}
		icon = MOD
		fire_only_once = yes
		cost = 25
		ai_will_do = {
			base = 15
		}
		days_remove = 700
		modifier = {
			political_power_factor = -0.01
		}
		complete_effect = {
			MOD = {
				add_opinion_modifier = {
					target = PIE
					modifier = ITA_Active_Consulate
				}
			}
			PIE = {
				add_opinion_modifier = {
					target = MOD
					modifier = ITA_Active_Consulate
				}
			}
		}
	}
	ITA_MOD_Postal_Agreement = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			OR = {
				has_completed_focus = PIE_Seek_Help_Major
				has_country_flag = is_literally_italy
			}
			country_exists = MOD
		}
		available = {
			has_decision = ITA_MOD_Diplomacy_Begin
		}
		icon = MOD
		fire_only_once = yes
		cost = 5
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			country_event = {
				id = risorgimento.240
			}
		}
	}
	ITA_SNM_Treaty_of_Trade_and_Protection = {
		allowed = {
			original_tag = PIE
		}
		visible = {
			has_country_flag = is_literally_italy
		}
		available = {
			has_completed_focus = ITA_PIE_focus_Treaties_with_San_Marino
		}
		icon = SNM
		fire_only_once = yes
		cost = 10
		ai_will_do = {
			base = 15
		}
		complete_effect = {
			country_event = {
				id = ita.58
			}
		}
	}
}

ITA_Economic_category_decisions = {
	ITA_appoint_regional_administrator_1 = {
		ai_will_do = {
			base = 1
		}
		icon = generic_construction
		cost = 100
		fire_only_once = yes
		available = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		#####
		complete_effect = {
			117 = {
				add_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
			812 = {
				add_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		remove_effect = {
			117 = {
				remove_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
			812 = {
				remove_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		days_remove = 500
	}
	ITA_appoint_regional_administrator_2 = {
		ai_will_do = {
			base = 1
		}
		icon = generic_construction
		cost = 100
		fire_only_once = yes
		available = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		#####
		complete_effect = {
			997 = {
				add_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		remove_effect = {
			997 = {
				remove_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		days_remove = 500
	}
	ITA_appoint_regional_administrator_3 = {
		ai_will_do = {
			base = 1
		}
		icon = generic_construction
		cost = 100
		fire_only_once = yes
		available = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		#####
		complete_effect = {
			156 = {
				add_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		remove_effect = {
			156 = {
				remove_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		days_remove = 500
	}
	ITA_appoint_regional_administrator_4 = {
		ai_will_do = {
			base = 1
		}
		icon = generic_construction
		cost = 100
		fire_only_once = yes
		available = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		visible = {
			has_completed_focus = ITA_PIE_focus_Regional_Economic_Administrations
		}
		#####
		complete_effect = {
			115 = {
				add_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		remove_effect = {
			115 = {
				remove_dynamic_modifier = {
					modifier = dynmod_ITA_regional_economic_benefits
				}
			}
		}
		days_remove = 500
	}
}

ITA_decisions_category_influence_minor_states = {
}

ITA_MOD_decision_category_reign_of_francis = {
	ITA_MOD_regio_educatorio_estense = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		complete_effect = {
			add_stability = 0.05
			add_political_power = 50
			add_tech_bonus = 
			{
				bonus = 0.25
				uses = 1
				category = humanities_tech
			}
		}
	}

	ITA_MOD_cappelletta_Duca = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		complete_effect = {
			add_stability = -0.05
			set_temp_variable = { eoanb_prestige_change = 5 }
        	eoanb_change_prestige_score = yes
		}
	}

	ITA_MOD_ducal_stamps_decrees = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
	}

	ITA_MOD_metric_workshop_1 = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		available = {
			date > 1857.1.1
			date < 1857.12.31
		}
	}

	ITA_MOD_metric_workshop_2 = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		available = {
			date > 1858.1.1
			date < 1858.12.31
		}
	}

	ITA_MOD_expand_rifle_conversion = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = MOD_focus_strengthen_garrison
		}
	}

	ITA_MOD_reopen_accademia_militare = {
		ai_will_do = {
			base = 1
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = MOD_focus_our_officiers
		}
	}
}

ITA_MOD_PRM_decision_category_economy = {
	ITA_MOD_PRM_bologna_pacenza_railway = {

		ai_will_do = { base = 1 }

		fire_only_once = yes

		visible = { has_completed_focus = modena_parma_focus_bologna_piacenza_railway }
		days_remove = 300

		custom_cost_trigger = { set_temp_variable = { amount_of_money_to_check = 3 } }
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			set_temp_variable = { money_to_gain = -3 }
			add_money_with_tooltip_effect = yes
		}
		remove_effect = {
			build_railway = 
			{
				level = 1
				start_province = 9752
				target_province = 6606
			}
		}
	}
	
	ITA_MOD_PRM_milan_piacenza_railway = {
		ai_will_do = { base = 1 }

		fire_only_once = yes

		visible = { has_completed_focus = modena_parma_focus_milan_piacenza_railway }
		days_remove = 300

		custom_cost_trigger = { set_temp_variable = { amount_of_money_to_check = 3 } }
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			set_temp_variable = { money_to_gain = -3 }
			add_money_with_tooltip_effect = yes
		}
		remove_effect = {
			build_railway = {
				level = 1
				start_province = 6790
				target_province = 3780
			}
		}
	}
}
ITA_MOD_PRM_decision_category_trade_deals = {
	ITA_MOD_PRM_northern_trade_deals_piedmont = {
		ai_will_do = { base = 1 }

		fire_only_once = yes
		visible = { has_completed_focus = modena_parma_focus_continue_trade_northern_italy }

		complete_effect = {
			add_political_power = 20
		}
	}

	ITA_MOD_PRM_northern_trade_deals_monaco = {
		ai_will_do = { base = 1 }

		fire_only_once = yes
		visible = { has_completed_focus = modena_parma_focus_continue_trade_northern_italy }

		complete_effect = {
			add_political_power = 20
		}
	}

	ITA_MOD_PRM_northern_trade_deals_venetia = {
		ai_will_do = { base = 1 }

		fire_only_once = yes
		visible = { has_completed_focus = modena_parma_focus_continue_trade_northern_italy }

		complete_effect = {
			add_political_power = 20
		}
	}
	ITA_MOD_PRM_northern_trade_deals_tuscany = {
		ai_will_do = { 	base = 1 }

		fire_only_once = yes
		visible = { has_completed_focus = modena_parma_focus_continue_trade_northern_italy }

		complete_effect = {
			add_political_power = 20
		}
	}
}