emp_tusc_fighting_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Emperor"
	}
	potential = {
		has_dlc = "Emperor"
		OR = {
			AND = {			#New added in MMETR
				tag = TUS
				NOT = {
					was_tag = PIS
				}
			}
			tag = LAN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	emp_lan_confront_the_lombards = {
		icon = confront_the_lombards
		required_missions = { emp_lan_tuscan_birthright }
		position = 4
		
		provinces_to_highlight = {
			OR = {
				area = lombardy_area
				area = po_valley_area
			}
			NOT = {
				owned_by = ROOT
			}
		}
		trigger = {
			lombardy_area = {
				type = all
				owned_by = ROOT
			}
			po_valley_area = {
				type = all
				owned_by = ROOT
			}
		}
		effect = {
			venetia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			liguria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	emp_lan_adriatic_access = {
		icon = adriatic_access
		required_missions = { emp_lan_confront_the_lombards }
		position = 5
		
		provinces_to_highlight = {
			area = venetia_area
			NOT = {
				owned_by = ROOT
			}
		}
		trigger = {
			venetia_area = {
				type = all
				owned_by = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "lan_tuscan_naval_expansion"
				duration = 7300
			}
		}
	}
}

emp_tusc_dip_and_war_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Emperor"
	}
	potential = {
		has_dlc = "Emperor"
		OR = {
			AND = {			#New added in MMETR
				tag = TUS
				NOT = {
					was_tag = PIS
				}
			}
			tag = LAN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	emp_lan_personal_diplomacy = {
		icon = personal_diplomacy
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			monthly_dip = 12
			NOT = { num_of_loans = 1 }
		}
		effect = {
			add_country_modifier = {
				name = "lan_affable_leadership"
				duration = 5475
			}
		}
	}	
	
	emp_lan_italian_league = {
		icon = the_italian_league
		required_missions = { emp_lan_personal_diplomacy }
		position = 2
		
		provinces_to_highlight = {
			is_capital = yes
			owner = {
				is_subject = no
				capital_scope = {
					region = italy_region
				}
				NOT = { tag = ROOT }
			}
		}
		
		trigger = {
			# ally with two countries with capitals in Italy
			custom_trigger_tooltip = {
				tooltip = emp_lan_italian_league_tt
				calc_true_if = {
					all_ally = {
						capital_scope = {
							region = italy_region
						}
					}
					amount = 2
				}
			}
		}
		effect = {
			tuscany_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			emilia_romagna_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	emp_lan_tuscan_birthright = {
		icon = tuscan_birthright
		required_missions = { emp_lan_italian_league }
		position = 3
		
		provinces_to_highlight = {
			OR = {
				area = tuscany_area
				area = emilia_romagna_area
			}
			NOT = {
				owned_by = ROOT
			}
		}
		trigger = {
			tuscany_area = {
				type = all
				owned_by = ROOT
			}
			emilia_romagna_area = {
				type = all
				owned_by = ROOT
			}
		}
		effect = {
			lombardy_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			po_valley_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	emp_lan_heights_of_grandeur = {
		icon = dreams_of_grandeur
		required_missions = { emp_lan_tuscan_birthright }
		position = 4
		
		trigger = {
			government_rank = 2
		}
		effect = {
			add_adm_power = 75
			add_dip_power = 75
			add_mil_power = 75
		}
	}
	
	emp_lan_end_genoese_competition = {
		icon = end_genoese_competition
		required_missions = { emp_lan_confront_the_lombards }
		position = 5
		
		provinces_to_highlight = {
			OR = {
				area = liguria_area
				owned_by = GEN
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			liguria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			OR = {
				NOT = { exists = GEN }
				GEN = { is_subject_of = ROOT }
			}
		}
		effect = {
			add_mercantilism = 2
		}
	}
}

emp_tusc_government_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Emperor"
	}
	potential = {
		has_dlc = "Emperor"
		OR = {
			AND = {			#New added in MMETR
				tag = TUS
				NOT = {
					was_tag = PIS
				}
			}
			tag = LAN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	emp_lan_reaffirm_civic_values = {
		icon = reaffirm_civil_values
		required_missions = { emp_lan_florentine_renaissance }
		position = 2
		provinces_to_highlight = {
		}
		trigger = {
			legitimacy_equivalent = 90
		}
		effect = {
			if = {
				limit = {
					NOT = { stability = 3 }
				}
				add_stability = 1
			}
			else = {
				add_adm_power = 100
			}
		}
	}
	
	emp_lan_hand_picked_bureaucrats = {
		icon = hand-picked_bureaucrats
		required_missions = { emp_lan_reaffirm_civic_values }
		position = 3
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					has_estate = estate_nobles
				}
				estate_loyalty = {
					estate = estate_nobles
					loyalty = 60
				}
			}
			else_if = {
				limit = {
					NOT = { has_estate = estate_nobles }
					has_parliament = yes
				}
				has_active_debate = yes
				percentage_backing_issue = 0.5
			}
			else = {
				NOT = { average_unrest = 1 }
			}
		}
		effect = {
			add_adm_power = 100
		}
	}
	
	emp_lan_immaculate_government = {
		icon = immaculate_government
		required_missions = { emp_lan_hand_picked_bureaucrats }
		position = 4
		
		trigger = {
			NOT = { corruption = 1 }
		}
		effect = {
			add_country_modifier = {
				name = "lan_clean_government"
				duration = 7300
			}
		}
	}
	
	emp_lan_make_haste_slowly = {
		icon = make_haste_slowly
		required_missions = { emp_lan_immaculate_government }
		position = 5
		provinces_to_highlight = {
		}
		trigger = {
			crown_land_share = 50
			if = {
				limit = {
					has_estate = estate_nobles
				}
				NOT = {
					estate_influence = {
						estate = estate_nobles
						influence = 50
					}
				}
			}
			if = {
				limit = {
					has_estate = estate_burghers
				}
				NOT = {
					estate_influence = {
						estate = estate_burghers
						influence = 50
					}
				}
			}
			if = {
				limit = {
					has_estate = estate_church
				}
				NOT = {
					estate_influence = {
						estate = estate_church
						influence = 50
					}
				}
			}
			if = {
				limit = {
					has_reform = merchants_reform
				}
				NOT = {
					faction_influence = {
						faction = mr_aristocrats
						influence = 50
					}
				}
				NOT = {
					faction_influence = {
						faction = mr_traders
						influence = 50
					}
				}
				NOT = {
					faction_influence = {
						faction = mr_guilds
						influence = 50
					}
				}
			}
			if = {
				limit = {
					is_revolutionary_republic_trigger = yes
				}
				NOT = {
					faction_influence = {
						faction = rr_jacobins
						influence = 50
					}
				}
				NOT = {
					faction_influence = {
						faction = rr_royalists
						influence = 50
					}
				}
				NOT = {
					faction_influence = {
						faction = rr_girondists
						influence = 50
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						AND = {
							is_emperor_of_china = yes
							has_dlc = "Mandate of Heaven"
						}
						has_reform = shogunate
					}
				}
				add_legitimacy = 25
				add_mandate = 25
				if = {
					limit = {
						stability = 2
						NOT = { stability = 3 }
					}
					add_stability = 1
				}
				else_if = {
					limit = {
						NOT = { stability = 2 }
					}
					add_stability = 2
				}
				else = {
					add_adm_power = 100
				}
			}
			else = {
				country_event = { id = flavor_tus.21 }
			}
		}
	}
}

emp_tusc_renaissance_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Emperor"
	}
	potential = {
		has_dlc = "Emperor"
		OR = {
			AND = {			#New added in MMETR
				tag = TUS
				NOT = {
					was_tag = PIS
				}
			}
			tag = LAN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	emp_lan_florentine_renaissance = {
		icon = florentine_renaissance
		required_missions = { }
		position = 1
		completed_by = 1450.1.1
		trigger = {
			has_institution = renaissance
		}
		effect = {
			add_country_modifier = {
				name = "lan_florentine_renaissance_modifier"
				duration = 5475
			}
		}
	}
	
	emp_lan_commission_the_mona_lisa = {
		icon = commission_the_mona_lisa
		required_missions = { emp_lan_florentine_renaissance }
		position = 2
		completed_by = 1503.1.1
		trigger = {
			OR = {
				philosopher = 3
				natural_scientist = 3
				artist = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = "lan_da_vincis_notebooks"
				duration = 5475
			}
		}
	}
	
	emp_lan_influence_the_church = {
		icon = influence_the_church
		required_missions = { emp_lan_commission_the_mona_lisa }
		position = 3
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					religion = catholic
				}
				any_owned_province = {
					has_cardinal = yes
				}
			}
			else_if = {
				limit = {
					religion = protestant
					has_dlc = "Common Sense"
				}
				church_power = 100
			}
			else_if = {
				limit = {
					has_dlc = "Wealth of Nations"
					religion = reformed
				}
				fervor = 100
			}
			else_if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
			}
			else = {
				any_owned_province = {
					OR = {
						has_building = temple
						has_building = cathedral
					}
				}
			}
		}
		effect = {
			add_prestige = 20
		}
	}
	
	emp_lan_control_the_church = {
		icon = control_the_church
		required_missions = { emp_lan_influence_the_church }
		position = 4
		
		trigger = {
			if = {
				limit = {
					religion = catholic
					has_dlc = "Emperor"
				}
				is_papal_controller = yes
				custom_trigger_tooltip = {
					tooltip = passed_golden_bull_tt
					has_country_flag = enacted_golden_bull
				}
			}
			else_if = {
				limit = {
					religion = protestant
					has_dlc = "Common Sense"
				}
				num_of_aspects = 3
			}
			else_if = {
				limit = {
					religion = orthodox
				}
				patriarch_authority = 1
			}
			else_if = {
				limit = {
					religion = reformed
					has_dlc = "Wealth of Nations"
				}
				fervor = 100
			}
			else = {
				religious_unity = 1
			}
		}
		effect = {
			if = {
				limit = {
					religion = catholic
					NOT = { has_global_flag = had_a_medici_pope }
				}
				custom_tooltip = emp_lan_next_pope_medici_tt
				set_global_flag = had_a_medici_pope
				set_country_flag = our_medici_pope
				PAP = { set_country_flag = medici_pope_next }
			}
			else = {
				add_prestige = 25
			}
		}
	}
	
	emp_lan_academy_of_the_bran = {
		icon = academy_of_the_bran
		required_missions = { emp_lan_control_the_church }
		position = 5
		
		trigger = {
			prestige = 90
		}
		effect = {
			add_country_modifier = {
				name = "lan_la_crusca"
				duration = -1
			}
			add_dip_power = 100
		}
	}
}

emp_tusc_infra_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Emperor"
	}
	potential = {
		has_dlc = "Emperor"
		OR = {
			AND = {			#New added in MMETR
				tag = TUS
				NOT = {
					was_tag = PIS
				}
			}
			tag = LAN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	emp_lan_reform_the_monte = {
		icon = reform_the_monte
		required_missions = { emp_lan_florentine_renaissance }
		position = 2
		provinces_to_highlight = {
		}
		trigger = {
			treasury = 500
		}
		effect = {
			add_country_modifier = {
				name = "lan_secure_public_funds"
				duration = 7300
			}
		}
	}
	
	emp_lan_reliable_mints = {
		icon = medici_bank_ledgers
		required_missions = { emp_lan_reform_the_monte }
		position = 3
		provinces_to_highlight = {
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = emp_lan_reliable_mints_tt
				OR = {
					all_neighbor_country = {
						inflation = ROOT
					}
					NOT = { inflation = 0.1 }
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "lan_medici_banking"
				duration = -1
			}
		}
	}
	
	emp_lan_public_works = {
		icon = public_works
		required_missions = { emp_lan_reliable_mints }
		position = 4
		
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_manufactory_trigger = yes }
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = emp_lan_public_works_tt
				num_of_owned_provinces_with = {
					value = 6
					has_manufactory_trigger = yes
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "lan_monumental_construction"
				duration = 5475
			}
		}
	}
	
	emp_lan_levee_the_arno = {
		icon = levee_the_arno
		required_missions = { emp_lan_public_works }
		position = 5

		
		provinces_to_highlight = {
			province_id = 116
		}
		trigger = {
			owns = 116
			116 = {
				grown_by_development = 15
			}
		}
		effect = {
			116 = {
				add_province_modifier = {
					name = lan_arno_flood_controls
					duration = -1
				}
			}
		}
	}
}
