french_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination" 
	}
	has_country_shield = yes

	fra_liberate_norm = {
		icon = the_hundred_years_war
		required_missions = { 	} 
		position = 1 
		provinces_to_highlight = { 
			area = normandy_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			normandy_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
		}
		effect = {
			if = { 
				limit = { has_dlc = "Emperor" }
				country_event = { id = flavor_fra.100 } 
			}
			else = { 
				add_mil_power = 50 
				change_estate_land_share = {
					estate = all
					share = -5
				}
			} 
			brittany_area = { 
				limit = { 	
					NOT = { is_core = ROOT } 
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = { owned_by = ROOT } 
				}
				add_permanent_claim = ROOT 
			}
			bourgogne_area = {
				limit = { 	
					NOT = { is_core = ROOT } 
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = { owned_by = ROOT } 
				}
				add_permanent_claim = ROOT 
			}
			west_burgundy_area = { 
				limit = { 	
					NOT = { is_core = ROOT } 
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = { owned_by = ROOT } 
				}
				add_permanent_claim = ROOT 
			}
		}
	}
	
	fra_burg_succession = { 
		icon = fra_burg_succession
		required_missions = { fra_liberate_norm } 
		position = 2 
		provinces_to_highlight = { 
			OR = { 
				area = west_burgundy_area 
				province_id = 88
				province_id = 89
				province_id = 1743
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			OR = { 
				AND = { 
					picardy_area = {
						type = all 
						OR = { 
							province_id = 87 
							country_or_non_sovereign_subject_holds = ROOT 
						}
					}
					west_burgundy_area = { 
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
				}
				BUR = {
					OR = { 
						is_subject_of = ROOT 
						alliance_with = ROOT 
					}
					AND = {
						if = { 
							limit = { is_subject_of = ROOT }
							has_opinion = {
								who = ROOT 
								value = 125
							}
						}
						else = {
							has_opinion = {
								who = ROOT 
								value = 180
							}
						}
						if = {
							limit = { has_dlc = "Leviathan" }
							trust = { who = FRA value = 75 }
						}
						else = { monthly_dip = 8 }
						if = { 
							limit = { is_subject_of = ROOT }
							NOT = { liberty_desire = 10 }
						}
					}
				}
			}
		}
		effect = {
			if = { 
				limit = { 
					has_dlc = "Emperor" 
					BUR = { ai = yes }
				} 
				custom_tooltip = fra_if_bur_subject_and_emperor_dlc_tt
				custom_tooltip = fra_alternatively_10_dev_spread_and_tt 
				tooltip = { 
					add_country_modifier = { 
						name = fra_reintegration_of_burgundian_lands_modifier
						duration = 7300
					}
				}
				custom_tooltip = fra_complete_via_opinion_alliance_and_trust_tt
			}
			else = { 
				custom_tooltip = fra_alternatively_10_dev_spread_and2_tt 
				tooltip = { 
					add_country_modifier = { 
						name = fra_reintegration_of_burgundian_lands_modifier
						duration = 7300
					}
				}
			}
			hidden_effect = {
				if = { 
					limit = { 
						OR = {  
							NOT = { has_dlc = "Emperor" } 
							AND = { 
								picardy_area = {
									type = all 
									OR = { 
										province_id = 87 
										country_or_non_sovereign_subject_holds = ROOT 
									}
								}
								west_burgundy_area = { 
									type = all 
									country_or_non_sovereign_subject_holds = ROOT 
								}
							}
						}
					}
					add_country_modifier = { 
						name = fra_reintegration_of_burgundian_lands_modifier
						duration = 7300
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
					random_owned_province = { 
						limit = { 
							OR = { 
								area = west_burgundy_area 
								area = picardy_area 
								area = bourgogne_area 
								area = lorraine_area 
							}
						}
						random_list = {
							40 = { add_base_tax = 1 } 
							30 = { add_base_production = 1 } 
							30 = { add_base_manpower = 1 } 
						}
					}
				}
				else_if = { 
					limit = { 
						BUR = { alliance_with = ROOT }
						has_dlc = "Emperor" 
					}
					BUR = { set_country_flag = fra_guaranteed_succession_flag } 
				}
			}
		}
	}
	
	fra_border_empire = { 
		icon = end_the_habsburgs
		required_missions = { fra_burg_succession fra_unite_france } 
		position = 4 
		provinces_to_highlight = { 
			area = bourgogne_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			bourgogne_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			if = {
				limit = { ai = no }
				OR = { 
					is_emperor = yes 
					NOT = { hre_size = 1 } 
					emperor = { 
						has_opinion_modifier = {
							who = ROOT
							modifier = scornfully_insulted
						}
					}
					emperor = { 
						has_opinion_modifier = {
							who = ROOT
							modifier = insulted
						}
					}
				}
				OR = { 
					emperor = { is_rival = ROOT } 
					military_strength = {
						who = emperor
						value = 2.0
					}
					power_projection = 80 
				}
			}
			if = {
				limit = { ai = yes }
				grown_by_development = 150
			}
		}
		effect = { 
			country_event = { id = flavor_fra.102 } 
			
			custom_tooltip = fra_event_insight_102_tt
		}
	}
}

french_missions_1_blank_hre = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		NOT = { has_country_flag = fra_fufujoni_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_branch_mission_1_5 = { 
		icon = mission_unknown_mission
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_choose_to_break_habsburg_ring_by_conquering_swaths_of_the_germanic_provinces_tt
			custom_tooltip = fra_if_choose_to_claim_emperorship_and_gain_unique_bonuses_that_will_help_us_shape_empire_tt
		}
	}
}

french_missions_1_kill_hre_path = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag =  fra_fufujoni_flag
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_push_imperial_line = {	
		icon = avoid_fragmentation
		required_missions = { fra_border_empire }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = alsace_area 
				area = upper_rhineland_area
				area = romandie_area
				area = switzerland_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			alsace_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			upper_rhineland_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			romandie_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			switzerland_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_victory_germany_modifier
				duration = 9125 
			}
			custom_tooltip = fra_every_required_area_gains_tt
			tooltip = {
				add_province_modifier = {
					name = fra_french_buffer_modifier
					duration = 7300
				}
			}
			hidden_effect = {
				alsace_area = { 
					add_province_modifier = {
						name = fra_french_buffer_modifier
						duration = 7300
					}
				}
				upper_rhineland_area = { 
					add_province_modifier = {
						name = fra_french_buffer_modifier
						duration = 7300
					}
				}
				romandie_area = { 
					add_province_modifier = {
						name = fra_french_buffer_modifier
						duration = 7300
					}
				}
				switzerland_area = { 
					add_province_modifier = {
						name = fra_french_buffer_modifier
						duration = 7300
					}
				}
			}
		}
	}
}

french_missions_1_hre_branch = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_sway_electorate = { 
		icon = the_viennese_waltz
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			calc_true_if = {
				desc = fra_secure_4_electors_tt
				all_elector = {
					preferred_emperor = ROOT
				}
				amount = 4
			}
			if = { 
				limit = { is_emperor = no }
				army_size = emperor
			} 
			else = { prestige = 50 } 
			OR = { 
				influence_ideas = 5 
				diplomatic_ideas = 5
				monthly_dip = 15
			}
		}
		effect = { 
			# custom_tooltip = fra_remove_hre_ae_tt
			# hidden_effect = { 
				# every_known_country = {
					# limit = { 
						# is_part_of_hre = yes 
					# }
					# reverse_add_aggressive_expansion = {
						# who = FRA 
						# value = -10
					# }
				# }
			# }
			add_country_modifier = { 
				name = fra_imperial_messengers_modifier
				duration =  7300
			}
			if = { 
				limit = { 
					is_emperor = no 
					has_dlc = "Emperor"
					NOT = { active_imperial_incident = any }
					hre_size = 1
					is_subject = no 
				}
				custom_tooltip = fra_start_heirs_of_charlemagne_incident_tt #Not an incident cause apparently incidents are glorified events and i feel like a kid who just learned santa isnt real
				hidden_effect = {
					emperor = { 
						country_event = { id = flavor_fra.121 }
					}
				}
			}
			else = {
				change_ruler_stat = {
					type = dip
					amount = 1
				}
			}
		}
	}
}

french_missions_1_Continuation_a = { 
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		
	}
	has_country_shield = yes
	
	fra_raise_slave_ships = { 
		icon = mission_combat_barbary_piracy
		required_missions = { } 
		position = 6 
		provinces_to_highlight = {
			OR = {
				province_id = 201 
				province_id = 4696 
			}
			OR = {
				has_dock_building_trigger = no 
				has_shipyard_building_trigger = no 
			}
		}
		trigger = { 
			num_of_galley = 12 
			sailors_percentage = 0.8
			201 = { 
				country_or_non_sovereign_subject_holds = ROOT 
				has_dock_building_trigger = yes 
				has_shipyard_building_trigger = yes 
			}
			4696 = { 
				country_or_non_sovereign_subject_holds = ROOT 
				has_dock_building_trigger = yes 
				has_shipyard_building_trigger = yes 
			}
		}
		effect = {
			if = { 
				limit = { 
					PRO = { 
						is_subject_of = ROOT 
						NOT = { mission_completed = emp_pro_toulon } 
					}
				}
				PRO = { complete_mission = emp_pro_toulon }
				201 = { add_base_production = 1 } 
				4696 = { add_base_production = 1 } 
			}
			else_if = { 
				limit = { 
					PRO = { is_subject_of = ROOT } 
				} 
				201 = { add_base_production = 1 } 
				4696 = { add_base_production = 1 } 
			}
			country_event = { id = flavor_fra.202 }
			custom_tooltip = fra_event_insight_202_tt
			add_country_modifier = { 
				name = fra_replenished_slave_crews_modifier
				duration = 7300
			}
			sicily_area = { 
				limit = { 
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT 
			}
			western_sicily_area = { 
				limit = { 
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT 
			}
		}
	}	

	fra_crossroad_continents = {
		icon = king_of_sicily
		required_missions = { fra_raise_slave_ships fra_throne_naples } 
		position = 8 
		provinces_to_highlight = { 
			OR = { 
				AND = { 
					OR = { 	
						area = sicily_area 
						area = western_sicily_area 
						province_id = 125
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT } 
				}
				AND = {
					province_id = 125 
					OR = { 
						has_shipyard_building_trigger = no
						NOT = { num_of_times_improved = 5 }
					}
				}
			}
		}
		trigger = { 
			sicily_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			western_sicily_area = { 	
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			125 = { 
				num_of_times_improved = 5 
				has_shipyard_building_trigger = yes
			}
		}
		effect = { 
			custom_tooltip = fra_upgrade_buildings_tt
			hidden_effect = { 
				125 = { 
					remove_building = dock 
					add_building = drydock
				}
				125 = { 
					remove_building = shipyard
					add_building = grand_shipyard
				}
			}
			create_admiral = { tradition = 80 } 
			custom_tooltip = fra_if_knights_exist_gain_tt
			tooltip = { 
				country_event = { id = flavor_fra.112 } 
			}
			custom_tooltip = fra_alternatively_tt
			custom_tooltip = fra_organize_raid_parties_for_20_years_tt
			hidden_effect = { 
				if = { 
					limit = { 
						KNI = { exists = yes } 
					}
					add_country_modifier = {
						name = fra_french_raiding_parties_modifier
						duration = 7300
					}
				}
				else = { 
					country_event = { id = flavor_fra.112 }
				}
			}
		}
	}
	
	dom_fra_france_discovers_north_america = { 
		icon = mission_establish_high_seas_navy
		required_missions = {  }
		position = 9
		trigger = {
			num_of_explorers = 1 
			if = { 
				limit = { is_random_new_world = no }
				custom_trigger_tooltip = {
					tooltip = fra_canada_discovery.tooltip
					colonial_canada = {
						has_discovered = ROOT
					}
				}
				custom_trigger_tooltip = {
					tooltip = fra_carib_discovery.tooltip
					colonial_the_carribean = {
						has_discovered = ROOT
					}
				}
				custom_trigger_tooltip = {
					tooltip = fra_louis_discovery.tooltip
					colonial_louisiana = {
						has_discovered = ROOT
					}
				}
			}
			else = {
				OR = {
					national_focus = DIP 
					full_idea_group = exploration_ideas 
					num_of_light_ship = 25
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "fra_colonial_enthusiasm"
				duration = 7300
			}
		}
		ai_weight = {
			factor = 500
		}
	}
	
	fra_french_canada = { 
		icon = mission_rb_colonise_canada
		required_missions = { dom_fra_france_discovers_north_america }
		position = 10
		provinces_to_highlight = {
			region = canada_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = { 
			if = { 
				limit = { is_random_new_world = no }
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = canada_region 
					value = 10 
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					continent = new_world
					value = 10
				}
			}
		}
		effect = { 
			add_dip_power = 50 
			if = {
				limit = { 
					any_subject_country = {
						capital_scope = { region = canada_region } 
						num_of_owned_provinces_with = {
							region = canada_region 
							value = 10 
						}
					}
				}
				custom_tooltip = fra_canada_subject_gets_reward_tt
				hidden_effect = {
					random_subject_country = {
						limit = {
							capital_scope = {
								region = canada_region 
							}
							num_of_owned_provinces_with = {
								region = canada_region 
								value = 10 
							}
						}
						add_country_modifier = {
							name = fra_french_canadian_settlers_modifier
							duration = 7300
						}
					}
				}
			}
			else = { 
				add_mercantilism = 5 
			}
		}
	}	
	
	fra_colonial_approach = { 
		icon = mission_rb_the_thirteen_colonies
		required_missions = { fra_french_canada fra_found_french_haiti }
		position = 11
		provinces_to_highlight = {
			OR = {
				AND = {
					region = guinea_region 
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				AND = {
					is_capital = yes 
					owner = {
						is_subject_of = ROOT 
						OR = {
							is_subject_of_type = colony 
							is_subject_of_type = crown_colony
							is_subject_of_type = private_enterprise
							is_subject_of_type = self_governing_colony
						}
						NOT = {	
							has_opinion = {
								who = ROOT 
								value = 150 
							}
						}
						liberty_desire = 10 
					}
				}
			}
		}
		trigger = {
			calc_true_if = {
				all_subject_country = {
					OR = {
						is_subject_of_type = colony 
						is_subject_of_type = crown_colony
						is_subject_of_type = private_enterprise
						is_subject_of_type = self_governing_colony
					}
					has_opinion = {
						who = ROOT 
						value = 150 
					}
					NOT = { liberty_desire = 10 } 
				}
				amount = 2
			}
			if = { 
				limit = { is_random_new_world = no }
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = guinea_region 
					value = 5 
				}
			}
			else = { mercantilism = 25 }
		}
		effect = {
			add_country_modifier = {
				name = fra_overseas_focus_modifier
				duration = 9125 
			}
			add_mercantilism = 5 
		}
	}
	
	dom_fra_indian_dominance = {
		icon = indian_dominance
		required_missions = { fra_colonial_approach }
		position = 12 
		provinces_to_highlight = {
			superregion = india_superregion 
			if = { 
				limit = { 
					ROOT = { 
						NOT = { 
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								superregion = india_superregion
								value = 20
							}
						}
					}
				}
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
			else = { 
				AND = {
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					province_has_center_of_trade_of_level = 1 
				}
			}
			# OR = {
				# NOT = { country_or_non_sovereign_subject_holds = ROOT }
				# AND = {
					# NOT = { country_or_non_sovereign_subject_holds = ROOT }
					# province_has_center_of_trade_of_level = 1 
				# }
			# }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				superregion = india_superregion
				value = 20
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				superregion = india_superregion
				value = 4
				province_has_center_of_trade_of_level = 1 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_masters_of_india_modifier
				duration = -1 
			}
			if = { 
				limit = { has_dlc = "Dharma" }
				custom_tooltip = fra_coastal_cot_level_3_marketplace_estuary_tt
				tooltip = {
					add_province_modifier = {
						name = fra_compagnie_francaise_modifier
						duration = -1 
					}
				}
				hidden_effect = {
					random_owned_province = {
						limit = {
							superregion = india_superregion
							has_trade_building_trigger = yes 
							province_has_center_of_trade_of_level = 3 
							base_production = 15 
							has_river_estuary_trigger = yes 
						}
						add_province_modifier = {
							name = fra_compagnie_francaise_modifier
							duration = -1 
						}
					}
				}
			}
		}
	}
	
	fra_appease_the_princes = {
		icon = fra_appease_the_princes
		required_missions = { }
		position = 14 
		provinces_to_highlight = {
			AND = {
				is_capital = yes 
				owner = {
					is_subject_of = ROOT 
					is_subject_of_type = appanage
					OR = {
						has_opinion = {
							who = ROOT 
							value = 125 
						}
						liberty_desire = 10 
					}
				}
			}
		}
		trigger = {
			if = {
				limit = { ai = no }
				custom_trigger_tooltip = {
					tooltip = fra_appease_appanage_tt
					NOT = {
						any_subject_country = {
							is_subject_of_type = appanage
							NOT = { 
								has_opinion = {
									who = ROOT 
									value = 125 
								}
							}
							liberty_desire = 10 
						}
					}
				}
			}
			else = {
				NOT = {
					any_subject_country = {
						is_subject_of_type = appanage
						NOT = { 
							has_opinion = {
								who = ROOT 
								value = 75 
							}
						}
						liberty_desire = 25
					}
				}
			}
			if = {
				limit = { has_estate = estate_nobles }
				estate_loyalty = {
					estate = estate_nobles 
					loyalty = 60
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_growth_appanages
				duration = 7300 
			}
			
			custom_tooltip = fra_appanage_dev_tt
			hidden_effect = {
				every_subject_country = {
					limit = { 
						is_subject_of_type = appanage
					}
					capital_scope = {
						random_list = {
							10 = { add_base_tax = 1 } 
							10 = { add_base_production = 1 } 
							10 = { add_base_manpower = 1 } 
						}
					}
				}
			}
		}
	}
	
	fra_crown_seat_capital = {
		icon = fra_crown_seat_capital
		required_missions = { fra_appease_the_princes }
		position = 15 
		provinces_to_highlight = { 
			OR = { 
				AND = {
					is_capital_of = ROOT 
					NOT = { num_of_times_improved = 8 }
				}
				AND = {
					is_capital = yes 
					owner = {
						is_subject_of = ROOT 
						liberty_desire = 5 
					}
				}
			}
		}
		trigger = {
			capital_scope = { 
				num_of_times_improved = 8 
			}
			NOT = { 
				any_subject_country = { liberty_desire = 5 }
			}
			legitimacy_equivalent = 90 
		}
		effect = {
			add_country_modifier = {
				name = fra_increased_crown_authority_modifier
				duration = 7300
			}
			
			custom_tooltip = fra_20rf_per_adm
			hidden_effect = {
				if = {
					limit = { monthly_adm = 20 } 
					change_government_reform_progress = 400 
				}
				else_if = {
					limit = { monthly_adm = 19 } 
					change_government_reform_progress = 380 
				}
				else_if = {
					limit = { monthly_adm = 18 } 
					change_government_reform_progress = 360 
				}
				else_if = {
					limit = { monthly_adm = 17 } 
					change_government_reform_progress = 340 
				}
				else_if = {
					limit = { monthly_adm = 16 } 
					change_government_reform_progress = 320 
				}
				else_if = {
					limit = { monthly_adm = 15 } 
					change_government_reform_progress = 300
				}
				else_if = {
					limit = { monthly_adm = 14 } 
					change_government_reform_progress = 280
				}
				else_if = {
					limit = { monthly_adm = 13 } 
					change_government_reform_progress = 260
				}
				else_if = {
					limit = { monthly_adm = 12 } 
					change_government_reform_progress = 240
				}
				else_if = {
					limit = { monthly_adm = 11 } 
					change_government_reform_progress = 220
				}
				else_if = {
					limit = { monthly_adm = 10 } 
					change_government_reform_progress = 200
				}
				else_if = {
					limit = { monthly_adm = 9 } 
					change_government_reform_progress = 180
				}
				else_if = {
					limit = { monthly_adm = 8 } 
					change_government_reform_progress = 160
				}
				else_if = {
					limit = { monthly_adm = 7 } 
					change_government_reform_progress = 140
				}
				else_if = {
					limit = { monthly_adm = 6 } 
					change_government_reform_progress = 120
				}
				else = { change_government_reform_progress = 100 }
			}
		}
	}
	
	fra_french_wars_religion = {
		icon = wars_of_religion
		required_missions = { fra_movement_centralization }
		position = 17
		trigger = {
			OR = { 
				custom_trigger_tooltip = {
					tooltip = fra_completed_wars_religion
					has_country_flag = FRA_wars_of_religion_ended 
				}
				AND = { 
					current_age = age_of_absolutism 
					OR = { 
						full_idea_group = religious_ideas 
						full_idea_group = humanist_ideas 
					}
				}
				AND = { 
					current_age = age_of_revolutions 
					OR = { 
						full_idea_group = religious_ideas 
						full_idea_group = humanist_ideas 
					}
				}
			}
			religious_unity = 1 
		}
		effect = {
			custom_tooltip = fra_catholic_tt
			tooltip = {
				add_country_modifier = {
					name = fra_catholic_supremacy_modifier
					duration = -1 
				}
				set_defender_of_the_faith = {
					who = ROOT 
					religion = ROOT 
				}
			}
			custom_tooltip = fra_protestant_tt
			tooltip = {
				add_country_modifier = {
					name = fra_heart_of_protestantism_modifier
					duration = -1 
				}
			}
			custom_tooltip = fra_moderate_tt
			tooltip = { 
				add_country_modifier = { 
					name = fra_moderate_path_modifier
					duration = -1 
				}
			}
			
			hidden_effect = {
				if = {
					limit = { has_country_flag = FRA_supports_protestant_majority }
					add_country_modifier = {
						name = fra_heart_of_protestantism_modifier
						duration = -1 
					}
					clr_country_flag = FRA_supports_protestant_majority
				}
				else_if = { 	
					limit = { has_country_flag = FRA_supports_catholic_majority }
					add_country_modifier = {
						name = fra_catholic_supremacy_modifier
						duration = -1
					}
					set_defender_of_the_faith = {
						who = ROOT 
						religion = ROOT 
					}
					clr_country_flag = FRA_supports_catholic_majority
				}
				else = {
					add_country_modifier = { 
						name = fra_moderate_path_modifier
						duration = -1 
					}
					clr_country_flag = supports_french_moderates
				}
			}
		}
	}
}

french_rev_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		if = { 
			limit = { has_dlc = "Emperor" }
			is_revolution_target = yes 
		}
		else = { is_revolutionary = yes } 
	}
	has_country_shield = yes
	
	fra_secure_iberia = {
		icon = fra_peninsular_war
		required_missions = { fra_grande_armee }
		position = 21
		provinces_to_highlight = { 
			region = iberia_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			iberia_region = {
				type = all 
				NOT = { local_autonomy_above_min = 5 }
				country_or_non_sovereign_subject_holds = ROOT 
			}
			OR = { 
				AND = { 
					accepted_culture = castillian
					accepted_culture = aragonese
					accepted_culture = portugese
				}
				iberia_region = {
					type = all 
					culture = ROOT 
				}
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = iberia_region 
					num_of_units_in_province = { 
						who = ROOT 
						amount = 50 
					}
					value = 4 
				}
			}
		}
		effect = { 
			add_country_modifier = {
				name = fra_iberian_domination_modifier 
				duration = -1 
			}
			if = { 
				limit = { 
					SPA = { 
						is_subject_of = ROOT 
						total_development = 500
					}
				}
				SPA = { 
					change_country_color = { 
						color = { 95 158 160 }
					}
					override_country_name = NPI
					set_country_flag = change_name_NPI_flag  
					set_country_flag = has_overriden_name_flag
					set_country_flag = has_overriden_color_flag
				}
			}
		}
	}
	
	fra_military_reform = {
		icon = fra_military_reform
		required_missions = { fra_national_bank }
		position = 23
		trigger = {
			num_of_revolutionary_guard = 75
			if = { 
				limit = { has_dlc = "Emperor" }
				OR = { 
					has_country_modifier = elite_revolutionary_guard_modifier
					has_country_modifier = mass_revolutionary_guard_modifier
					has_country_modifier = vanguard_revolutionary_guard_modifier
					has_country_modifier = professional_revolutionary_guard_modifier
				}
			}
			else_if = {
				limit = { has_dlc = "Cradle of Civilization" } 
				army_professionalism = 0.85
			}
			else = { army_tradition = 85 } 
			monthly_mil = 14 
		}
		effect = {
			if = { 
				limit = { has_dlc = "Emperor" } 
				custom_tooltip = fra_elite_guard_tt
				tooltip = {
					add_country_modifier = {
						name = fra_elite_guard_modifier
						duration = -1 
					}
				}
				
				custom_tooltip = fra_mass_guard_tt
				tooltip = {
					add_country_modifier = {
						name = fra_mass_guard_modifier
						duration = -1 
					}
				}
				
				custom_tooltip = fra_vanguard_guard_tt
				tooltip = {
					add_country_modifier = {
						name = fra_vanguard_guard_modifier
						duration = -1 
					}
				}
				
				custom_tooltip = fra_professional_guard_tt
				tooltip = {
					add_country_modifier = {
						name = fra_professional_guard_modifier
						duration = -1 
					}
				}
			}
			else_if = {
				limit = { has_dlc = "Cradle of Civilization" }
				add_country_modifier = {
					name = fra_trained_revolutionary_guard1_modifier
					duration = -1 
				}
			}
			else = {
				add_country_modifier = {
					name = fra_trained_revolutionary_guard2_modifier
					duration = -1 
				}
			}
			hidden_effect = {
				if = {
					limit = { has_country_modifier = elite_revolutionary_guard_modifier }
					add_country_modifier = {
						name = fra_elite_guard_modifier
						duration = -1 
					}
				}
				if = {
					limit = { has_country_modifier = mass_revolutionary_guard_modifier }
					add_country_modifier = {
						name = fra_mass_guard_modifier
						duration = -1 
					}
				}
				if = {
					limit = { has_country_modifier = vanguard_revolutionary_guard_modifier }
					add_country_modifier = {
						name = fra_vanguard_guard_modifier
						duration = -1 
					}
				}
				if = {
					limit = { has_country_modifier = professional_revolutionary_guard_modifier }
					add_country_modifier = {
						name = fra_professional_guard_modifier
						duration = -1 
					}
				}
			}
		}
	}
}

french_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_chateux_loire_valley = { 
		icon = develop_the_po_valley
		required_missions = { }
		position = 1 
		provinces_to_highlight = { 
			OR = {
				province_id = 178 
				province_id = 4389 
				province_id = 4776 
				province_id = 184
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT } 
				NOT = { num_of_times_improved = 3 } 
			}
		}
		trigger = { 
			loire_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			if = {
				limit = { ai = no }
				OR = { 
					4389 = { num_of_times_improved = 3 } 
					4776 = { num_of_times_improved = 3 }
					184 = { num_of_times_improved = 3 }  
					178 = { num_of_times_improved = 3 } 
				}
			}
		}
		effect = { 
			country_event = { id = flavor_fra.103 }
		}
	}
	
	fra_armorican_peninsula = { 
		icon = dalmatian_conquest 
		required_missions = { fra_chateux_loire_valley fra_liberate_norm }
		position = 2 
		provinces_to_highlight = { 
			area = brittany_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			brittany_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				NOT = { devastation = 1 } 
			}
			169 = { num_of_times_improved = 4 } 
		}
		effect = { 
			country_event = { id = flavor_fra.104 }
		}
	}
}

french_missions_2_blank_hre = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		NOT = { has_country_flag = fra_fufujoni_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_branch_mission_2_5 = { 
		icon = mission_unknown_mission
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_choose_to_break_habsburg_ring_by_conquering_swaths_of_the_germanic_provinces_tt
			custom_tooltip = fra_if_choose_to_claim_emperorship_and_gain_unique_bonuses_that_will_help_us_shape_empire_tt
		}
	}
	
	fra_branch_mission_2_6 = {
		icon = mission_unknown_mission
		required_missions = { fra_branch_mission_1_5 fra_branch_mission_2_5 fra_branch_mission_3_5 }
		position = 6
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_choose_declaratio_galica_tt
			custom_tooltip = fra_if_choose_return_italy_to_hre_and_unique_mercenary_bonuses_tt
		}
	}
}	

french_missions_2_charlemagne_path = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
		NOT = { has_country_flag = fra_fufujoni_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_right_blood = {
		icon = carolingian_empire
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			is_emperor = yes 
			imperial_influence = 50
			legitimacy = 95
		}
		effect = { 
			country_event = { id = flavor_fra.201 } 
		}
	}
	
	fra_restore_shadow_kingdom = {
		icon = holy_state
		required_missions = { fra_sway_electorate fra_right_blood fra_means_expansion }
		position = 6
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			calc_true_if = {
				all_province = {
					is_part_of_hre = yes 
					region = italy_region 
				}
				amount = 25 
			}				
		}
		effect = { 
			add_imperial_influence = 20 
			add_country_modifier = {
				name = fra_rightful_emperor_of_italy_modifier
				duration = -1 
				desc = fra_as_long_as_we_remain_hre_emperors
			}
			if = {
				limit = { has_dlc = "Cradle of Civilization" } 
				custom_tooltip = fra_hiring_mercs_free_tt
				set_country_flag = fra_free_mercs_bargain_sale_flag
			}
			else = { add_army_tradition = 20 } 
		}
	}
}

french_missions_2_kill_hre_path = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		has_country_flag = fra_fufujoni_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_break_habsburg_ring = {
		icon = boh_humiliate_austria
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = { 
					region = north_german_region 
					region = south_german_region 
				}
				value = 30 
			}
		}
		effect = {
			country_event = { id = flavor_fra.200 }
		}
	}
	
	fra_declaratio_gallica = {
		icon = peace_in_europe
		required_missions = { fra_break_habsburg_ring fra_push_imperial_line fra_dismantle_empire }
		position = 6
		provinces_to_highlight = {
			OR = { 
				region = south_german_region
				region = north_german_region 
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = { 
					region = north_german_region 
					region = south_german_region 
				}
				has_owner_culture = yes 
				value = 50 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_cultural_hegemony_modifier
				duration = -1 
			}
			custom_tooltip = fra_enable_mil_hegemony_tt
			set_country_flag = fra_enable_mil_hegemony_flag
		}
	}
}

french_missions_2_Continuation_b = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_throne_naples = { 
		icon = union_with_naples
		required_missions = { } 
		position = 7
		provinces_to_highlight = { 
			OR = { 
				area = calabria_area 
				area = apulia_area 
				area = naples_area 
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			OR = { 	
				NAP = { is_subject_of = ROOT }
				AND = { 
					calabria_area = { 
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					apulia_area = { 
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					naples_area = { 
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
				}
			}
		}
		effect = { 
			country_event = { id = flavor_fra.113 } 
			custom_tooltip = fra_event_insight_113_tt
		}
	}

	fra_kingdoms_spain = { 
		icon = mission_castillian_aggression
		required_missions = { fra_throne_naples } 
		position = 8
		provinces_to_highlight = { 
			region = iberia_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			OR = { 
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = iberia_region 
					value = 15
				}
				any_ally = { 
					total_development = 450
					culture_group = iberian
					has_opinion = { 
						who = ROOT 
						value = 180 
					}
					if = {
						limit = { has_dlc = "Leviathan" }
						trust = {
							who = ROOT 
							value = 80
						}
					}
				}
				AND = {
					grown_by_development = 300
					any_country = {
						capital_scope = { region = iberia_region }
						OR = {
							is_great_power = yes 
							total_development = 250 
						}
						OR = {
							has_opinion_modifier = {
								who = ROOT
								modifier = scornfully_insulted
							}
							has_opinion_modifier = {
								who = ROOT
								modifier = insulted
							}
						}
						is_enemy = ROOT 
					}
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_diplomacy_tt
			tooltip = {
				add_country_modifier = {
					name = fra_franco_iberian_cooperation_modifier
					duration = -1 
					desc = fra_as_long_as_we_maintain_the_alliance_desc
				}
				random_ally = { 
					limit = { 
						total_development = 450
						culture_group = iberian
						has_opinion = { 
							who = ROOT 
							value = 180 
						}
						if = {
							limit = { has_dlc = "Leviathan" }
							trust = {
								who = ROOT 
								value = 80
							}
						}
					}
					add_country_modifier = {
						name = fra_franco_iberian_cooperation_modifier
						duration = -1 
						desc = fra_as_long_as_we_maintain_the_alliance_desc
					}
					add_historical_friend = ROOT 
				}
			}
			custom_tooltip = pol_alternatively_tt
			tooltip = { 
				country_event = { id = flavor_fra.114 }
			}
			hidden_effect = { 
				if = { 	
					limit = { 
						OR = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								region = iberia_region 
								value = 15
							}
							AND = {
								any_country = {
									capital_scope = { region = iberia_region }
									OR = {
										is_great_power = yes 
										total_development = 250 
									}
									OR = {
										has_opinion_modifier = {
											who = ROOT
											modifier = scornfully_insulted
										}
										has_opinion_modifier = {
											who = ROOT
											modifier = insulted
										}
									}
									is_enemy = ROOT 
								}
								grown_by_development = 300
							}
						}
					}
					country_event = { id = flavor_fra.114 } 
					set_country_flag = fra_conquest_iberia_flag
				}
				else = {
					set_country_flag = fra_cooperate_iberia_flag
					random_ally = { 
						limit = { 
							total_development = 450
							culture_group = iberian
							has_opinion = { 
								who = ROOT 
								value = 180 
							}
							if = {
								limit = { has_dlc = "Leviathan" }
								trust = {
									who = ROOT 
									value = 80
								}
							}
						}
						add_country_modifier = {
							name = fra_franco_iberian_cooperation_modifier
							duration = -1 
							desc = fra_as_long_as_we_maintain_the_alliance_desc
						}
						add_historical_friend = ROOT
					}
					add_country_modifier = {
						name = fra_franco_iberian_cooperation_modifier
						duration = -1 
						desc = fra_as_long_as_we_maintain_the_alliance_desc
					}
				} 
			}
			if = { 
				limit = {
					has_country_flag = fra_papal_lap_dop_flag 
					religion = catholic 
					any_country = { 
						religion = catholic 
						NOT = { total_development = ROOT } 
					}
				}
				add_country_modifier = {
					name = fra_light_of_catholicism_modifier
					duration = -1 
				}
			}
			else_if = { 
				limit = { has_country_flag = fra_chose_to_piss_off_pope_flag } 
				add_prestige_or_monarch_power = { amount = 25 } 
			}
		}
	}
	
	fra_found_french_haiti = {
		icon = mission_colonial
		required_missions = { dom_fra_france_discovers_north_america } 
		position = 10 
		provinces_to_highlight = { 
			colonial_region = colonial_the_carribean 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = {
			if = {
				limit = { 
					is_random_new_world = no 
				}
				any_subject_country = {
					custom_trigger_tooltip = {
						tooltip = any_type_colony_tt
						OR = {
							is_subject_of_type = colony 
							is_subject_of_type = crown_colony
							is_subject_of_type = private_enterprise
							is_subject_of_type = self_governing_colony
						}
					}
					capital_scope = {
						colonial_region = colonial_the_carribean
					}
				}
			}
			else = {
				any_subject_country = {
					custom_trigger_tooltip = {
						tooltip = any_type_colony_tt
						OR = {
							is_subject_of_type = colony 
							is_subject_of_type = crown_colony
							is_subject_of_type = private_enterprise
							is_subject_of_type = self_governing_colony
						}
					}
				}
			}
		}
		effect = {
			if = {
				limit = { 
					any_subject_country = {
						OR = {
							is_subject_of_type = colony 
							is_subject_of_type = crown_colony
							is_subject_of_type = private_enterprise
							is_subject_of_type = self_governing_colony
						}
						capital_scope = {
							colonial_region = colonial_the_carribean
						}
					}
				}
				random_province = { 
					limit = { 
						owner = { 
							is_subject_of = ROOT 
							OR = {
								is_subject_of_type = colony 
								is_subject_of_type = crown_colony
								is_subject_of_type = private_enterprise
								is_subject_of_type = self_governing_colony
							}
						}
						is_capital = yes 
					}
					add_base_tax = 2 
					add_base_production = 2 
					add_base_manpower = 2 
				}
				random_subject_country = {
					limit = { 
						OR = {
							is_subject_of_type = colony 
							is_subject_of_type = crown_colony
							is_subject_of_type = private_enterprise
							is_subject_of_type = self_governing_colony
						}
						capital_scope = {
							colonial_region = colonial_the_carribean
						}
					}
					add_country_modifier = {
						name = fra_colonial_rush_modifier 
						duration = 7300 
					}
				}
			}
			else = { 
				custom_tooltip = fra_subject_haiti_gains_following_tt
				tooltip = {
					capital_scope = { 
						add_base_tax = 2 
						add_base_production = 2 
						add_base_manpower = 2 
					}
					add_country_modifier = {
						name = fra_colonial_rush_modifier 
						duration = 7300 
					}
				}
			}
		}
	}
	
	fra_hudson_bay_fur = {
		icon = mission_rb_settle_the_north
		required_missions = { fra_colonial_approach } 
		position = 12
		provinces_to_highlight = { 
			region = canada_region 
			trade_goods = fur 
			has_manufactory_trigger = no
		}
		trigger = {
			if = {
				limit = { is_random_new_world = no }
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = canada_region 
					trade_goods = fur 
					value = 4
					has_manufactory_trigger = yes 
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { 
					trade_goods = fur 
					value = 4
					has_manufactory_trigger = yes 
				}
			}
		}
		effect = { 
			custom_tooltip = fra_every_fur_canadian_province_with_manufactory_tt
			tooltip = {
				add_province_modifier = {
					name = fra_hudson_bay_fur_modifier
					duration = -1 
				}
			}
			hidden_effect = {
				canada_region = {
					limit = { 
						country_or_non_sovereign_subject_holds = ROOT 
						trade_goods = fur 
						has_manufactory_trigger = yes
					}
					type = random
					amount = 6 
					add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 }
				}
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
				random_owned_province = { limit = { NOT = { has_province_modifier = fra_hudson_bay_fur_modifier } region = canada_region country_or_non_sovereign_subject_holds = ROOT trade_goods = fur has_manufactory_trigger = yes } add_province_modifier = { name = fra_hudson_bay_fur_modifier duration = -1 } }
			}
		}
	}
	
	
	fra_refine_bombards = {
		icon = fra_refine_bombards
		required_missions = { } 
		position = 14 
		provinces_to_highlight = { 
		}
		trigger = {
			OR = { 
				custom_trigger_tooltip = {
					tooltip = fra_jean_bureau_tt
					check_variable = { 
						which = jean_bureau_battles_won
						value = 4 
					}
				}
				artillery_fraction = 0.1 
			}
			army_size_percentage = 0.85 
			OR = { 
				has_mil_advisor = yes 
				national_focus = MIL 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_french_bombards_modifier
				duration = 5475
			}
			if = {
				limit = { NOT = { mil_tech = 7 } }
				capital_scope = {
					large_cast_bronze_mortar = ROOT
					large_cast_bronze_mortar = ROOT
					large_cast_bronze_mortar = ROOT
				}
			}
			else = {
				capital_scope = {
					artillery = ROOT
					artillery = ROOT
					artillery = ROOT
				}
				add_mil_power = 25
			}
		}
	}
	
	fra_form_gendarmes = {
		icon = mission_have_two_subjects
		required_missions = { fra_refine_bombards } 
		position = 15
		trigger = {
			OR = { 
				has_global_modifier_value = { 
					which = cavalry_power
					value = 0.2
				}
				num_of_cavalry = 6 # modified
				if = { 
					limit = { has_dlc = "Cradle of Civilization" }
					army_professionalism = 0.1
				}
				else = { army_tradition = 40 } 
			}
		}
		effect = {
			custom_tooltip = fra_unlock_gendarmes_reform_tt
			hidden_effect = { set_country_flag = fra_unlock_gendarmes } 
			if = { 
				limit = { has_dlc = "Cradle of Civilization" }
				add_army_professionalism = 0.1
			}
			else = { add_army_tradition = 20 } 
		}
	}
	
	fra_movement_centralization = { 
		icon = reform_bergordnung
		required_missions = { fra_form_gendarmes fra_crown_seat_capital } 
		position = 16
		trigger = {
			NOT = { has_estate_privilege = estate_nobles_french_strong_duchies }
			custom_trigger_tooltip = {
				tooltip = centralize_fra_tt
				NOT = {
					any_subject_country = {
						capital_scope = {
							region = france_region
						}
					}
				}
			}
			total_development = 500 
			crown_land_share = 50 
		}
		effect = { 
			if = {
				limit = { has_reform = feudal_france_reform }
				#remove_government_reform = feudal_france_reform 
				add_government_reform = absolutist_france_reform
			}
			else = { change_government_reform_progress = 100 }
			hidden_effect = {
				unlock_government_reform = {
					government_reform = absolutist_france_reform
				}
			}
			#custom_tooltip = fra_5_gov_cap_adm_adv_tt 
			#set_country_flag = 5_gov_cap_bonus_flag 
		}
	}
	
	fra_reform_legal_system = {
		icon = rhineland_conquest
		required_missions = { fra_movement_centralization } 
		position = 18
		provinces_to_highlight = {
			owned_by = ROOT 
			has_courthouse_building_trigger = no 
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_courthouse_building_trigger = yes 
				value = 25 
			}
			has_final_tier_reforms_trigger = yes 
			
		}
		effect = { 
			add_country_modifier = {
				name = fra_proper_legal_systems_modifier
				duration = 9125 
			}
			custom_tooltip = fra_every_court_house_tt
			hidden_effect = {
				set_country_flag = fra_courthouse_bonus_flag
				every_owned_province = {
					limit = {
						has_courthouse_building_trigger = yes
					}
					add_province_modifier = {
						name = fra_improved_court_houses_modifier
						duration = -1
					}
				}
			}
		}
	}	
}

french_rev_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		if = { 
			limit = { has_dlc = "Emperor" }
			is_revolution_target = yes 
		}
		else = { is_revolutionary = yes } 
	}
	has_country_shield = yes
	
	fra_grande_armee = {
		icon = fra_grande_armee
		required_missions = { }
		position = 20
		trigger = {
			army_size_percentage = 0.9
			if = {
				limit = { has_dlc = "Emperor" } 
				revolutionary_zeal = 50 
			}
			else = { 
				stability = 3 
				legitimacy_equivalent = 90 
			}
			manpower_percentage = 0.75
			OR = { 
				national_focus = MIL 
				monthly_mil = 12 
				has_commanding_three_star = yes 
			}
			num_of_artillery = 18 # modified
		}
		effect = {
			add_country_modifier = {
				name = fra_napoleonic_warfare_modifier
				duration = 9125 
			}
			
			add_army_tradition = 10 
			custom_tooltip = fra_client_states_grant_10_pp_tt
		}
	}
	
	fra_cross_rhine = {
		icon = encroach_on_the_germans
		required_missions = { fra_grande_armee }
		position = 21
		provinces_to_highlight = {
			OR = { 
				region = north_german_region 
				region = south_german_region 
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			north_german_region = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			south_german_region = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_subjugation_of_the_germans_modifier
				duration = -1 
			}
		}
	}
	
	fra_dominate_europe = {
		icon = fra_dominate_europe
		required_missions = { fra_cross_rhine fra_secure_iberia fra_invade_italy }
		position = 22
		provinces_to_highlight = {
			AND = {
				is_capital = yes 
				owner = {
					capital_scope = { continent = europe }
					army_size = ROOT 
				}
			}
		}
		trigger = {
			if = { 
				limit = { 
					OR = { 
						has_dlc = "Emperor" 
						has_dlc = "Rights of Man" 
					}
				}
				NOT = { great_power_rank = 2 } 
			}
			if = { 
				limit = { has_dlc = "Emperor" }
				is_hegemon = yes 
			}
			custom_trigger_tooltip = {
				tooltip = fra_strongest_doge_europe_tt
				NOT = { 
					any_country = {
						capital_scope = { continent = europe } 
						army_size = ROOT 
					}
				}
			}
			total_development = 3000
		}
		effect = {
			add_country_modifier = {
				name = fra_french_supremacy_modifier
				duration = -1 
			}
			
			if = { 
				limit = { has_had_golden_age = yes } 
				reset_golden_age = yes 
			}
			else_if = {
				limit = { has_dlc = "Mandate of Heaven" }
				custom_tooltip = fra_reset_ga_tt
			}
		}
	}
	
	fra_religious_settlement = {
		icon = spread_piety
		required_missions = { fra_national_bank }
		position = 23 
		trigger = {
			OR = {
				AND = { 
					has_estate = estate_church 
					estate_loyalty = {
						estate = estate_church 
						loyalty = 60 
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = 4_tolerance_heretic_tt
						has_global_modifier_value = {
							which = tolerance_heretic
							value = 4
						}
					}
					full_idea_group = humanist_ideas 
					NOT = { has_estate = estate_church }
				}
			}
		}
		effect = {
			custom_tooltip = fra_church_path_tt
			tooltip = {
				add_country_modifier = {
					name = fra_church_and_state_harmony_modifier
					duration = -1 
				}
			}
			
			custom_tooltip = fra_secular_path_tt
			tooltip = {
				add_country_modifier = {
					name = fra_popularization_of_secular_beliefs_modifier
					duration = -1 
				}
			}
			
			hidden_effect = { 
				if = { 
					limit = { has_estate = estate_church } 
					add_country_modifier = {
						name = fra_church_and_state_harmony_modifier
						duration = -1 
					}
				}
				else = {
					add_country_modifier = {
						name = fra_popularization_of_secular_beliefs_modifier
						duration = -1 
					}
				}
			}
		}
	}
}

french_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_retake_aquitaine = { 
		icon = mission_rb_invade_england
		required_missions = { } 
		position = 1 
		provinces_to_highlight = { 
			OR = { 
				province_id = 174
				province_id = 173 
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			174 = { 
				OR = { 
					country_or_non_sovereign_subject_holds = ROOT 
					controlled_by = ROOT 
				}
			}
			173 = { 
				OR = { 
					country_or_non_sovereign_subject_holds = ROOT 
					controlled_by = ROOT 
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_completed_via_control_tt
			custom_tooltip = fra_alternatively_lose_10_devastation_and_gain_tt
			tooltip = { 
				add_country_modifier = {
					name = fra_victory_against_the_english_modifier
					duration = 5475
				}
			}
			hidden_effect = { 
				if = { 
					limit = {
						is_at_war = yes 
						174 = { 
							NOT = { country_or_non_sovereign_subject_holds = ROOT }
							controlled_by = ROOT 
						}
						173 = { 
							NOT = { country_or_non_sovereign_subject_holds = ROOT }
							controlled_by = ROOT 
						}
					}
					174 = { 
						add_province_modifier = {
							name = fra_unification_movement_modifier 
							duration = -1 
							desc = until_we_peace_desc
						}
					}
					173 = { 
						add_province_modifier = {
							name = fra_unification_movement_modifier 
							duration = -1 
							desc = until_we_peace_desc
						}
					}
				}
				else = { 
					add_country_modifier = {
						name = fra_victory_against_the_english_modifier
						duration = 5475
					}
					173 = { add_devastation = -10 } 
					174 = { add_devastation = -10 }
				}
			}
		}
	}
	
	fra_unite_france = {
		icon = king_of_france
		required_missions = { fra_retake_aquitaine fra_armorican_peninsula }
		position = 3
		provinces_to_highlight = { 
			region = france_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			num_of_provinces_owned_or_owned_by_subjects_with = { 
				region = france_region 
				value = 50 
			}
		}
		effect = { 
			add_power_projection = {
				type = fra_crown_of_france
				amount = 10
			}
			custom_tooltip = zim_amongst_the_great_powers_tt
			
			add_prestige_or_monarch_power = { amount = 25 }
		}
	}
}

french_missions_3_blank_hre = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		NOT = { has_country_flag = fra_fufujoni_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_branch_mission_3_5 = { 
		icon = mission_unknown_mission
		required_missions = { fra_border_empire }
		position = 5
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_choose_dismantle_hre_tt
			custom_tooltip = fra_if_choose_expand_the_versailles_as_the_center_of_military_operations_in_the_empire_and_solidify_our_dip_tt
		}
	}
}

french_missions_3_charlemagne_path = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag
		NOT = { has_country_flag = fra_fufujoni_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_means_expansion = { 
		icon = centralized_empire
		required_missions = { fra_border_empire }
		position = 5
		provinces_to_highlight = {
			OR = {
				AND = {
					owner = { is_emperor = yes }
					root = { is_emperor = no }
				}
				AND = {
					is_part_of_hre = yes
					owner = {
						OR = {
							is_part_of_hre = no
							AND = {
								is_subject = yes
								overlord = { is_part_of_hre = no }
							}
						}
					}
				}
			}
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			hre_reform_passed = emperor_reichsstabilitaet
			is_emperor = yes 
			custom_trigger_tooltip = {
				tooltip = no_hre_province_owned_by_non_hre_member_or_overlord_trigger
				europe = {
					type = all
					OR = {
						is_part_of_hre = no
						AND = {
							is_part_of_hre = yes
							owner = {
								is_part_of_hre = yes
								OR = {
									is_subject = no
									AND = {
										is_subject = yes
										overlord = { is_part_of_hre = yes }
									}
								}
							}
						}
					}
				}
			}
			if = { 
				limit = { has_dlc = "Leviathan" }
				183 = { 
					owned_by = ROOT 
					has_great_project = {
						type = versailles
						tier = 3 
					}
				}
			}
			else = { 
				183 = { 
					owned_by = ROOT 
					development = 50 
				} 
			}
		}
		effect = { 
			change_ruler_stat = {
				type = dip
				amount = 2
			}
			if = {
				limit = { has_dlc = "Leviathan" } 
				custom_tooltip = fra_versailles_bonus_tt
				custom_tooltip = fra_25_25_tt
				hidden_effect = {
					every_ally = {
						limit = {
							has_opinion = {
								who = ROOT 
								value = 50
							}
						}
						ROOT = {
							add_trust = {
								who = PREV
								value = 25
								mutual = yes
							}
							add_favors = {
								who = PREV
								amount = 25
							}
						}
					}
				}
			}
			else = {
				183 = {
					add_province_modifier = {
						name = center_mil_matters_strategy_modifier
						duration = -1 
					}
				}
			}
		}
	}
}	

french_missions_3_kill_hre_path = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_shed_the_blood_of_the_saxon_man_flag }
		has_country_flag = fra_fufujoni_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_dismantle_empire = {
		icon = mission_dismantle_hre
		required_missions = { fra_border_empire }
		position = 5
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						province_id = 1878
						province_id = 85
						province_id = 1876
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				AND = { 
					is_capital = yes 
					owner = {
						capital_scope = { 
							OR = { 
								region = north_german_region 
								region = south_german_region 
							}
						}
						NOT = { tag = ROOT }
						total_development = ROOT
						army_size = ROOT
					}
				}
			}
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA_HRE }
			custom_trigger_tooltip = {
				tooltip = fra_dismantled_hre_tt
				NOT = { hre_size = 1 }
			}
			1878 = { country_or_non_sovereign_subject_holds = ROOT }
			85 = { country_or_non_sovereign_subject_holds = ROOT }
			1876 = { country_or_non_sovereign_subject_holds = ROOT }
			custom_trigger_tooltip = {
				tooltip = fra_no_nation_in_germany_stronger_than_us_tt
				any_country = {
					capital_scope = { 
						OR = { 
							region = north_german_region 
							region = south_german_region 
						}
					}
					NOT = { total_development = ROOT }
					NOT = { army_size = ROOT } 
				}
			}
			OR = { 
				prestige = 90
				monthly_mil = 14
			}
		}
		effect = {
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 50
			}
			if = {
				limit = { has_dlc = "Rights of Man" }
				add_ruler_personality = iron_crowned_personality
			}
			else = { 
				add_ruler_modifier = {
					name = fra_iron_crowned_modifier
					duration = -1 
				}
			}
			add_mil_power = 150
		}
	}
}

french_missions_3_continuation_after_hre_missions = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_league_cambrai = { 
		icon = expand_the_doges_palace
		required_missions = { fra_secure_alpine_pass } 
		position = 6 
		provinces_to_highlight = { 
			area = venetia_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
			NOT = { country_or_non_sovereign_subject_holds = PAP } 
		}
		trigger = {
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				venetia_area = { 
					type = all 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = { 
				venetia_area = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
			}
			if = { 
				limit = { 
					112 = { country_or_non_sovereign_subject_holds = ROOT } 
				}
				112 = { 
					OR = {
						has_building = shipyard 
						has_building = grand_shipyard
					}
					num_of_times_improved = 4 
				}
			}
		}
		effect = { 
			custom_tooltip = fra_lapdog_reward_cambrai_tt
			tooltip = { 
				# venetia_area = { 
					# limit = { 
						# NOT = { country_or_non_sovereign_subject_holds = PAP } 
					# }
					# remove_core = ROOT 
					# add_core = PAP 
					# cede_province = PAP 
				# }
				add_country_modifier = { 
					name = fra_venetian_craftsmanship_modifier
					duration = -1 
					desc = fra_as_long_as_owned_by_pap_or_subject_desc
				}
			}
			if = { 	
				limit = { has_dlc = "Leviathan" }
				custom_tooltip = fra_alternatively_tt
				tooltip = { 
					112 = { 
						destroy_great_project = { 
							type = doges_palace
						}
						add_province_triggered_modifier = fra_roi_palace_triggered_modifier
					}
					add_prestige = 20 
				}
			}
			else = { 
				custom_tooltip = fra_alternatively_tt 
				tooltip = { 
					112 = { 
						add_province_modifier = {
							name = fra_roi_palace_modifier 
							duration = -1 
						}
					}
					add_prestige = 20 
				}
			}
			hidden_effect = { 
				if = { 
					limit = { has_country_flag = fra_papal_lap_dop_flag } 
					venetia_area = { 
						limit = { 
							NOT = { country_or_non_sovereign_subject_holds = PAP } 
						}
						remove_core = ROOT 
						add_core = PAP 
						cede_province = PAP 
					}
					add_country_modifier = { 
						name = fra_venetian_craftsmanship_modifier
						duration = -1 
						desc = fra_as_long_as_owned_by_pap_or_subject_desc
					}
				}
				else_if = {
					limit = { has_dlc = "Leviathan" } 
					112 = {
						destroy_great_project = { 
							type = doges_palace
						}
					}
					set_country_flag = fra_build_roi_palace_flag
					112 = { 
						add_province_triggered_modifier = fra_roi_palace_triggered_modifier
					}
					add_prestige = 20 
				}
				else = { 
					112 = { 
						add_province_modifier = {
							name = fra_roi_palace_modifier 
							duration = -1 
						}
					}
					add_prestige = 20 
				}
			}
		}
	}
	
	
	
	fra_golden_march = { 
		icon = fra_golden_march
		required_missions = { fra_league_cambrai fra_italian_heartland fra_restore_signoria }
		position = 6
		provinces_to_highlight = { 
			OR = { 
				area = liguria_area
				area = piedmont_area 
				area = lombardy_area
				area = po_valley_area
				area = venetia_area
				area = tuscany_area
				area = emilia_romagna_area 
			}
			OR = { 
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { country_or_non_sovereign_subject_holds = PAP }
			}
		}
		trigger = { 
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				custom_trigger_tooltip = {
					tooltip = fra_northern_italy_by_you_subject_or_papal_states_or_subject_tt
					liguria_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					piedmont_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					lombardy_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					po_valley_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					venetia_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					tuscany_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					emilia_romagna_area = {
						type = all 
						OR = { 
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					PAP = { 
						OR = { 
							is_subject_of = ROOT 
							alliance_with = ROOT 
						}
					}
				}
			}
			else = { 
				custom_trigger_tooltip = {
					tooltip = fra_northern_italy_by_you_subject_tt
					liguria_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					piedmont_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					lombardy_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					po_valley_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					venetia_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					tuscany_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
					emilia_romagna_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
				}
			}
		}
		effect = {
			custom_tooltip = fra_cede_northern_italy_to_pope_coronation_and_tt 
			tooltip = { 
				add_ruler_modifier = { 
					name = fra_coronated_by_the_pope_modifier
					duration = -1
				}
				country_event = { id = flavor_fra.117 }
			}
			custom_tooltip = fra_alternatively_gain_following_evolving_reward_tt
			tooltip = { 
				add_country_modifier = { 
					name = fra_golden_march_modifier
					duration = -1 
				}
			}
			hidden_effect = { 
				if = { 
					limit = { has_country_flag = fra_papal_lap_dop_flag } 
					italy_region = { 
						limit = { 
							OR = {
								area = liguria_area
								area = piedmont_area 
								area = lombardy_area
								area = po_valley_area
								area = venetia_area
								area = tuscany_area
								area = emilia_romagna_area 
							}
							country_or_non_sovereign_subject_holds = ROOT 
							NOT = { owned_by = PAP } 
						}
						remove_core = ROOT 
						add_core = PAP 
						cede_province = PAP 
					}
					add_ruler_modifier = { 
						name = fra_coronated_by_the_pope_modifier
						duration = -1
					}
					country_event = { id = flavor_fra.117 }
				}
				else = { 
					add_country_modifier = { 
						name = fra_golden_march_modifier
						duration = -1 
					}
				}
			}
		}
	}
	
	fra_house_god = {
		icon = answer_the_roman_question
		required_missions = { fra_throne_naples fra_golden_march }
		position = 7
		provinces_to_highlight = {
			if = { 
				limit = { root = { has_country_flag = fra_papal_lap_dop_flag } }
				area = lazio_area 
				NOT = { 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = { 
				area = lazio_area 
				NOT = { country_or_non_sovereign_subject_holds = ROOT } 
			}
		}
		trigger = {
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				if = { 
					limit = { 
						PAP = { exists = yes } 
					}
					PAP = {
						has_opinion_modifier = {
							who = ROOT
							modifier = sent_gift
						}
					}
				}
				lazio_area = { 
					type = all 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
				PAP = { 
					alliance_with = ROOT 
					is_at_war = no 
				}
				is_at_war = no 
			}
			else = { 
				lazio_area = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
				118 = { 
					owned_by = ROOT 
					development = 30 
					has_tax_building_trigger = yes 
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_lapdog_reward_tt
			tooltip = {
				PAP = { 
					country_event = { id = flavor_fra.120 }
				}
			}
			custom_tooltip = fra_event_insight_120_tt
			custom_tooltip = fra_alternatively_modify_golden_march_and_tt
			hidden_effect = { 
				if = { 	
					limit = { has_country_flag = fra_papal_lap_dop_flag } 
					PAP = { 
						country_event = { id = flavor_fra.120 }
					}
				}
				else = {
					remove_country_modifier = fra_golden_march_modifier 
					add_country_modifier = { 
						name = fra_golden_march2_modifier
						duration = -1 
					}
				}
			}
		}
	}
}

french_missions_3_normal_continued = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_dutch_coast = { 
		icon = bavarian_netherlands 
		required_missions = { fra_navy_mission_calais } 
		position = 11
		provinces_to_highlight = {
			region = low_countries_region 
			has_port = yes 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {	
				region = low_countries_region 
				has_port = yes 
				value = 6
			}
			1744 = {
				country_or_non_sovereign_subject_holds = ROOT 
				if = { 
					limit = { has_dlc = "Dharma" }
					OR = { 
						development = 35
						province_has_center_of_trade_of_level = 3 
					}
				}
			}
			97 = { 
				country_or_non_sovereign_subject_holds = ROOT 
				if = { 
					limit = { has_dlc = "Dharma" }
					OR = { 
						development = 35
						province_has_center_of_trade_of_level = 3 
					}
				}
			}
		}
		effect = {
			custom_tooltip = fra_dutch_cloth_manufactories_tt
			tooltip = {
				add_base_production = 1 
				add_province_modifier = {
					name = fra_french_cloth_centers_modifier
					duration = -1 
				}
			}
			hidden_effect = { 
				every_owned_province = {
					limit = {
						region = low_countries_region 
						has_port = yes 
						trade_goods = cloth
					}
					add_base_production = 1 
					add_province_modifier = {
						name = fra_french_cloth_centers_modifier
						duration = -1 
					}
				}
			}
			add_mercantilism = 3
			if = { 
				limit = { has_dlc = "Leviathan" }
				custom_tooltip = fra_if_complete_with_holland_40_dev
				tooltip = {
					97 = { 
						add_great_project_tier = {
							type = dutch_polders
							tier = 1 
						}
					}
				}
				hidden_effect = {
					if = {
						limit = { 
							97 = { development = 40 }
						}
						97 = { 
							add_great_project_tier = {
								type = dutch_polders
								tier = 1 
							}
						}
					}
				}
			}
		}
	}
	
	fra_english_channel_mission = {
		icon = mission_rb_monopolize_the_channel 
		required_missions = { fra_dutch_coast fra_hudson_bay_fur fra_british_isles } 
		position = 13
		provinces_to_highlight = {
			province_id = 1269 
		}
		trigger = {
			1269 = { 
				trade_share = {
					country = ROOT 
					share = 75
				}
			}
			if = { 
				limit = { has_dlc = "Mare Nostrum" }
				OR = {
					full_idea_group = trade_ideas 
					mercantilism = 50 
				}
			}
		}
		effect = {
			1272 = { change_province_name = "La Manche" }
			1269 = { change_province_name = "Basse-Cte" }
			add_country_modifier = {
				name = fra_channel_dominance_modifier
				duration = -1 
			}
			custom_tooltip = fra_merc_per_province_tt
			if = { 
				limit = { 
					1269 = { highest_value_trade_node = yes }
				}
				hidden_effect = { 
					every_owned_province = {
						limit = { 
							same_trade_node_as = 1269
							province_has_center_of_trade_of_level = 1 
						}
						owner = { add_mercantilism = 1 }
					}
				}
			}
		}
	}
	
	fra_retrial_jeanne_darc = {
		icon = control_the_church 
		required_missions = { fra_embrace_renaissance } 
		position = 15
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = fra_enacted_retrial_tt
				has_global_flag = retrial_of_joan_of_arc
			}
			OR = { 
				full_idea_group = religious_ideas 
				if = { 
					limit = { religion = catholic }
					has_country_modifier = edict_de_nantes
				}
				else = { religious_unity = 0.95 }
				is_papal_controller = yes 
				if = {
					limit = { has_estate = estate_church } 
					AND = { 
						estate_loyalty = { 
							estate = estate_church 
							loyalty = 60 
						}
						estate_influence = { 
							estate = estate_church 
							influence = 80 
						}
						num_of_estate_agendas_completed = {
							estate = estate_church 
							value = 4 
						}
					}
				}
			}
		}
		effect = {
			add_country_modifier = { 
				name = fra_beatification_joan_arc_modifier
				duration = 9125 
			}
		}
	}
	
	fra_musketeers = {
		icon = establish_the_musketeers 
		required_missions = { fra_movement_centralization } 
		position = 17
		trigger = {
			OR = { 
				crown_land_share = 90 
				monthly_mil = 16
				if = {
					limit = { has_dlc = "Cradle of Civilization" }
					army_professionalism = 0.7
				}
				else = { army_tradition = 85 }
			}
			num_of_owned_provinces_with = {
				has_manpower_building_trigger = yes 
				value = 25 
			}
			army_size = 50 # modified
		}
		effect = { 
			custom_tooltip = fra_enable_musketeer_reform_tt
			add_country_modifier = {
				name = fra_musketeers_modifier
				duration = -1 
			}
		}
	}
	
	fra_absolutism = {
		icon = letat_cest_moi 
		required_missions = { fra_musketeers } 
		position = 18
		trigger = {
			absolutism = 90
			OR = {
				has_age_ability = ab_french_absolutism
				in_golden_age = yes 
				is_hegemon = yes 
				total_development = 2500 
			}
		}
		effect = {
			custom_tooltip = fra_reward_after_court_country_tt
			tooltip = {
				add_country_modifier = {
					name = fra_letat_cest_moi_modifier
					duration = -1 
				}
			}
			
			custom_tooltip = fra_alternatively_tt 
			tooltip = {
				add_country_modifier = {
					name = fra_absolutism_modifier
					duration = 7300 
				}
			}
			
			hidden_effect = {
				if = {
					limit = { 
						OR = {
							has_country_modifier = central_authority_asserted 
							has_country_modifier = crushed_local_authority 
						}
					}
					add_country_modifier = {
						name = fra_letat_cest_moi_modifier
						duration = -1 
					}
				}
				else = {
					add_country_modifier = {
						name = fra_absolutism_modifier
						duration = 7300 
					}
				}
			}	
		}
	}
	
	fra_french_industry = {
		icon = mission_rb_prospect_for_coal 
		required_missions = { fra_absolutism fra_reform_legal_system fra_develop_trade } 
		position = 19
		provinces_to_highlight = {
			OR = { 
				AND = {
					has_manufactory_trigger = no 
					owned_by = ROOT 
				}
				AND = { 
					OR = {
						province_id = 2753
						province_id = 196
						province_id = 175
						province_id = 174
					}
					OR = { 
						NOT = { country_or_non_sovereign_subject_holds = ROOT }
						NOT = { development = 40 } 
					}
				}
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manufactory_trigger = yes 
				value = 50 
			}
			OR = { 
				has_institution = industrialization
				if = { 
					limit = { has_dlc = "Rule Britannia" } 
					num_of_owned_provinces_with = {
						has_building = furnace 
						value = 5
					}
				}
				else = { 
					num_of_owned_provinces_with = {
						has_building = counting_house 
						value = 30
					}
				}
			}
			OR = { 
				in_golden_age = yes 
				is_hegemon_of_type = economic_hegemon
				monthly_income = 1000
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_french_industrial_revolution_modifier
				duration = -1 
			}
			
			custom_tooltip = fra_trading_iron_tt
			
			custom_tooltip = fra_canal_midi_tt
			tooltip = {
				add_province_modifier = {
					name = fra_canal_royal_en_languedoc_modifier
					duration = -1 
				}
			}
			
			hidden_effect = { 
				if = { 
					limit = { 
						trading_bonus = {
							trade_goods = copper
							value = yes
						}
						trading_bonus = {
							trade_goods = iron
							value = yes
						}
					}
					every_owned_province = {
						limit = { 
							OR = { 
								trade_goods = copper 
								trade_goods = iron 
								trade_goods = gold 
							}
						}
						add_province_modifier = {
							name = fra_metal_barons_modifier
							duration = -1 
							hidden = yes 
						}
					}
				}
				if = { 
					limit = { 
						2753 = {
							country_or_non_sovereign_subject_holds = ROOT 
							development = 40 
						}
						196 = {
							country_or_non_sovereign_subject_holds = ROOT 
							development = 40 
						}
						175 = {
							country_or_non_sovereign_subject_holds = ROOT 
							development = 40 
						}
						174 = {
							country_or_non_sovereign_subject_holds = ROOT 
							development = 40 
						}
					}
					2753 = {
						add_province_modifier = {
							name = fra_canal_royal_en_languedoc_modifier
							duration = -1 
						}
					}
					196 = {
						add_province_modifier = {
							name = fra_canal_royal_en_languedoc_modifier 
							duration = -1 
						}
					}
					175 = { 
						add_province_modifier = {
							name = fra_canal_royal_en_languedoc_modifier
							duration = -1 
						}
					}
					174 = {
						add_province_modifier = {
							name = fra_canal_royal_en_languedoc_modifier
							duration = -1 
						}
					}
				}
			}		
		}
	}
}

french_rev_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		if = { 
			limit = { has_dlc = "Emperor" }
			is_revolution_target = yes 
		}
		else = { is_revolutionary = yes } 
	}
	has_country_shield = yes
	
	fra_invade_italy = {
		icon = establish_client_states
		required_missions = { fra_grande_armee }
		position = 21
		provinces_to_highlight = {
			region = italy_region 
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				has_manpower_building_trigger = no 
			}
		}
		trigger = {
			italy_region = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			if = { 
				limit = { 
					has_country_flag = fra_papal_lap_dop_flag 
					PAP = { is_subject_of = ROOT }
				}
				PAP = { grown_by_development = 200 } 
			}
			else = { 
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = italy_region 
					has_manpower_building_trigger = yes 
					value = 35
				}
			}
		}
		effect = {			
			add_country_modifier = {
				name = fra_riches_of_italy_modifier 
				duration = -1 
			}
			
			if = {
				limit = { 
					NOT = { has_country_flag = fra_papal_lap_dop_flag }
					any_subject_country = {
						capital_scope = { region = italy_region }
						total_development = 500 
					}
				}
				random_subject_country = {
					limit = {	
						capital_scope = { region = italy_region }
						total_development = 500 
					}
					override_country_name = NCP 
					set_country_flag = is_NCP_flag
					set_country_flag = has_overriden_name_flag
					change_country_color = { 
						color = { 65 105 225 }
					}
					set_country_flag = has_overriden_color_flag
				}
			}
			else_if = {
				limit = { NOT = { has_country_flag = fra_papal_lap_dop_flag } }
				custom_tooltip = fra_proclaim_cispadane_rep_tt
			}
		}
	}
	
	fra_national_bank = {
		icon = reform_the_monte
		required_missions = { }
		position = 22
		trigger = {
			OR = { 
				is_hegemon_of_type = economic_hegemon 
				full_idea_group = economic_ideas 
				monthly_income = 500 
			}
			NOT = { inflation = 0.1 } 
			NOT = { corruption = 0.1 } 
			NOT = { num_of_loans = 1 } 
			has_idea = mandats_territoriaux
		}
		effect = {
			add_country_modifier = { 
				name = fra_stable_currency_modifier
				duration = -1 
			}
			
			change_ruler_stat = {
				type = adm
				amount = 1
			}
		}
	}
	
	fra_civil_code = {
		icon = standardize_relazioni
		required_missions = { fra_national_bank }
		position = 23
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = { 
				has_building = town_hall 
				value = 50 
			}
			OR = { 
				adm = 6 
				government_reform_progress = 1000
				AND = { 
					national_focus = ADM 
					monthly_adm = 15
				}
			}
			prestige = 50 
		}
		effect = {
			add_country_modifier = {
				name = fra_code_napoleon_modifier
				duration = -1 
			}
		}
	}
}
	
french_missions_4_normal = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_house_united = { 
		icon = the_gallic_wars 
		required_missions = { fra_provencal_question } 
		position = 2 
		trigger = {
			legitimacy = 95 
			stability = 3
			PRO = { 
				OR = { 
					exists = no 
					is_subject_of = ROOT 
				}
			}
			if = { 
				limit = { 
					PRO = { is_subject_of = ROOT } 
				}
				PRO = { total_development = 75 }
			}	
		}
		effect = { 
			add_country_modifier = { 
				name = fra_strong_familial_ties_modifier
				duration = 7300
			}
			custom_tooltip = fra_if_pro_190_opinion_and_100_trust_tt
			tooltip = {
				add_country_modifier = {
					name = fra_close_ties_modifier
					duration = 9125
				}
			}
			hidden_effect = {
				if = { 
					limit = { 
						PRO = { 
							is_subject_of = ROOT 
							trust = { who = ROOT value = 100 }
							has_opinion = {
								who = ROOT 
								value = 190
							}
						}
					}
					add_country_modifier = {
						name = fra_close_ties_modifier
						duration = 9125
					}
				}
			}
		}
	}
}	

french_missions_4_branching = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_chose_to_piss_off_pope_flag } 
		NOT = { has_country_flag = fra_papal_lap_dop_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_branch_mission_4_3 = { 
		icon = mission_unknown_mission
		required_missions = { fra_ducal_lands_avignon }
		position = 3 
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_align_pope_protector_of_catholicism_about_defender_of_faith_tt
			custom_tooltip = fra_if_defy_pope_crown_of_naples_tt
		}
	}
	
	fra_branch_mission_4_4 = { 
		icon = mission_unknown_mission
		required_missions = { fra_branch_mission_4_3 fra_branch_mission_5_3 }
		position = 3 
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_align_pope_restore_outremer_tt
			custom_tooltip = fra_if_defy_pope_city_of_lights_tt
		}
	}
}	

french_missions_4_italian = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_chose_to_piss_off_pope_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_crown_naples = { 
		icon = king_of_naples 
		required_missions = { fra_ducal_lands_avignon }
		position = 3 
		provinces_to_highlight = { 
			province_id = 121 
			OR = { 
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { num_of_buildings_in_province = 5 } 
				if = {
					limit = { has_dlc = "Leviathan" }
					NOT = { 
						OR = { 
							has_great_project = { 
								type = royal_palace_caserta 
								tier = 1
							}
							has_great_project = { 
								type = royal_palace_caserta 
								tier = 2
							}
							has_great_project = { 
								type = royal_palace_caserta 
								tier = 3
							}
						}
					}
				}
				NOT = { development = 35 }
				NOT = { province_has_center_of_trade_of_level = 2 }
			}
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			121 = {
				country_or_non_sovereign_subject_holds = ROOT 
				num_of_buildings_in_province = 5 
				if = {
					limit = { has_dlc = "Leviathan" }
					OR = { 
						has_great_project = { 
							type = royal_palace_caserta 
							tier = 1
						}
						has_great_project = { 
							type = royal_palace_caserta 
							tier = 2
						}
						has_great_project = { 
							type = royal_palace_caserta 
							tier = 3
						}
					}
				}
				development = 35 
				if = { 
					limit = { has_dlc = "Dharma" }
					province_has_center_of_trade_of_level = 2 
				}
			}
		}
		effect = { 
			add_country_modifier = {
				name = fra_kingdom_sea_modifier
				duration = 7300 
			}
			if = { 
				limit = { 
					has_dlc = "Leviathan" 
					121 = { 
						country_or_non_sovereign_subject_holds = ROOT
						NOT = { 
							has_great_project = { 
								type = royal_palace_caserta 
								tier = 3 
							}
						}
					}
				}
				121 = { 
					add_great_project_tier = { 
						type = royal_palace_caserta
						tier = 1
					}
				}
			}
			else = { add_dip_power = 100 } 
		}
	}
	
	fra_city_lights = { 
		icon = italian_riches
		required_missions = { fra_crown_naples fra_milanese_succession } 
		position = 4
		provinces_to_highlight = { 
			area = lazio_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			lazio_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
		}
		effect = { 
			custom_tooltip = fra_if_not_catholic_tt
			tooltip = { 
				add_country_modifier = { 
					name = fra_host_city_of_lights_modifier
					duration = -1 
				}
			}
			custom_tooltip = fra_restraint_wont_cost_pi_and_no_dip_penalty_and_ruler_papal_puppetmaster_tt
			hidden_effect = { 
				if = { 
					limit = { 
						NOT = { religion = catholic } 
					}
					add_country_modifier = {
						name = fra_host_city_of_lights_modifier 
						duration = -1 
					}
					add_ruler_personality = legendary_conqueror_personality
				}
				else = { 
					add_country_modifier = {
						name = fra_supplementary_pi_and_dip_rep_modifier
						duration = -1 
						hidden = yes 
					}
					set_country_flag = general_flag_Rome_flag
					add_ruler_personality = papal_puppetmaster_personality
				}
			}
		}
	}
}

french_missions_4_crusader_kings = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_papal_lap_dop_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_protector_catholicism = {
		icon = shield_of_christendom
		required_missions = { fra_ducal_lands_avignon }
		position = 3
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			religion = catholic 
			is_defender_of_faith = yes 
			OR = { 
				custom_trigger_tooltip = {
					tooltip = fra_stronger_than_any_cath_tt
					NOT = {
						any_country = {
							religion = catholic 
							army_size = ROOT  
						}
					}
				}
				is_papal_controller = yes 
			}
		}
		effect = { 
			add_ruler_modifier = {
				name = fra_catholic_head_of_state_modifier
				duration = -1 
			}
			custom_tooltip = fra_religious_cb_on_every_muslim_gp_tt
			every_known_country = {
				limit = { 
					religion_group = muslim 
					OR = { 
						total_development = 300
						is_great_power = yes 
					}
				}
				ROOT = {
					add_casus_belli = {
						target = PREV
						type = cb_crusade_pheasants
						months = 120
					}
				}
			}
		}
	}
	
	fra_shield_of_outremer = { 
		icon = kingdom_of_heaven
		required_missions = { fra_protector_catholicism fra_pilgrimage_jerusalem } 
		position = 4
		provinces_to_highlight = { 
			OR = { 
				area = palestine_area 
				area = trans_jordan_area 
				area = syria_area 
				area = aleppo_area 
			}
			OR = { 
				NOT = { country_or_non_sovereign_subject_holds = ROOT } 
				NOT = { religion = catholic } 
			}
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			palestine_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				religion = catholic 
			}
			trans_jordan_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				religion = catholic 
			}
			aleppo_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				religion = catholic 
			}
			syria_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				religion = catholic 
			}
			if = { 
				limit = { 
					KOJ = { is_subject_of = ROOT } 
				}
				KOJ = { 
					has_opinion = {
						who = ROOT 
						value = 190
					}
					grown_by_development = 200
				}
			}
		}
		effect = { 
			add_country_modifier = { 
				name = fra_fervent_call_to_arms_modifier
				duration = 7300
			}
			if = { 
				limit = { 
					has_dlc = "Golden Century" 
					religion_group = christian 
				}
				custom_tooltip = fra_if_we_complete_mission_while_allied_or_subject_and_175_opinion_and_100_trust_access_to_holy_orders_tt
			}
			else = {
				add_dip_power = 100
			}
			hidden_effect = { 
				if = { 
					limit = {
						has_dlc = "Golden Century" 
						OR = { 
							has_dlc = "Emperor"
							has_dlc = "Rights of Man"
						}
						OR = { 
							any_ally = { 
								culture_group = iberian 
								has_opinion = {
									who = ROOT 
									value = 190
								}
								trust = { who = ROOT value = 100 }
							}
							any_subject_country = { 
								culture_group = iberian 
								has_opinion = {
									who = ROOT 
									value = 190
								}
								trust = { who = ROOT value = 100 }
							}
						}
					}
					set_country_flag = enable_holy_orders_flag
				}
			}
			if = {
				limit = { 
					KOJ = { is_subject_of = ROOT } 
				}
				KOJ = { 
					override_country_name = OUT
					set_country_flag = KOJ_overriden_name_flag #For Elfryc :) 
					set_country_flag = has_overriden_name_flag
				}
			}	
		}
    }
}

french_missions_4_normal_continuation = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_secure_alpine_pass = { 
		icon = unify_piedmont
		required_missions = { }
		position = 5
		provinces_to_highlight = {
			area = piedmont_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				piedmont_area = { 
					type = all 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = { 
				piedmont_area = {
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
			}
		}
		effect = {
			custom_tooltip = fra_if_we_aligned_with_pope_and_we_are_both_independent_tt
			tooltip = { 
				country_event = { id = flavor_fra.115 }
			}
			custom_tooltip = fra_if_we_defied_the_pope_tt
			tooltip = { 
				italy_region = { 
					limit = { 
						NOT = { owned_by = ROOT } 
						NOT = { is_core = ROOT } 
					}
					add_permanent_claim = ROOT 
				}
				add_country_modifier = {
					name = fra_entry_in_italy_modifier 
					duration = 7300
				}
				if = { 
					limit = { has_estate = estate_nobles }
					add_estate_loyalty = { 
						estate = estate_nobles 
						loyalty = 20 
					}
				}
			}
			hidden_effect = { 
				if = { 
					limit = { has_country_flag = fra_papal_lap_dop_flag } 
					country_event = { id = flavor_fra.115 }
				}
				else = { 
					italy_region = { 
						limit = { 
							NOT = { owned_by = ROOT } 
							NOT = { is_core = ROOT } 
						}
						add_permanent_claim = ROOT 
					}
					add_country_modifier = {
						name = fra_entry_in_italy_modifier 
						duration = 7300
					}
					if = { 
						limit = { has_estate = estate_nobles }
						add_estate_loyalty = { 
							estate = estate_nobles 
							loyalty = 20 
						}
					}
				}
			}
		}
	}
	
	fra_italian_heartland = {
		icon = seize_lombardy
		required_missions = { fra_secure_alpine_pass }
		position = 6
		provinces_to_highlight = { 
			area = lombardy_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				lombardy_area = { 
					type = all 
					OR = { 
						country_or_non_sovereign_subject_holds = PAP 
						country_or_non_sovereign_subject_holds = ROOT 
					} 
				}
			}
			else = { 
				lombardy_area = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
				104 = { num_of_times_improved = 5 } 
			}
		}
		effect = { 
			custom_tooltip = fra_if_lapdog_reward_tt
			tooltip = {
				lombardy_area = { 
					limit = { country_or_non_sovereign_subject_holds = ROOT } 
					remove_core = ROOT 
					add_core = PAP 
					cede_province = PAP 
				}
				if = { 
					limit = { has_dlc = "Leviathan" }
					104 = { 
						add_great_project_tier = { 
							type = duomo_milano
							tier = 1 
						}
					}
				}
				else = { 
					104 = { add_base_tax = 3 } 
				}
				add_country_modifier = { 
					name = fra_influx_of_milanese_engineers_modifier
					duration = 9125
				}
			}
			custom_tooltip = fra_if_completed_via_conquest_tt
			tooltip = { 
				country_event = { id = flavor_fra.118 } 
				if = { 
					limit = { has_dlc = "Leviathan" }
					104 = { 
						add_great_project_tier = {
							type = duomo_milano
							tier = 1 
						}
					}
				}
				else = { 
					104 = { 
						add_base_tax = 1 
						add_base_production = 1 
						add_province_modifier = {
							name = fra_first_opera_house_modifier
							duration = -1 
						}
					}
				}
			}
			hidden_effect = { 
				if = {
					limit = { 
						has_country_flag = fra_papal_lap_dop_flag 
						has_dlc = "Leviathan"
					} 
					lombardy_area = { 
						limit = { country_or_non_sovereign_subject_holds = ROOT } 
						remove_core = ROOT 
						add_core = PAP 
						cede_province = PAP 
					}
					104 = { 
						add_great_project_tier = { 
							type = duomo_milano
							tier = 1 
						}
					}
				}
				else_if = {
					limit = { has_country_flag = fra_papal_lap_dop_flag }
					lombardy_area = { 
						limit = { country_or_non_sovereign_subject_holds = ROOT } 
						remove_core = ROOT 
						add_core = PAP 
						cede_province = PAP 
					}
					104 = { add_base_tax = 3 }
					add_country_modifier = { 
						name = fra_influx_of_milanese_engineers_modifier
						duration = 9125
					}
				}
				else_if = { 
					limit = { 
						has_dlc = "Leviathan" 
						has_country_flag = fra_chose_to_piss_off_pope_flag 
					}
					country_event = { id = flavor_fra.118 } 
					104 = { 
						add_great_project_tier = {
							type = duomo_milano
							tier = 1 
						}
					}
				}
				else = { 
					104 = { 
						add_base_tax = 1 
						add_base_production = 1 
						add_province_modifier = {
							name = fra_first_opera_house_modifier
							duration = -1 
						}
					}
				}
			}
		}
	}		
	
	fra_expand_french_domain = { 
		icon = fra_expand_french_domain
		required_missions = { fra_house_god fra_secure_genoan_trade }
		position = 9
		provinces_to_highlight = { 
			if = { 	
				limit = { 
					owner = { has_country_flag = fra_papal_lap_dop_flag }
				}
				region = italy_region 
				NOT = { 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = { 
				region = italy_region 
				NOT = { country_or_non_sovereign_subject_holds = ROOT } 
			}
		}
		trigger = { 
			if = { 	
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				italy_region = { 
					type = all 
					OR = { 	
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = {
				italy_region = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
			}
			if = { 
				limit = { 
					PAP = { exists = yes }
					has_country_flag = fra_papal_lap_dop_flag
				}
				PAP = { 
					OR = { 
						alliance_with = ROOT 
						is_subject_of = ROOT 
					}
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_aligned_with_pope_and_not_subject_exists_tt
			tooltip = { 
				PAP = { 
					country_event = { id = flavor_fra.120 } 
				}
			}
			custom_tooltip = fra_if_aligned_and_pope_subject_already_tt
			tooltip = { 
				add_country_modifier = {
					name = fra_catholic_italy_modifier
					duration = -1 
				}
				PAP = { 
					override_country_name = EU_KINGDOM_OF_GOD 
					set_country_flag = is_kingdom_of_god_flag
					add_country_modifier = { 
						name = fra_suzerainty_italy_modifier
						duration = -1 
					}
				}
			}
			custom_tooltip = fra_alternatively_evolve_golden_march_3_tt
			tooltip = { 
				balkan_region = { 
					limit = { 
						NOT = { owned_by = ROOT } 
						NOT = { is_core = ROOT }
					}
				}
			}
			hidden_effect = { 
				if = { 	
					limit = {
						has_country_flag = fra_papal_lap_dop_flag 
						PAP = { 
							exists = yes 
							NOT = { is_subject_of = ROOT }
						}
					}
					PAP = { 
						country_event = { id = flavor_fra.120 } 
					}
					add_country_modifier = {
						name = fra_catholic_italy_modifier
						duration = -1 
					}
				}
				else_if = {
					limit = { has_country_flag = fra_papal_lap_dop_flag } 
					custom_tooltip = fra_access_new_papal_bulls_tt
					add_country_modifier = {
						name = fra_catholic_italy_modifier
						duration = -1 
					}
					PAP = { 
						override_country_name = EU_KINGDOM_OF_GOD 
						set_country_flag = is_kingdom_of_god_flag
						set_country_flag = has_overriden_name_flag
						add_country_modifier = { 
							name = fra_suzerainty_italy_modifier
							duration = -1 
						}
					}
				}
				else = { 
					remove_country_modifier = fra_golden_march_modifier
					remove_country_modifier = fra_golden_march2_modifier
					add_country_modifier = { 
						name = fra_golden_march3_modifier
						duration = -1 
					}
					balkan_region = { 
						limit = { 
							NOT = { owned_by = ROOT } 
							NOT = { is_core = ROOT }
						}
					}
				}
			}
		}
	}
}

french_missions_4_normal_contiuation = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_london = {
		icon = the_london_steelyard
		required_missions = { fra_navy_mission_calais } 
		position = 11
		provinces_to_highlight = {
			area = home_counties_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			home_counties_area = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
		}
		effect = {
			british_isles_region = {
				limit = { 
					NOT = { is_core = ROOT } 
					NOT = { owned_by = ROOT } 
				}
				add_permanent_claim = ROOT 
			}
			236 = {
				change_province_name = "Domaine Francais" 
				rename_capital = "Londres"
				add_base_tax = 2 
				add_base_production = 2 
				add_base_manpower = 2 
			}
			if = { 
				limit = { has_dlc = "Leviathan" }
				custom_tooltip = fra_raise_londres_tower_tt
			}
			else = { 
				add_power_projection = {
					type = mission_rewards_power_projection
					amount = 20
				}
			}
		}
	}
	
	fra_british_isles = {
		icon = mission_rb_empire 
		required_missions = { fra_london } 
		position = 12
		provinces_to_highlight = {
			region = british_isles_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = british_isles_region 
					value = 30
				}
				SCO = { 
					alliance_with = ROOT 
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = british_isles_region 
						value = 30
					}
				}
				HSC = { 
					alliance_with = ROOT 
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = british_isles_region 
						value = 30
					}
				}
			}
		}
		effect = {
			country_event = { id = flavor_fra.203 }
			custom_tooltip = fra_event_insight_203_tt
		}	
	}
	
	fra_embrace_renaissance = {
		icon = bibliotheca_corviana 
		required_missions = { } 
		position = 14
		trigger = {
			has_institution = renaissance
			stability = 1 
		}
		effect = {
			define_advisor = { 
				name = "Jean Clouet"
				type = artist 
				cost_multiplier = 0.25
				skill = 3 
			}
			custom_tooltip = empty_line_tt
			if = { 
				limit = { 
					has_dlc = "Rights of Man" 
					NOT = { num_of_ruler_traits = { amount = 3 } }
				}				
				add_ruler_personality = patron_of_arts_personality
			}
			else = { add_adm_power = 50 } 
			custom_tooltip = empty_line_tt
			if = {
				limit = {
					has_dlc = "Rule Britannia" 
					has_dlc = "Mandate of Heaven" 
					NOT = { is_year = 1520 }
				}
				capital_scope = { 
					add_province_modifier = {
						name = fra_leonardo_workshop_modifier
						duration = 7300 
					}
				}
			}
		}
	}
	
	fra_nine_universities = {
		icon = appease_the_estates 
		required_missions = { fra_embrace_renaissance } 
		position = 15
		provinces_to_highlight = {
			OR = { 
				province_id = 196
				province_id = 184
				province_id = 200
				province_id = 204
				province_id = 178
				province_id = 201
				province_id = 174
			}
			NOT = {
				OR = { 
					num_of_times_improved = 5 
					has_building = university 
				} 
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = { 
					province_id = 196
					province_id = 184
					province_id = 200
					province_id = 204
					province_id = 178
					province_id = 201
					province_id = 174
				}
				num_of_buildings_in_province = 2 
				OR = { 
					num_of_times_improved = 5 
					has_building = university 
				}
				value = 3
			}
			183 = { owned_by = ROOT num_of_times_improved = 8 } 
		}
		effect = { 
			country_event = { id = flavor_fra.204 } 
			custom_tooltip = fra_event_insight_204_tt
		}
	}
	
	fra_merchant_cooperation = {
		icon = friends_in_high_places 
		required_missions = { fra_movement_centralization fra_trade_fairs } 
		position = 17
		provinces_to_highlight = {
			owned_by = ROOT 
			has_trade_building_trigger = no 
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_trade_building_trigger = yes 
				value = 12
			}
			OR = { 
				full_idea_group = trade_ideas 
				ruler_has_personality = entrepreneur_personality 
				home_trade_node = { highest_value_trade_node = yes } 
				if = { 
					limit = { has_estate = estate_burghers }
					AND = {
						num_of_estate_privileges = { estate = estate_burghers value = 5 } 
						estate_loyalty = { estate = estate_burghers loyalty = 65 }
						num_of_estate_agendas_completed = { estate = estate_burghers value = 10 } 
					}
				}
			}
		}
		effect = {
			if = { 	
				limit = { has_dlc = "Mandate of Heaven" } 
				custom_tooltip = fra_improve_trade_power_state_edict_tt
				set_country_flag = fra_improve_trade_power_state_edict_flag 
			}
			else = { 
				add_country_modifier = {
					name = fra_centralized_commerce_modifier
					duration = 9125 
				}
			}
			define_advisor = {
				name = "Nicolas Fouquet"
				type = treasurer
				cost_multiplier = 0.5
				skill = 2
			}
		}
	}
	
	fra_develop_trade = {
		icon = fra_develop_trade  
		required_missions = { fra_merchant_cooperation } 
		position = 18
		trigger = { 
			has_institution = global_trade
			num_of_light_ship = 100 
			if = { 
				limit = { has_dlc = "Mare Nostrum" } 
				mercantilism = 50
			}
			else = { mercantilism = 35 } 
			OR = { 
				full_idea_group = trade_ideas 
				home_trade_node = {
					trade_share = {
						country = ROOT 
						share = 80 
					}
				}
			}
		}
		effect = {
			custom_tooltip = fra_if_already_had_event_tt
			
			custom_tooltip = fra_colbert_excellent_minister_choice_tt
			tooltip = {
				add_country_modifier = {
					name = fra_cabinet_reforms_modifier
					duration = 9125 
				}
			}
			
			custom_tooltip = fra_colbert_economic_reform_tt
			tooltip = {
				add_country_modifier = {
					name = fra_economic_reforms_modifier
					duration = 9125 
				}
			}
			
			custom_tooltip = fra_colbert_trade_reforms_tt
			tooltip = { 
				add_country_modifier = {
					name = fra_colbert_trade_reforms_modifier
					duration = 9125 
				}
			}
			
			custom_tooltip = fra_colbert_naval_reforms_tt
			tooltip = {
				add_country_modifier = {
					name = fra_colbert_naval_reforms_modifier
					duration = 9125 
				}
			}
			
			custom_tooltip = fra_alternatively_tt 
			tooltip = {
				country_event = { id = flavor_fra.3124 } 
				if = { 
					limit = { 
						NOT = { mercantilism = 90 } 
					}
					add_mercantilism = 10 
				}
				else = { add_dip_power = 150 } 
			}
			
			hidden_effect = {
				if = { 
					limit = { NOT = { has_country_flag = had_colbert } }
					country_event = { id = flavor_fra.3124 }
					if = { 
						limit = { 
							NOT = { mercantilism = 90 } 
						}
						add_mercantilism = 10 
					}
					else = { add_dip_power = 150 } 
				}
				if = { 
					limit = { has_country_flag = fra_colbert_excellent_minister_flag }
					add_country_modifier = {
						name = fra_cabinet_reforms_modifier
						duration = 9125 
					}
				}
				else_if = {
					limit = { has_country_flag = fra_colbert_economic_reform_flag }
					add_country_modifier = {
						name = fra_economic_reforms_modifier
						duration = 9125 
					}
				}
				else_if = {
					limit = { has_country_flag = fra_colbert_trade_reforms_flag }
					add_country_modifier = {
						name = fra_colbert_trade_reforms_modifier
						duration = 9125 
					}
				}
				else_if = {
					limit = { has_country_flag = fra_colbert_naval_reforms_flag }
					add_country_modifier = {
						name = fra_colbert_naval_reforms_modifier
						duration = 9125 
					}
				}
			}
		}
	}
}

french_rev_missions_4 = {
	slot = 4
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		if = { 
			limit = { has_dlc = "Emperor" }
			is_revolution_target = yes 
		}
		else = { is_revolutionary = yes } 
	}
	has_country_shield = yes
	
	fra_enlarge_ports = {
		icon = renaissance_city
		required_missions = { }
		position = 20
		provinces_to_highlight = {
			has_port = yes 
			country_or_non_sovereign_subject_holds = ROOT 
			has_dock_building_trigger = no 
			has_shipyard_building_trigger = no 
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				has_dock_building_trigger = yes 
				has_shipyard_building_trigger = yes 
				value = 40
			}
			development_in_provinces = {
				value = 500 
				has_port = yes 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_increased_naval_capacity_modifier
				duration = 9125
			}
			
			custom_tooltip = fra_coastal_dev_tt
			hidden_effect = {
				france_region = {
					limit = { 
						has_dock_building_trigger = yes 
						has_shipyard_building_trigger = yes 
						owned_by = ROOT 
						has_port = yes 
					}
					add_base_production = 1 
				}
			}
		}
	}
	
	fra_low_countries = {
		icon = the_true_freedom
		required_missions = { fra_enlarge_ports }
		position = 21
		provinces_to_highlight = {
			region = low_countries_region 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			low_countries_region = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			OR = { 
				development_in_provinces = {
					value = 500 
					region = low_countries_region 
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_studying_dutch_naval_conduct_modifier
				duration = 7300
			}
			
			custom_tooltip = fra_1_navy_trad_per_impressment_office_tt
			hidden_effect = {
				every_owned_province = { 
					limit = { has_building = impressment_offices }
					owner = { add_navy_tradition = 1 }
				}
			}		
		}
	}
	
	fra_educational_reforms = {
		icon = fra_educational_reforms
		required_missions = { fra_national_bank }
		position = 23 
		trigger = {
			OR = { 
				num_of_owned_provinces_with = {
					has_building = university 
					value = 100 
				}
				if = { 
					limit = { has_dlc = "Rule Britannia" }
					innovativeness = 90 
				}
				full_idea_group = innovativeness_ideas 
				AND = { 
					ruler_has_personality = scholar_personality 
					monthly_adm = 14 
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_funded_reforms_of_condorcet_modifier
				duration = -1 
			}
		}
	}
}
	
french_missions_5_normal = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_provencal_question = {
		icon = develop_provence 
		required_missions = { } 
		position = 1 
		provinces_to_highlight = { 
			OR = { 
				province_id = 178
				province_id = 2991
				province_id = 201
				province_id = 4696
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			OR = { 
				PRO = { is_subject_of = ROOT } 
				PRO = { 
					alliance_with = ROOT 
					has_opinion = {
						who = ROOT 
						value = 150
					}
					if = { 
						limit = { has_dlc = "Leviathan" }
						trust = { 
							who = ROOT 
							value = 90 
						}
					}
					marriage_with = ROOT 
					is_at_war = no 
				}
				AND = { 
					178 = { country_or_non_sovereign_subject_holds = ROOT } 
					2991 = { country_or_non_sovereign_subject_holds = ROOT }
					201 = { country_or_non_sovereign_subject_holds = ROOT }
					4696 = { country_or_non_sovereign_subject_holds = ROOT }
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_alliance_tt
			tooltip = {
				PRO = { 
					country_event = { id = flavor_fra.106 } 
				}
			}
			custom_tooltip = fra_if_conquest_tt
			tooltip = { 
				add_country_modifier = { 
					name = fra_conquered_the_capetian_house_of_anjou_modifier
					duration = 5475 
				}
				add_prestige = 20 
			}
			custom_tooltip = fra_alternatively_if_pro_already_subject_tt
			tooltip = { 
				change_heir_adm = 1 
				change_heir_dip = 1 
				change_heir_mil = 1 
				add_stability_or_adm_power = yes 
			}
			hidden_effect = { 
				if = { 
					limit = { 
						PRO = { is_subject_of = ROOT } 
					}
					change_heir_adm = 1 
					change_heir_dip = 1 
					change_heir_mil = 1 
					add_stability_or_adm_power = yes 
				}
				else_if = { 
					limit = { 
						PRO = { alliance_with = ROOT } 
					}
					PRO = { 
						country_event = { id = flavor_fra.106 } 
					}
				}
				else = { 
					add_country_modifier = { 
						name = fra_conquered_the_capetian_house_of_anjou_modifier
						duration = 5475 
					}
					add_prestige = 20
				}
			}
		}
	}

	fra_ducal_lands_avignon = { 
		icon = negotiate_for_avignon
		required_missions = { fra_provencal_question }
		position = 2 
		provinces_to_highlight = { 
			province_id = 202 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			OR = {
				AND = { 
					202 = { country_or_non_sovereign_subject_holds = ROOT }
					PAP = { 
						OR = { 
							has_opinion_modifier = {
								who = ROOT
								modifier = scornfully_insulted
							}
							has_opinion_modifier = {
								who = ROOT
								modifier = insulted
							}
						}
					}
				}
				AND = {
					PAP = { 
						alliance_with = ROOT 
						has_opinion = {
							who = ROOT 
							value = 180
						}
					}
					invested_papal_influence = 50 
				}
			}
		}
		effect = {
			custom_tooltip = fra_revolving_missions_based_on_choice
			custom_tooltip = fra_if_align_with_pope_tt 
			tooltip = { 
				add_country_modifier = { 
					name = fra_resurgence_of_crusader_fervor_modifier
					duration = 9125
				}
				palestine_area = {
					limit = { 
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT 
				}
			}
			custom_tooltip = fra_defying_the_pope_tt
			tooltip = { 
				add_country_modifier = { 
					name = fra_italian_wars_modifier
					duration = 7300 
				}
				piedmont_area = { 
					limit = { 
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT 
				}
				liguria_area = {
					limit = { 
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT 
				}
				lombardy_area = {
					limit = { 
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT 
				}
				if = {
					limit = { 
						NAP = { is_subject = no exists = yes } 
					}
					add_casus_belli = {
						target = NAP
						type = cb_vassalize_mission
						months = 180
					}
				}
				else = { 
					naples_area = {
						limit = {
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
							is_empty = no
						}
						add_permanent_claim = ROOT
					}
					calabria_area = {
						limit = {
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
							is_empty = no
						}
						add_permanent_claim = ROOT
					}
					apulia_area = {
						limit = {
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
							is_empty = no
						}
						add_permanent_claim = ROOT
					}
				}
			}
			if = { 
				limit = { 
					PAP = { 
						alliance_with = ROOT 
						has_opinion = {
							who = ROOT 
							value = 180
						}
					}
					invested_papal_influence = 50 
				}
				set_country_flag = fra_papal_lap_dop_flag 
			}
			else = { set_country_flag = fra_chose_to_piss_off_pope_flag }
			hidden_effect = { 
				if = { 
					limit = { 
						202 = { country_or_non_sovereign_subject_holds = ROOT } 
						PAP = {
							OR = { 
								has_opinion_modifier = {
									who = ROOT
									modifier = scornfully_insulted
								}
								has_opinion_modifier = {
									who = ROOT
									modifier = insulted
								}
							}
						}
					}
					add_country_modifier = { 
						name = fra_italian_wars_modifier
						duration = 7300 
					}
					piedmont_area = { 
						limit = { 
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
						}
						add_permanent_claim = ROOT 
					}
					liguria_area = {
						limit = { 
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
						}
						add_permanent_claim = ROOT 
					}
					lombardy_area = {
						limit = { 
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
						}
						add_permanent_claim = ROOT 
					}
					if = {
						limit = {
							exists = NAP
						}
						add_casus_belli = {
							target = NAP
							type = cb_vassalize_mission
							months = 180
						}
					}
					else = { 
						naples_area = {
							limit = {
								NOT = { owned_by = ROOT }
								NOT = { is_core = ROOT }
								is_empty = no
							}
							add_permanent_claim = ROOT
						}
						calabria_area = {
							limit = {
								NOT = { owned_by = ROOT }
								NOT = { is_core = ROOT }
								is_empty = no
							}
							add_permanent_claim = ROOT
						}
						apulia_area = {
							limit = {
								NOT = { owned_by = ROOT }
								NOT = { is_core = ROOT }
								is_empty = no
							}
							add_permanent_claim = ROOT
						}
					}
				}
				else_if = {
					limit = {
						PAP = { 
							alliance_with = ROOT 
							has_opinion = {
								who = ROOT 
								value = 180
							}
						}
					}
					add_country_modifier = { 
						name = fra_resurgence_of_crusader_fervor_modifier
						duration = 9125
					}
					palestine_area = {
						limit = { 
							NOT = { owned_by = ROOT }
							NOT = { is_core = ROOT }
						}
						add_permanent_claim = ROOT 
					}
					set_country_flag = gain_25_random_pp_and_10_pi_per_bull_flag
				}
			}
			swap_non_generic_missions = yes 
		}
	}
}	

french_missions_5_branching = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = fra_chose_to_piss_off_pope_flag } 
		NOT = { has_country_flag = fra_papal_lap_dop_flag }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_branch_mission_5_3 = { 
		icon = mission_unknown_mission
		required_missions = { fra_ducal_lands_avignon }
		position = 3 
		trigger = { 
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
		}
		effect = { 
			custom_tooltip = fra_if_align_pope_piglrimage_jerusalem_tt
			custom_tooltip = fra_if_defy_pope_milanese_succession_tt
		}
	}
}

french_missions_5_italian = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_chose_to_piss_off_pope_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_milanese_succession = { 
		icon = milan_victorious
		required_missions = { fra_ducal_lands_avignon } 
		position = 3 
		provinces_to_highlight = { 
			area = lombardy_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			OR = { 	
				MLO = { is_subject_of = ROOT } 
				lombardy_area = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
			}
		}
		effect = { 
			country_event = { id = flavor_fra.109 } 
		}
	}
}

french_missions_5_crusader_kings = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_country_flag = fra_papal_lap_dop_flag
		has_dlc = "Domination"
	}
	has_country_shield = yes

	fra_pilgrimage_jerusalem = { 
		icon = levantine_missions
		required_missions = { fra_ducal_lands_avignon } 
		position = 3 
		provinces_to_highlight = { 
			area = palestine_area 
			NOT = { 
				OR = { 
					country_or_non_sovereign_subject_holds = ROOT 
					religion = catholic 
				}
			}
		}
		trigger = { 
			not_in_mission_preview_mode = { key = FRA }
			palestine_area = { 
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
				religion = catholic 
			}
			if = { 
				limit = { has_dlc = "Leviathan" } 
				379 = { 
					has_great_project = { 
						type = holy_city_jerusalem
						tier = 3 
					}
				}
			}
			else = { 
				379 = { development = 25 } 
			}
			379 = { has_tax_building_trigger = yes } 
		}
		effect = { 
			country_event = { id = flavor_fra.205 }
			custom_tooltip = fra_event_insight_205_tt
			
			if = {
				limit = { 
					is_defender_of_faith_of_tier = 5 
				}
				add_country_modifier = {
					name = fra_sword_of_christianity_modifier
					duration = -1 
				}
			}
			else_if = {
				limit = { 
					is_defender_of_faith_of_tier = 4 
				}
				add_country_modifier = {
					name = fra_sword_of_christianity_modifier2
					duration = -1 
				}
			}
			else_if = {
				limit = { 
					is_defender_of_faith_of_tier = 3 
				}
				add_country_modifier = {
					name = fra_sword_of_christianity_modifier3
					duration = 9125 
				}
			}
			else_if = {
				limit = { 
					is_defender_of_faith_of_tier = 2 
				}
				add_country_modifier = {
					name = fra_sword_of_christianity_modifier4
					duration = 9125 
				}
			}
			else_if = {
				limit = { 
					is_defender_of_faith_of_tier = 1
				}
				add_country_modifier = {
					name = fra_sword_of_christianity_modifier5
					duration = 9125 
				}
			}
			else_if = {
				limit = { 
					has_dlc = "Emperor" 
					religion = catholic 
				}
				custom_tooltip = fra_scaling_dotf_reward_tt
			}	
		}
	}
}

french_missions_5_continuation_normal_1 = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_restore_signoria = {
		icon = fra_restore_signoria
		required_missions = { fra_secure_alpine_pass } 
		position = 6 
		provinces_to_highlight = { 
			area = liguria_area 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				liguria_area = { 
					type = all 
					OR = { 
						country_or_non_sovereign_subject_holds = ROOT 
						country_or_non_sovereign_subject_holds = PAP 
					}
				}
			}
			else = { 
				liguria_area = { 
					type = all 
					country_or_non_sovereign_subject_holds = ROOT 
				}
			}
		}
		effect = { 
			custom_tooltip = fra_if_lapdog_reward_tt
			tooltip = {
				liguria_area = { 
					limit = { country_or_non_sovereign_subject_holds = ROOT } 
					remove_core = ROOT 
					add_core = PAP 
					cede_province = PAP 
				}
				1298 = { 
					add_trade_modifier = {
						who = ROOT
						duration = 9125
						power = 50
						key = FRA_FRENCH_PRESENCE_GENOA_KEY
					}
				}
				add_mercantilism = 5
			}
			custom_tooltip = fra_defying_the_pope_tt
			tooltip = { 
				country_event = { id = flavor_fra.119 }
			}
			hidden_effect = {
				if = { 
					limit = { has_country_flag = fra_papal_lap_dop_flag }
					liguria_area = { 
						limit = { country_or_non_sovereign_subject_holds = ROOT } 
						remove_core = ROOT 
						add_core = PAP 
						cede_province = PAP 
					}
					1298 = { 
						add_trade_modifier = {
							who = ROOT
							duration = 9125
							power = 50
							key = FRA_FRENCH_PRESENCE_GENOA_KEY
						}
					}
					add_mercantilism = 5
				}
				else = { 
					country_event = { id = flavor_fra.119 }
				}
			}
		}
	}
	
	fra_secure_genoan_trade = { 	
		icon = the_shape_of_trades_to_come
		required_missions = { fra_restore_signoria }
		position = 8
		provinces_to_highlight = {
			if = { 
				limit = { FRA = { has_country_flag = fra_papal_lap_dop_flag } }
				same_trade_node_as = 1298 
				province_has_center_of_trade_of_level = 1
				OR = { 	
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = { country_or_non_sovereign_subject_holds = PAP }
				}
			}
			else = {
				province_id = 1298 
			}
		}
		trigger = {
			if = { 
				limit = { has_country_flag = fra_papal_lap_dop_flag } 
				calc_true_if = {
					all_province = {
						province_has_center_of_trade_of_level = 1 
						same_trade_node_as = 1298 
						OR = { 	
							country_or_non_sovereign_subject_holds = ROOT 
							country_or_non_sovereign_subject_holds = PAP 
						}
					}
					amount = 8
				}
			}
			else_if = {
				limit = { ai = no }
				1298 = {
					trade_share = {
						country = ROOT
						share = 75
					}
				}
			}
			else_if = {
				limit = { ai = yes }
				1298 = {
					trade_share = {
						country = ROOT
						share = 50
					}
				}
			}
		}
		effect = { 
			101 = { 
				add_province_modifier = { 
					name = fra_banca_carige_modifier
					duration = 9125
				}
			}
			if = { 
				limit = { has_estate = estate_burghers } 
				set_country_flag = fra_enable_italian_bookkeeping_privilege_flag
				if = {
					limit = {
						has_dlc = "Emperor"
					}
					custom_tooltip = fra_enable_italian_bookkeeping_privilege_tt
				}
				add_estate_loyalty = { 
					estate = estate_burghers 
					loyalty = 15
				}
			}
			add_mercantilism = 3
		}
	}
}

fra_missions_5_continuation = { 
	slot = 5
	generic = no 
	ai = yes 
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
	}
	has_country_shield = yes
	
	fra_navy_mission_calais = {
		icon = defeat_the_english 
		required_missions = { } 
		position = 10
		provinces_to_highlight = {
			province_id = 87 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = { 
			87 = { country_or_non_sovereign_subject_holds = ROOT } 
			if = {
				limit = { ai = no }
				navy_size_percentage = 0.8
				heavy_ship_fraction = 0.2
			}
			else = {
				navy_size_percentage = 0.5
				navy_size = 15 # modified
			}
		}
		effect = {
			87 = { 
				if = { 
					limit = { has_building = shipyard } 
					remove_building = shipyard
					add_building = grand_shipyard
				}
				else_if = { 
					limit = { has_building = grand_shipyard } 
					add_base_production = 2 
				}
				else = { custom_tooltip = fra_upgrade_shipyard_tt } 
			}
			
			custom_tooltip = fra_enable_staple_port_decision_tt
			set_country_flag = enable_staple_port_flag 
			
			custom_tooltip = fra_claim_coastal_dutch_provinces_tt
			hidden_effect = { 
				low_countries_region = {
					limit = { 
						has_port = yes 
						NOT = { country_or_non_sovereign_subject_holds = ROOT }
						NOT = { is_core = ROOT } 
					} 
					add_permanent_claim = ROOT 
				}
			}
			home_counties_area = {
				limit = { 
					NOT = { is_core = ROOT } 
					NOT = { owned_by = ROOT } 
				}
				add_permanent_claim = ROOT 
			}
		}
	}
	
	fra_auld_alliance = {
		icon = the_auld_alliance 
		required_missions = { fra_navy_mission_calais } 
		position = 11
		provinces_to_highlight = {
			area = lowlands_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			if = { 
				limit = { 
					SCO = { 
						exists = yes 
						is_subject = no 
						NOT = { is_rival = ROOT } 
						NOT = { is_enemy = ROOT } 
					}
				}
				OR = { 
					SCO = { 
						is_subject_of = ROOT 
						NOT = { liberty_desire = 10 }
					}
					SCO = { 
						alliance_with = ROOT 
						has_opinion = { 
							who = ROOT 
							value = 150 
						}
						if = { 
							limit = { has_dlc = "Leviathan" }
							trust = { 
								who = ROOT 
								value = 55
							}
						}
					}
					lowlands_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
				}
			}
			else_if = { 
				limit = { 
					HSC = { 
						exists = yes 
						is_subject = no 
						NOT = { is_rival = ROOT } 
						NOT = { is_enemy = ROOT } 
					}
				}
				OR = { 
					HSC = { 
						is_subject_of = ROOT 
						NOT = { liberty_desire = 10 }
					}
					HSC = { 
						alliance_with = ROOT 
						has_opinion = { 
							who = ROOT 
							value = 150 
						}
						if = { 
							limit = { has_dlc = "Leviathan" }
							trust = { 
								who = ROOT 
								value = 50 
							}
						}
					}
					lowlands_area = {
						type = all 
						country_or_non_sovereign_subject_holds = ROOT 
					}
				}
			}	
			else = { 
				lowlands_area = {
					type = all 
					country_or_non_sovereign_subject_holds = ROOT
				}
			}
		}
		effect = {
			custom_tooltip = fra_relations_with_sco_hsc_tt
			tooltip = {
				if = { 
					limit = { SCO = { exists = yes } } 
					add_historical_friend = SCO 
					SCO = { 
						add_historical_friend = ROOT 
						add_country_modifier = {
							name = fra_support_of_the_french_crown_modifier
							duration = 5475 
						}
					}
				}
				else = { 
					add_historical_friend = HSC 
					HSC = { 
						add_historical_friend = ROOT 
						add_country_modifier = {
							name = fra_support_of_the_french_crown_modifier
							duration = 5475 
						}
					}
				}
			}
			
			custom_tooltip = fra_alternatively_tt
			tooltip = {  
				248 = { 
					if = {
						limit = { has_dlc = "Leviathan" }
						add_great_project_tier = {
							type = edinburgh_castle
							tier = 1 
						}
					}
					add_base_manpower = 3
					add_local_autonomy = -25
				}
			}
			hidden_effect = {
				if = { 
					limit = { 
						OR = { 
							HSC = { 
								is_subject_of = ROOT 
								NOT = { liberty_desire = 10 }
							}
							HSC = { 
								alliance_with = ROOT 
								has_opinion = { 
									who = ROOT 
									value = 150 
								}
								if = { 
									limit = { has_dlc = "Leviathan" }
									trust = { 
										who = ROOT 
										value = 50 
									}
								}
							}
						}
					}
					add_historical_friend = HSC 
					HSC = { 
						add_historical_friend = ROOT 
						add_country_modifier = {
							name = fra_support_of_the_french_crown_modifier
							duration = 5475 
						}
					}
				}
				else_if = {
					limit = { 
						OR = { 
							SCO = { 
								is_subject_of = ROOT 
								NOT = { liberty_desire = 10 }
							}
							SCO = { 
								alliance_with = ROOT 
								has_opinion = { 
									who = ROOT 
									value = 150 
								}
								if = { 
									limit = { has_dlc = "Leviathan" }
									trust = { 
										who = ROOT 
										value = 50 
									}
								}
							}
						}
					}
					add_historical_friend = SCO 
					SCO = { 
						add_historical_friend = ROOT 
						add_country_modifier = {
							name = fra_support_of_the_french_crown_modifier
							duration = 5475 
						}
					}
				}
				else = {
					248 = { 
						add_great_project_tier = { 
							type = edinburgh_castle
							tier = 1 
						}
						add_base_manpower = 3
						add_local_autonomy = -25 
					}
				}
			}	
		}
	}
	
	fra_rule_britannia = {
		icon = mission_launch_a_flagship 
		required_missions = { fra_british_isles fra_auld_alliance } 
		position = 13		
		trigger = {
			custom_trigger_tooltip = {
				tooltip = fra_strongest_eu_navy
				NOT = { 
					any_known_country = {
						capital_scope = { continent = europe } 
						navy_size = ROOT 
						num_of_heavy_ship = ROOT 
					}
				}
			}
			if = {
				limit = { has_dlc = "Rule Britannia" }
				has_naval_doctrine = any
			}
			if = { 
				limit = { has_dlc = "Emperor" }
				OR = { 
					is_hegemon_of_type = naval_hegemon
					num_of_heavy_ship = 150
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_france_rules_the_waves_modifier
				duration = -1 
			}
		}
	}
	
	fra_connect_provinces = {
		icon = mission_expand_into_the_forest 
		required_missions = { } 
		position = 14
		provinces_to_highlight = {
			region = france_region 
			country_or_non_sovereign_subject_holds = ROOT 
			OR = { 
				NOT = { num_of_times_improved = 2 }
				NOT = { num_of_buildings_in_province = 1 }			
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				region = france_region 
				OR = {
					num_of_times_improved = 2
					num_of_buildings_in_province = 1 
				}
				value = 8 
			}
			NOT = { average_autonomy_above_min = 10 } 
		}
		effect = { 
			if = { 
				limit = { has_dlc = "Mandate of Heaven" }
				set_country_flag = fra_enable_infrastructure_network_flag
				custom_tooltip = fra_enable_infrastructure_network_tt
			}
			else = { 
				add_country_modifier = {
					name = fra_provincial_road_system
					duration = 9125 
				}
			}
			custom_tooltip = fra_develop_urban_centers
			tooltip = {
				add_province_modifier = { 
					name = fra_developing_urban_center_modifier
					duration = 5475
				}
			}
			hidden_effect = {
				every_province = {
					limit = { 
						development = 25 
						country_or_non_sovereign_subject_holds = ROOT 
						region = france_region 
					}
					add_province_modifier = { 
						name = fra_developing_urban_center_modifier
						duration = 5475
					}
				}
			}
		}
	}
	
	fra_renaissance_architecture = {
		icon = found_batavia 
		required_missions = { fra_connect_provinces fra_embrace_renaissance } 
		position = 15
		provinces_to_highlight = {
			owned_by = ROOT 
			has_tax_building_trigger = no 
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_tax_building_trigger = yes 
				value = 12
			}
			OR = { 
				if = { 
					limit = { has_dlc = "Rule Britannia" }
					innovativeness = 20
				}
				prestige = 50 
				stability = 3 
				full_idea_group = innovativeness_ideas 
			}
			if = {
				limit = { 
					has_dlc = "Leviathan" 
					202 = { country_or_non_sovereign_subject_holds = ROOT } 
				}
				202 = {
					OR = { 
						has_great_project = {
							type = palace_of_the_popes
							tier = 1 
						}
						has_great_project = {
							type = palace_of_the_popes
							tier = 2
						}
						has_great_project = {
							type = palace_of_the_popes
							tier = 3 
						}
					}
				}
			}
		}	
		effect = {
			if = {
				limit = { has_dlc = "Mandate of Heaven" } 
				add_splendor = 200 
			}
			add_prestige_or_monarch_power = { amount = 25 } 
			if = {  
				limit = { 
					202 = { 
						country_or_non_sovereign_subject_holds = ROOT 
						has_great_project = {
							type = palace_of_the_popes
							tier = 1 
						}
					}
				}
				202 = { 
					add_great_project_tier = { 
						type = palace_of_the_popes
						tier = 1 
					}
				}
			}
		}
	}
	
	fra_trade_fairs = {
		icon = ansbach_succession 
		required_missions = { fra_renaissance_architecture } 
		position = 16
		provinces_to_highlight = {
			owned_by = ROOT 
			has_trade_building_trigger = no 
			OR = {
				AND = { 
					province_has_center_of_trade_of_level = 1 
					NOT = { province_has_center_of_trade_of_level = 2 }
				}
				NOT = { development = 25 }
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_trade_building_trigger = yes 
				OR = { 
					province_has_center_of_trade_of_level = 2 
					development = 25
				}
				value = 6
			}
			if = {
				limit = { 
					has_dlc = "Mandate of Heaven" 
					has_country_flag = fra_enable_infrastructure_network_flag
				} 
				num_of_owned_provinces_with = {
					has_state_edict = french_infrastructure_network
					value = 10
				}
			}
		}
		effect = { 
			add_country_modifier = {
				name = fra_trade_fair_prosperity_modifier
				duration = 3650 
			}
		}
	}
	
	fra_toulon_dockyards = {
		icon = toulon_dockyards 
		required_missions = { fra_trade_fairs } 
		position = 18
		provinces_to_highlight = {
			province_id = 4696
		}
		trigger = {
			4696 = {
				has_dock_building_trigger = yes 
				has_shipyard_building_trigger = yes 
				base_production = 12 
			}
		}
		effect = {
			custom_tooltip = fra_every_coastal_with_dock_shipyard_gets_tt
			tooltip = {
				add_base_production = 1 
				add_province_modifier = {
					name = fra_french_dockyard_industry_modifier
					duration = -1 
				}
			}
			custom_tooltip = fra_alternatively_tt 
			tooltip = {
				4696 = {
					add_base_production = 3
					add_province_modifier = {
						name = fra_toulon_dockyards_modifier
						duration = -1 
					}
				}
			}
			hidden_effect = {
				if = { 
					limit = { 
						OR = { 
							full_idea_group = naval_ideas 
							full_idea_group = maritime_ideas 
						}
					}
					every_owned_province = {
						limit = { 
							has_port = yes 
							has_dock_building_trigger = yes 
							has_shipyard_building_trigger = yes 
						}
						add_base_production = 1 
						add_province_modifier = {
							name = fra_french_dockyard_industry_modifier
							duration = -1 
						}
					}
				}
				else = {
					4696 = {
						add_base_production = 3
						add_province_modifier = {
							name = fra_toulon_dockyards_modifier
							duration = -1 
						}
					}
				}
			}
		}
	}
}
	
french_rev_missions_5 = {
	slot = 5
	generic = no
	ai = yes
	
	potential = {
		tag = FRA
		NOT = { map_setup = map_setup_random }
		has_dlc = "Domination"
		if = { 
			limit = { has_dlc = "Emperor" }
			is_revolution_target = yes 
		}
		else = { is_revolutionary = yes } 
	}
	has_country_shield = yes	
	
	fra_road_connectivity = {
		icon = claim_the_borderlands
		required_missions = { }
		position = 20
		provinces_to_highlight = {
			owned_by = ROOT 
			OR = { 
				NOT = { development = 25 }
				devastation = 1
				NOT = { num_of_buildings_in_province = 3 } 
			}
		}	
		trigger = {
			if = { 
				limit = { has_dlc = "Mandate of Heaven" } 
				mission_completed = fra_connect_provinces 
				num_of_owned_provinces_with = {
					development = 25 
					NOT = { devastation = 1 } 
					num_of_buildings_in_province = 3
					has_state_edict = french_infrastructure_network
					value = 20 
				}
			}
			else = {
				num_of_owned_provinces_with = {
					development = 25  
					num_of_buildings_in_province = 3
					value = 20
				}
			}
		}
		effect = {
			custom_tooltip = fra_every_province_gets_random_dev_tt
			hidden_effect = {
				if = { 
					limit = { has_dlc = "Mandate of Heaven" }
					
					every_owned_province = {
						limit = { 
							development = 25 
							NOT = { devastation = 1 } 
							num_of_buildings_in_province = 3
							has_state_edict = french_infrastructure_network
						}
						random_list = {
							10 = { add_base_tax = 1 } 
							12 = { add_base_production = 1 } 
							12 = { add_base_manpower = 1 }
						}
					}
				}
				else = { 
					every_owned_province = {
						limit = { 
							development = 25 
							NOT = { devastation = 1 } 
							num_of_buildings_in_province = 3
							
						}
						random_list = {
							10 = { add_base_tax = 1 } 
							12 = { add_base_production = 1 } 
							12 = { add_base_manpower = 1 }
						}
					}
				}
			}
		}
	}
	
	fra_napoleonic_navy = {
		icon = fra_napoleonic_navy
		required_missions = { fra_road_connectivity }
		position = 21
		trigger = {
			num_of_heavy_ship = 100
			num_of_admirals = 3 
			navy_size_percentage = 0.9
			if = { 
				limit = { has_dlc = "Golden Century" } 
				has_flagship = yes 
			}
		}
		effect = {
			add_country_modifier = {
				name = fra_naval_due_diligence_modifier
				duration = -1 
			}
		}
	}
	
	fra_great_britain = {
		icon = fra_great_britain
		required_missions = { fra_low_countries fra_napoleonic_navy }
		position = 22 
		provinces_to_highlight = {
			region = british_isles_region
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { culture = ROOT } 
			}
		}
		trigger = {
			british_isles_region = {
				type = all 
				country_or_non_sovereign_subject_holds = ROOT 
			}
			OR = { 
				british_isles_region = {
					type = all 
					OR = {
						NOT = { owned_by = ROOT } 
						culture = ROOT 
					}
				}
				is_hegemon_of_type = naval_hegemon 
				full_idea_group = naval_ideas 
				full_idea_group = maritime_ideas 
			}
			navy_size = 250 # modified
		}
		effect = {
			add_country_modifier = {
				name = fra_french_naval_dominance_modifier
				duration = -1 
			}
		}
	}
	
	fra_trade_hegemony = {
		icon = mission_rb_grow_the_channel
		required_missions = { fra_national_bank fra_great_britain }
		position = 23 
		trigger = {
			1269 = { #Channel
				trade_node_value = 1000
			}
			full_idea_group = trade_ideas 
			num_of_light_ship = 200 
		}
		effect = {
			add_country_modifier = {
				name = fra_trade_hegemony_modifier
				duration = -1 
			}
		}
	}
}
	
	
	
	
	