funanese_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = FUN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	fun_funanese_ships_mission = {
		icon = mission_polynesian_navy_build
		required_missions = {  }
		position = 1
		trigger = {
			navy_size_percentage = 1.0
			num_of_light_ship = 5
			num_of_admirals = 1
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.1
			}
		}
	}
	fun_ambassadors_to_china_mission = {
		icon = mission_chinese_warlords_alliance
		required_missions = { fun_funanese_ships_mission }
		position = 3
		trigger = {
			any_country = {
				OR = {
					is_emperor_of_china = ROOT
					custom_trigger_tooltip = {
						tooltip = fun_ambassadors_to_china_mission.tt
						capital_scope = {
							superregion = china_superregion
						}
					}
				}
				OR = {
					trust = { 
						who = ROOT
						value = 60
					}
					has_opinion = {
						who = ROOT
						value = 100
					}
				}
			}
		}
		effect = {
			tooltip = {
				add_dip_power = 50
			}
			country_event = {
				id = mmetr_FUN_mission_events.2
			}
		}
	}
	fun_monopolize_the_gulf_mission = {
		icon = mission_cromandel_coast
		required_missions = { fun_warriors_of_the_moon_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 1365	#Gulf of Siam trade node
					NOT = {
						trade_share = {
							country = ROOT
							share = 50
						}
					}
				}
			}
			has_discovered = ROOT
		}
		trigger = {
			1365 = {
				trade_share = {
					country = ROOT
					share = 50
				}
			}
		}
		effect = {
			add_mercantilism = 2
			add_country_modifier = {
				name = "me_fun_isthmus_trading_ports"
				duration = 10950
			}
		}
	}
	fun_great_king_of_funan_mission = {
		icon = mission_mnd_khm_resurgence
		required_missions = { fun_monopolize_the_gulf_mission fun_vassals_of_chenla_mission }
		position = 6
		trigger = {
			custom_trigger_tooltip = {
				tooltip = fun_great_king_of_funan_mission.tt
				calc_true_if = {
					all_subject_country = {
						has_opinion = {
							who = ROOT
							value = 150
						}
					}
					amount = 2
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.10
			}
			tooltip = {
				add_country_modifier = {
					name = "me_fun_great_king_of_funan"
					duration = 10950
				}
				north_malaya_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
						is_empty = no
					}
					add_permanent_claim = ROOT
				}
				malaya_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
						is_empty = no
					}
					add_permanent_claim = ROOT
				}
				malacca_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
						is_empty = no
					}
					add_permanent_claim = ROOT
				}
				johor_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
						is_empty = no
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	fun_compete_with_melayu_mission = {
		icon = mission_mnd_maj_gaja_madas_oath
		required_missions = { fun_great_king_of_funan_mission }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = north_malaya_area
				area = malaya_area
				area = malacca_area
				area = johor_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			north_malaya_area = {
				type = all
				custom_trigger_tooltip = {
					tooltip = fun_compete_with_melayu_mission.tt
					OR = {
						country_or_non_sovereign_subject_holds = ROOT
						is_empty = yes
					}
				}
			}
			malaya_area = {
				type = all
				custom_trigger_tooltip = {
					tooltip = fun_compete_with_melayu_mission.tt
					OR = {
						country_or_non_sovereign_subject_holds = ROOT
						is_empty = yes
					}
				}
			}
			malacca_area = {
				type = all
				custom_trigger_tooltip = {
					tooltip = fun_compete_with_melayu_mission.tt
					OR = {
						country_or_non_sovereign_subject_holds = ROOT
						is_empty = yes
					}
				}
			}
			johor_area = {
				type = all
				custom_trigger_tooltip = {
					tooltip = fun_compete_with_melayu_mission.tt
					OR = {
						country_or_non_sovereign_subject_holds = ROOT
						is_empty = yes
					}
				}
			}
			OR = {
				overlord_of = CTU		#Chi Tu
				NOT = { exists = CTU }
			}
		}
		effect = {
			custom_tooltip = fun_compete_with_melayu_mission.tt2
			country_event = {
				id = mmetr_FUN_mission_events.11
			}
			add_country_modifier = {
				name = "me_fun_ports_of_malaya"
				duration = -1
			}
		}
	}
	fun_control_the_spice_trade_mission = {
		icon = mission_dominate_persian_gulf
		required_missions = { fun_compete_with_melayu_mission }
		position = 10
		provinces_to_highlight = {
			province_id = 1361	#Strait of Malacca
			NOT = {
				is_strongest_trade_power = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			1361 =  {
				is_strongest_trade_power = ROOT
			}
			any_owned_province = {
				trade_goods = spices
				base_production = 7
			}
		}
		effect = {
			add_mercantilism = 2
			add_dip_power = 50
			add_country_modifier = {
				name = "me_fun_spice_flows_through_funan"
				duration = 10950
			}
		}
	}
}

funanese_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = FUN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	fun_merchants_of_funan_mission = {
		icon = mission_the_chola_campaigns
		required_missions = {  }
		position = 1
		trigger = {
			num_of_estate_agendas_completed = {
				estate = estate_burghers
				value = 4
			}
			any_owned_province = {
				province_has_center_of_trade_of_level = 1
			}
		}
		effect = {
			define_advisor = {
				type = trader
				skill = 2
				discount = yes
			}
			add_country_modifier = {
				name = "me_fun_funanese_markets"
				duration = 10950
			}
		}
	}
	fun_thriving_trade_cities_mission = {
		icon = mission_mnd_khm_avenge_angkor
		required_missions = { fun_merchants_of_funan_mission fun_develop_vyadhapura_mission }
		position = 2
		trigger = {
			num_of_owned_provinces_with = {
				value = 3
				province_has_center_of_trade_of_level = 1
			}
			num_of_owned_provinces_with = {
				value = 3
				has_port = yes
				development = 12
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_funan_canal_system"
				duration = 10950
			}
		}
	}
	fun_expand_the_archives_mission = {
		icon = mission_chu_shi_biao
		required_missions = { fun_thriving_trade_cities_mission fun_ambassadors_to_china_mission }
		position = 4
		trigger = {
			OR = {
				has_institution = ancient_imperialism
				has_institution = caste_system
			}
			OR = {
				full_idea_group = early_adm_ideas
				full_idea_group = early_religious_ideas
				full_idea_group = early_dip_ideas
				full_idea_group = early_trade_ideas
				full_idea_group = early_mil_ideas
				full_idea_group = early_defensive_ideas
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_royal_archives"
				duration = 10950
			}
		}
	}
	fun_vassals_of_chenla_mission = {
		icon = mission_mnd_khm_city_of_temples
		required_missions = { fun_warriors_of_the_moon_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = angkor_area
				area = khorat_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			angkor_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			khorat_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			OR = {
				overlord_of = CNA	#Chenla
				NOT = { exists = CNA }
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.6
			}
			custom_tooltip = fun_vassals_of_chenla_mission.tt
			add_country_modifier = {
				name = "me_fun_king_of_the_mountain"
				duration = 10950
			}
		}
	}
	fun_indian_diplomacy_mission = {
		icon = mission_rule_the_garjats
		required_missions = { fun_vassals_of_chenla_mission }
		position = 8
		trigger = {
			any_country = {
				custom_trigger_tooltip = {
					tooltip = fun_indian_diplomacy_mission.tt
					OR = {
						is_subject_of = ROOT
						alliance_with = ROOT
					}
				}
				has_opinion = {
					who = ROOT
					value = 120
				}
				custom_trigger_tooltip = {
					tooltip = fun_indian_diplomacy_mission.tt2
					capital_scope = {
						superregion = india_superregion
					}
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.17
			}
			tooltip = {
				add_country_modifier = {
					name = "me_fun_indian_horses_gifted"
					duration = 9125
				}
			}
		}
	}
	fun_king_of_suvarnabhumi_mission = {
		icon = mission_entrepot_of_india
		required_missions = { fun_indian_diplomacy_mission fun_compete_with_melayu_mission }
		position = 8
		trigger = {
			treasury = 2000
			share_of_starting_income = 1.5
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_land_of_gold"
				duration = 10950
			}
		}
	}
	fun_lord_of_the_andhras_mission = {
		icon = mission_invade_maharashtra
		required_missions = { fun_union_with_kalinga_mission }
		position = 11
		provinces_to_highlight = {
			area = andhra_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			andhra_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			add_country_modifier = {
				name = "me_fun_bay_of_bengal_monopoly"
				duration = 10950
			}
		}
	}
}

funanese_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = FUN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	fun_develop_vyadhapura_mission = {
		icon = mission_angkor_wat
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
			province_id = 2380 # Vyadhapura
			OR = {
				NOT = {
					num_of_times_improved_by_owner = 5
				}
				NOT = {
					is_capital_of = ROOT
				}
			}
			has_discovered = ROOT
		}
		trigger = {
			capital = 2380
			2380 = {
				num_of_times_improved_by_owner = 5
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.7
			}
			tooltip = {
				add_prestige = 10
				2380 = {
					add_province_modifier = {
						name = "me_fun_golden_dragon_throne"
						duration = -1
					}
				}
			}
		}
	}
	fun_appease_the_nobles_mission = {
		icon = mission_prosperity_in_bengal
		required_missions = { fun_develop_vyadhapura_mission }
		position = 3
		trigger = {
			num_of_estate_agendas_completed = {
				estate = estate_nobles
				value = 4
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_loyal_warriors"
				duration = 9125
			}
		}
	}
	fun_warriors_of_the_moon_mission = {
		icon = mission_follow_the_brahmaputra
		required_missions = {  }
		position = 4
		trigger = {
			army_size_percentage = 1
			manpower_percentage = 0.5
			num_of_generals = 1
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.4
			}
			tooltip = {
				add_country_modifier = {
					name = "me_fun_army_of_the_moon"
					duration = 7300
				}
				mekong_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				khorat_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				angkor_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				cambodia_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				central_thai_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	fun_cities_of_the_lawa_mission = {
		icon = mission_restore_pagodas
		required_missions = { fun_vassals_of_chenla_mission fun_hegemonize_the_mon_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				area = sukhothai_area
				area = northern_thai_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			sukhothai_area = {
				type = all
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					is_empty = yes
				}
			}
			northern_thai_area = {
				type = all
				OR = {
					country_or_non_sovereign_subject_holds = ROOT
					is_empty = yes
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.9
			}
			tooltip = {
				add_accepted_culture = mon
				custom_tooltip = fun_cities_of_the_lawa_mission.tt
				add_country_modifier = {
					name = "me_fun_mon_buddhists"
					duration = 7300
				}
			}
		}
	}
	fun_subjugate_the_pyu_mission = {
		icon = mission_restore_the_pagan_kingdom
		required_missions = { fun_cities_of_the_lawa_mission fun_conquer_sudhammapura_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = central_burma_area
				area = upper_burma_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			central_burma_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			upper_burma_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_great_king_of_many_cities"
				duration = 10950
			}
		}
	}
	fun_kings_of_vanga_mission = {
		icon = mission_the_tiger_triumphant
		required_missions = { fun_subjugate_the_pyu_mission fun_indian_diplomacy_mission fun_march_to_arakan_mission }
		position = 9
		provinces_to_highlight = {
			OR = {
				area = east_bengal_area
				area = west_bengal_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			east_bengal_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			west_bengal_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.12
			}
			tooltip = {
				add_country_modifier = {
					name = "me_fun_maharaja_of_vanga"
					duration = -1
				}
				orissa_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	fun_union_with_kalinga_mission = {
		icon = mission_conquer_orissa_mug
		required_missions = { fun_kings_of_vanga_mission }
		position = 10
		provinces_to_highlight = {
			area = orissa_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			orissa_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.13
			}
			tooltip = {
				add_prestige = 25
				add_navy_tradition = 20
				add_country_modifier = {
					name = "me_fun_brahmin_of_kalinga"
					duration = -1
				}
			}
		}
	}
}

funanese_missions_4 = {
	slot = 4
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = FUN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	fun_hindu_temples_mission = {
		icon = mission_mnd_khm_restore_angkor
		required_missions = { fun_develop_vyadhapura_mission fun_invite_the_brahmin_mission }
		position = 2
		trigger = {
			religion_group = dharmic
			num_of_owned_provinces_with = {
				value = 15
				OR = {
					has_building = glorious_monument
					has_building = temple
					has_building = cathedral
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_temples_to_the_gods"
				duration = 10950
			}
		}
	}
	fun_dharmic_unity_mission = {
		icon = mission_patronize_local_gods
		required_missions = { fun_hindu_temples_mission }
		position = 3
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_owner_religion = yes }
		}
		trigger = {
			religious_unity = 1.00
			grown_by_states = 5
			OR = {
				religion_group = dharmic
				religion_group = buddhic
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_devaraja"
				duration = -1
			}
		}
	}
	fun_hegemonize_the_mon_mission = {
		icon = mission_upper_burma_campaign
		required_missions = { fun_warriors_of_the_moon_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						area = central_thai_area
						area = north_tenasserim_area
					}
					NOT = {
						country_or_non_sovereign_subject_holds = ROOT
					}
				}
				AND = {
					province_id = 4831	#Bangkok
					NOT = {
						owned_by = ROOT
						is_core = ROOT
					}
				}
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 4831	#Bangkok
			central_thai_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			north_tenasserim_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_mon_city_states"
				duration = 10950
			}
			sukhothai_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			northern_thai_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_burma_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	fun_conquer_sudhammapura_mission = {
		icon = mission_lower_burma_campaign
		required_missions = { fun_hegemonize_the_mon_mission }
		position = 6
		provinces_to_highlight = {
			area = lower_burma_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			lower_burma_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			lower_burma_area = {
				limit = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				add_province_modifier = {
					name = "me_fun_trading_city_of_sudhammapura"
					duration = 10950
				}
			}
			central_burma_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			arakan_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	fun_march_to_arakan_mission = {
		icon = mission_end_arakan_piracy
		required_missions = { fun_conquer_sudhammapura_mission }
		position = 8
		provinces_to_highlight = {
			area = arakan_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			arakan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_arakanese_ships"
				duration = 10950
			}
			east_bengal_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	fun_seat_of_emperors_mission = {
		icon = mission_sanchi_stupa
		required_missions = { fun_kings_of_vanga_mission }
		position = 10
		provinces_to_highlight = {
			province_id = 558	#Pataliputra
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 558	#Pataliputra
			grown_by_development = 100
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.14
			}
			tooltip = {
				set_government_rank = 3
				add_country_modifier = {
					name = "me_fun_maharajadhiraja"
					duration = -1
				}
			}
		}
	}
	fun_andaman_colony_mission = {
		icon = mission_secure_the_malabar_coast
		required_missions = { fun_union_with_kalinga_mission }
		position = 11
		provinces_to_highlight = {
			province_id = 574	#The Andamans / Andaman Islands
		}
		trigger = {
			navy_tradition = 30
			OR = {
				owns = 574
				574 = {
					is_empty = yes
				}
			}
		}
		effect = {
			custom_tooltip = fun_andaman_colony_mission.tt
			country_event = {
				id = mmetr_FUN_mission_events.16
			}
			tooltip = {
				574 = {
					discover_country = ROOT
				}
				574 = {
					cede_province = ROOT
					add_core = ROOT
				}
				574 = {
					add_province_modifier = {
						name = "me_fun_funanese_naval_base"
						duration = -1
					}
				}
			}
		}
	}
}

funanese_missions_5 = {
	slot = 5
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = FUN
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	fun_invite_the_brahmin_mission = {
		icon = mission_brahmin_administrators
		required_missions = {  }
		position = 1
		trigger = {
			religion = hinduism
			OR = {
				num_of_estate_agendas_completed = {
					estate = estate_brahmins
					value = 4
				}
				num_of_estate_agendas_completed = {
					estate = estate_church
					value = 4
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.8
			}
			add_country_modifier = {
				name = "me_fun_brahmin_administration"
				duration = 10950
			}
		}
	}
	fun_indian_immigration_mission = {
		icon = mission_conquer_central_deccan
		required_missions = { fun_invite_the_brahmin_mission }
		position = 3
		trigger = {
			development_in_provinces = {
				value = 130
				OR = {
					area = cambodia_area
					area = mekong_area
					area = central_thai_area
					area = north_tenasserim_area
				}
			}
		}
		effect = {
			capital_scope = {
				add_base_tax = 1
			}
			add_country_modifier = {
				name = "me_fun_prosperous_heartland"
				duration = 10950
			}
		}
	}
	fun_legacy_of_the_naga_mission = {
		icon = mission_khmer_galleys
		required_missions = {  }
		position = 4
		provinces_to_highlight = {
			area = mekong_area
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			stability = 3
			legitimacy = 100
			mekong_area = {
				type = all
				owned_by = ROOT
				is_core = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_fun_naga_dynasty"
				duration = 10950
			}
		}
	}
	fun_vanquish_the_cham_mission = {
		icon = mission_southern_frontier_dharma
		required_missions = { fun_legacy_of_the_naga_mission fun_warriors_of_the_moon_mission }
		position = 5
		provinces_to_highlight = {
			area = champa_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			champa_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.5
			}
			tooltip = {
				add_country_modifier = {
					name = "me_fun_champa_fleets"
					duration = 10950
				}
			}
		}
	}
	fun_control_tonkin_mission = {		#Control Longbian
		icon = mission_mnd_dai_imperial_citadel
		required_missions = { fun_vanquish_the_cham_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = red_river_delta_area
				area = vietnam_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			red_river_delta_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			vietnam_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_army_tradition = 15
			add_country_modifier = {
				name = "me_fun_expanding_empire"
				duration = 10950
			}
		}
	}
	fun_chinese_campaign_mission = {
		icon = mission_han_army
		required_missions = { fun_control_tonkin_mission }
		position = 9
		provinces_to_highlight = {
			superregion = china_superregion
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				superregion = china_superregion
			}
		}
		effect = {
			country_event = {
				id = mmetr_FUN_mission_events.15
			}
			tooltip = {
				add_army_tradition = 20
				add_country_modifier = {
					name = "me_fun_chinese_conscripts"
					duration = 10950
				}
			}
		}
	}
	fun_two_dragon_thrones_mission = {
		icon = mission_seize_the_dragon_throne
		required_missions = { fun_chinese_campaign_mission }
		position = 11
		provinces_to_highlight = {
			superregion = china_superregion
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			is_empty = no
			has_discovered = ROOT
		}
		trigger = {
			OR = {
				is_emperor_of_china = yes
				AND = {
					custom_trigger_tooltip = {
						tooltip = fun_two_dragon_thrones_mission.tt
						NOT = {
							any_country = {
								is_emperor_of_china = yes
							}
						}
					}
					num_of_owned_provinces_with = {
						value = 40
						superregion = china_superregion
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { government_rank = 3 }
				}
				set_government_rank = 3
			}
			if = {
				limit = {
					is_emperor_of_china = yes
				}
				add_mandate = 10
			}
			else = {
				add_prestige = 20
				if = {
					limit = {
						NOT = { stability = 3 }
					}
					add_stability = 1
				}
				else = {
					add_adm_power = 50
				}
			}
			country_event = {
				id = mmetr_FUN_mission_events.18	#Question of Sinicization
			}
		}
	}
}