goguryeo_missions_1 = {
	slot = 1
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = GOG
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	gog_chinese_diplomacy_mission = {
		icon = mission_chinese_warlords_alliance
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			owner = {
				is_emperor_of_china = yes
			}
			has_discovered = ROOT
		}
		trigger = {
			any_country = {
				is_emperor_of_china = yes
				NOT = {
					war_with = ROOT
				}
				OR = {
					has_opinion = {
						who = ROOT
						value = 80
					}
					owes_favors = { 
						who = ROOT 
						value = 10
					}
				}
			}
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.12
			}
			tooltip = {
				random_country = {
					limit = {
						is_emperor_of_china = yes
					}
					add_truce_with = ROOT
				}
			}
		}
	}
	gog_religious_institutions_mission = {
		icon = mission_protect_lankan_buddhism
		required_missions = { gog_five_tribes_of_goguryeo_mission }
		position = 2
		trigger = {
			if = {
				limit = {
					has_estate = estate_church
				}
				OR = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 60
					}
					num_of_estate_agendas_completed = {
						estate = estate_church
						value = 3
					}
					NOT = {
						estate_influence = {
							estate = estate_church
							influence = 10
						}
					}
				}
			}
			else = {
				religious_unity = 1.00
				stability = 2
			}
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.6
			}
			tooltip = {
				add_legitimacy = 20
				add_country_modifier = {
					name = "me_gog_end_to_tribal_factionalism"
					duration = 10950
				}
			}
		}
	}
	gog_mission_beyond_goryeo_mission = {
		icon = mng_survey_ocean_shores
		required_missions = { gog_religious_institutions_mission }
		position = 4
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = {
				region = korea_region
			}
			has_owner_religion = no
		}
		trigger = {
			religious_unity = 0.9
			num_of_owned_provinces_with = {
				value = 15
				NOT = {
					region = korea_region
				}
				has_owner_religion = yes
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_missionary_traditions"
				duration = 10950
			}
		}
	}
	gog_seize_the_han_commanderies_mission = {
		icon = mission_ancient_chinese_army_in_siege
		required_missions = { gog_conduct_the_royal_hunt_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				province_id = 4231
				province_id = 733
				province_id = 1845
				province_id = 2744
				province_id = 4232
				province_id = 732
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 4231
			owns_or_non_sovereign_subject_of = 733
			owns_or_non_sovereign_subject_of = 1845
			owns_or_non_sovereign_subject_of = 2744
			owns_or_non_sovereign_subject_of = 4232
			owns_or_non_sovereign_subject_of = 732
		}
		effect = {
			add_prestige = 15
			liaoning_area = {
				limit = {
					NOT = {
						owned_by = ROOT
						is_core = ROOT
					}
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = gog_seize_the_han_commanderies_mission.tt
			country_event = {
				id = mmetr_GOG_mission_events.9
			}
		}
	}
	gog_successor_of_gojoseon_mission = {
		icon = mission_chinese_ruler_in_hall
		required_missions = { gog_seize_the_han_commanderies_mission }
		position = 8
		provinces_to_highlight = {
			area = liaoning_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			liaoning_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_prestige = 20
			hebei_area = {
				limit = {
					NOT = {
						owned_by = ROOT
						is_core = ROOT
					}
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = gog_successor_of_gojoseon_mission.tt
			country_event = {
				id = mmetr_GOG_mission_events.14
			}
		}
	}
	gog_yellow_sea_trade_ports_mission = {
		icon = mng_tame_china_sorrow
		required_missions = { gog_successor_of_gojoseon_mission }
		position = 9
		provinces_to_highlight = {
			region = north_china_region
			has_port = yes
			NOT = {
				owned_by = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				region = north_china_region
				has_port = yes
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_yellow_sea_merchants"
				duration = 14600
			}
			custom_tooltip = gog_yellow_sea_trade_ports_mission.tt
			hidden_effect = {
				random_owned_province = {
					limit = {
						region = north_china_region
						has_port = yes
					}
					add_base_tax = 1
				}
			}
		}
	}
	gog_the_grand_campaign_mission = {
		icon = mng_thirteen_provinces
		required_missions = { gog_imperial_ambitions_mission }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = south_hebei_area
				area = shandong_area
				area = west_shandong_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			south_hebei_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			shandong_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			west_shandong_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.16
			}
			tooltip = {
				add_country_modifier = {
					name = "me_gog_conqueror_of_ji"
					duration = 12775
				}
				north_henan_area = {
					limit = {
						NOT = {
							owned_by = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
				shaanxi_area = {
					limit = {
						NOT = {
							owned_by = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	gog_march_to_luoyang_mission = {
		icon = mission_chinese_fortress_siege
		required_missions = { gog_the_grand_campaign_mission }
		position = 11
		provinces_to_highlight = {
			OR = {
				province_id = 1836	#Luoyang
				province_id = 700	#Chang'an
			}
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 1836
			owns_core_province = 700
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.17
			}
			tooltip = {
				set_government_rank = 3
				add_country_modifier = {
					name = "me_gog_imperial_glory"
					duration = 12775
				}
				north_china_region = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	gog_the_new_middle_kingdom_mission = {
		icon = mission_chinese_edict
		required_missions = { gog_march_to_luoyang_mission }
		position = 13
		trigger = {
			calc_true_if = {
				all_subject_country = {
					is_subject_of_type = tributary_state
				}
				amount = 8
			}
		}
		effect = {
			add_legitimacy_equivalent = 15
			add_country_modifier = {
				name = "me_gog_tribute_to_the_throne"
				duration = 12775
			}
		}
	}
}

goguryeo_missions_2 = {
	slot = 2
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = GOG
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	gog_five_tribes_of_goguryeo_mission = {
		icon = mission_japanese_daimyo_nobles
		required_missions = { }
		position = 1
		trigger = {
			OR = {
				estate_loyalty = {
					estate = estate_nobles
					loyalty = 60
				}
				num_of_estate_agendas_completed = {
					estate = estate_nobles
					value = 3
				}
				crown_land_share = 60
				NOT = {
					estate_influence = {
						estate = estate_nobles
						influence = 20
					}
				}
			}
		}
		effect = {
			add_adm_power = 50
			add_country_modifier = {
				name = "me_gog_jega_council"
				duration = 10950
			}
		}
	}
	gog_legacy_of_king_chumo_mission = {
		icon = mission_chinese_monarch_horseback
		required_missions = { gog_five_tribes_of_goguryeo_mission }
		position = 2
		trigger = {
			num_of_owned_provinces_with = {
				value = 4
				OR = {
					has_building = glorious_monument
					has_building = temple
					has_building = cathedral
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_son_of_heaven"
				duration = 10950
			}
		}
	}
	gog_tomb_of_king_dongmyeong_mission = {
		icon = mission_goguryeo_jurong_statue
		required_missions = { gog_legacy_of_king_chumo_mission }
		position = 3
		trigger = {
			prestige = 80
			treasury = 300
		}
		effect = {
			add_treasury = -300
			capital_scope = {
				add_province_modifier = {
					name = "me_gog_tomb_of_king_dongmyeong"
					duration = -1
				}
			}
		}
	}
	gog_conduct_the_royal_hunt_mission = {
		icon = mission_chinese_royal_hunt
		required_missions = {  }
		position = 5
		trigger = {
			OR = {
				is_monarch_leader = yes
				mil = 4
			}
			army_size_percentage = 1.0
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_martial_readiness"
				duration = 10950
			}
			734 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			2694 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			735 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			4230 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			1013 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			4229 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			737 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			4228 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			4231 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			733 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			1845 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			2744 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			4232 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			732 = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	gog_crush_baekje_mission = {
		icon = mission_korean_castle_assault
		required_missions = { gog_conduct_the_royal_hunt_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				province_id = 735
				province_id = 4230
				province_id = 1013
				province_id = 4229
				province_id = 737
				province_id = 4228
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 735
			owns_or_non_sovereign_subject_of = 4230
			owns_or_non_sovereign_subject_of = 1013
			owns_or_non_sovereign_subject_of = 4229
			owns_or_non_sovereign_subject_of = 737
			owns_or_non_sovereign_subject_of = 4228
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.3
			}
			tooltip = {
				add_legitimacy = 25
				add_country_modifier = {
					name = "me_gog_the_spoils_of_baekje"
					duration = 10950
				}
			}
		}
	}
	gog_tribute_to_the_king_mission = {
		icon = mission_kowtow
		required_missions = { gog_crush_baekje_mission }
		position = 7
		trigger = {
			num_of_subjects = 2
			num_of_war_reparations = 2
		}
		effect = {
			add_prestige = 10
			add_country_modifier = {
				name = "me_gog_spoils_of_conquest"
				duration = 10950
			}
		}
	}
	gog_imperial_ambitions_mission = {
		icon = mission_chinese_army_mobilization_medieval
		required_missions = { gog_successor_of_gojoseon_mission gog_unify_the_samguk_mission }
		position = 9
		provinces_to_highlight = {
			region = north_china_region
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 7
				region = north_china_region
			}
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.15
			}
			custom_tooltip = gog_imperial_ambitions_mission.tt
			tooltip = {
				south_hebei_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				shandong_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				west_shandong_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
				shanxi_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	gog_chinese_recruits_mission = {
		icon = mission_chinese_officials_in_line
		required_missions = { gog_imperial_ambitions_mission }
		position = 10
		provinces_to_highlight = {
			owned_by = ROOT
			region = north_china_region
			has_owner_accepted_culture = no
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				region = north_china_region
				culture_group = east_asian
				has_owner_accepted_culture = yes
				NOT = { culture = ROOT }
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_chinese_recruitment"
				duration = 10950
			}
		}
	}
	gog_one_chosen_by_heaven_mission = {
		icon = mission_chinese_son_of_heaven
		required_missions = { gog_chinese_recruits_mission gog_march_to_luoyang_mission }
		position = 12
		provinces_to_highlight = {
			superregion = china_superregion
			is_empty = no
			NOT = {
				owned_by = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 40
				superregion = china_superregion
			}
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				OR = {
					is_emperor_of_china = yes
					NOT = {
						any_country = {
							is_emperor_of_china = yes
						}
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { government_rank = 3 }
				}
				set_government_rank = 3
			}
			add_country_modifier = {
				name = "me_gog_heavens_blessing"
				duration = 10950
			}
			china_superregion = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	gog_reunion_with_the_wajin_mission = {
		icon = mission_japanese_marriage
		required_missions = { gog_invasion_of_wa_mission }
		position = 13
		provinces_to_highlight = {
			owned_by = ROOT
			region = japan_region
			OR = {
				has_owner_accepted_culture = no
				has_owner_culture = no
			}
		}
		trigger = {
			OR = {
				num_of_owned_provinces_with = {
					value = 10
					region = japan_region
					has_owner_accepted_culture = yes
				}
				num_of_owned_provinces_with = {
					value = 7
					region = japan_region
					has_owner_culture = yes
				}
			}
		}
		effect = {
			japan_region = {
				limit = {
					owned_by = ROOT
				}
				add_province_modifier = {
					name = "me_gog_wajin_subjects"
					duration = 10950
				}
			}
		}
	}
}

goguryeo_missions_3 = {
	slot = 3
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = GOG
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	gog_develop_the_capital_mission = {
		icon = mng_outer_city_beijing
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			is_capital_of = ROOT
			NOT = {
				num_of_times_improved_by_owner = 4
			}
		}
		trigger = {
			capital_scope = {
				num_of_times_improved_by_owner = 4
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_prosperous_goguryeo"
				duration = 10950
			}
			capital_scope = {
				add_province_modifier = {
					name = "me_gog_thriving_estates"
					duration = 10950
				}
			}
		}
	}
	gog_expand_the_gun_system_mission = {
		icon = mission_chinese_land_survey
		required_missions = { gog_develop_the_capital_mission gog_moon_fortresses_mission gog_develop_the_capital_mission }
		position = 2
		trigger = {
			grown_by_states = 3
			NOT = { average_autonomy_above_min = 10 }
			NOT = { average_unrest = 1 }
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.7
			}
			tooltip = {
				add_country_modifier = {
					name = "me_gog_jindaebeop"
					duration = -1
				}
				capital_scope = {
					add_base_tax = 1
					add_base_production = 1
				}
			}
		}
	}
	gog_golden_age_of_goryeo_mission = {
		icon = mission_chinese_victorious_army_parade
		required_missions = { gog_expand_the_gun_system_mission gog_tomb_of_king_dongmyeong_mission }
		position = 4
		provinces_to_highlight = {
			is_capital_of = ROOT
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = gog_golden_age_of_goryeo_mission.tt
				korea_region = {
					type = all
					capital_scope = {
						higher_development_than = PREV
					}
				}
			}
		}
		effect = {
			add_prestige = 20
			if = { 
				limit = { 
					has_dlc = "Mandate of Heaven"
				} 
				add_splendor = 50
			}
			capital_scope = {
				add_province_modifier = {
					name = "me_gog_center_of_the_korean_realm"
					duration = -1
				}
			}
		}
	}
	gog_annex_the_eastern_ye_mission = {
		icon = mission_chinese_recruitment
		required_missions = { gog_conduct_the_royal_hunt_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				province_id = 734
				province_id = 2694
			}
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_core_province = 734
			owns_core_province = 2694
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.1
			}
			tooltip = {
				add_country_modifier = {
					name = "me_gog_ye_agriculture"
					duration = 10950
				}
				734 = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
					}
					add_province_modifier = {
						name = "me_gog_integration_of_the_ye_people"
						duration = 7300
					}
				}
				2694 = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
					}
					add_province_modifier = {
						name = "me_gog_integration_of_the_ye_people"
						duration = 7300
					}
				}
				eastern_korea_area = {
					limit = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	gog_the_gaya_confederacy_mission = {
		icon = mng_deal_kama_kagyu
		required_missions = { gog_annex_the_eastern_ye_mission gog_crush_baekje_mission }
		position = 7
		provinces_to_highlight = {
			province_id = 4227
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 4227
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.8
			}
			tooltip = {
				add_country_modifier = {
					name = "me_gog_iron_of_gaya"
					duration = 10950
				}
			}
		}
	}
	gog_unify_the_samguk_mission = {
		icon = mission_korean_manuscript_map
		required_missions = { gog_the_gaya_confederacy_mission gog_those_of_xiongnu_blood_mission }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = eastern_korea_area
				province_id = 735
				province_id = 4230
				province_id = 1013
				province_id = 4229
				province_id = 737
				province_id = 4228
			}
			NOT = {
				owned_by = ROOT
				is_core = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			stability = 2
			legitimacy_equivalent = 90
			eastern_korea_area = {
				type = all
				owned_by = ROOT
				is_core = ROOT
			}
			owns_core_province = 735
			owns_core_province = 4230
			owns_core_province = 1013
			owns_core_province = 4229
			owns_core_province = 737
			owns_core_province = 4228
		}
		effect = {
			custom_tooltip = gog_unify_the_samguk_mission.tt2
			hidden_effect = {
				set_country_flag = taewang_ruler_title_flag
			}
			add_country_modifier = {
				name = "me_gog_taewang"
				duration = 14600
			}
			country_event = {
				id = mmetr_GOG_mission_events.11
			}
			custom_tooltip = gog_unify_the_samguk_mission.tt
		}
	}
	gog_expand_the_royal_navy_mission = {
		icon = mission_korean_naval_battle_panokseon
		required_missions = { gog_unify_the_samguk_mission }
		position = 10
		trigger = {
			num_of_admirals = 1
			navy_size = 15
		}
		effect = {
			add_navy_tradition = 10
			northern_kyushu = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	gog_invasion_of_wa_mission = {
		icon = mission_korean_archer_imjin_war
		required_missions = { gog_expand_the_royal_navy_mission }
		position = 12
		provinces_to_highlight = {
			area = northern_kyushu
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			northern_kyushu = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 8
				region = japan_region
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_overseas_dominion"
				duration = 10950
			}
		}
	}
	gog_defeat_the_yamato_mission = {
		icon = mission_japanese_castle_burning
		required_missions = { gog_invasion_of_wa_mission }
		position = 13
		provinces_to_highlight = {
			area = kinai_area
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			kinai_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_emperor_of_goryeo_and_wa"
				duration = -1
			}
		}
	}
}

goguryeo_missions_4 = {
	slot = 4
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = GOG
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	gog_moon_fortresses_mission = {
		icon = mission_korean_hwaseong_fortress_18th
		required_missions = { }
		position = 1
		trigger = {
			num_of_owned_provinces_with = {
				value = 3
				fort_level = 1
			}
			any_owned_province = {
				fort_level = 1
				base_manpower = 5
			}
			OR = {
				num_of_cavalry = 5
				cavalry_fraction = 0.1
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_active_defenses"
				duration = 10950
			}
		}
	}
	gog_espionage_networks_mission = {
		icon = mng_form_depots
		required_missions = { gog_moon_fortresses_mission }
		position = 3
		trigger = {
			any_rival_country = {
				has_spy_network_from = {
					who = ROOT
					value = 70
				}
			}
			OR = {
				spymaster = 2
				monthly_dip = 9
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_goguryeo_spies"
				duration = -1
			}
		}
	}
	gog_ancestral_buyeo_lands_mission = {
		icon = mission_jurchen_cavalrymen
		required_missions = { gog_true_heirs_of_hae_buru_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				province_id = 2109
				province_id = 2188
				province_id = 2110
				province_id = 2107
				province_id = 4661
				province_id = 730
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 2109
			owns_or_non_sovereign_subject_of = 2188
			owns_or_non_sovereign_subject_of = 2110
			owns_or_non_sovereign_subject_of = 2107
			owns_or_non_sovereign_subject_of = 4661
			owns_or_non_sovereign_subject_of = 730
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.5
			}
			custom_tooltip = gog_ancestral_buyeo_lands_mission.tt
			if = {
				limit = {
					NOT = {
						accepted_culture = buyeo
					}
				}
				add_accepted_culture = buyeo
			}
			else = {
				add_dip_power = 100
			}
		}
	}
	gog_northern_colonies_mission = {
		icon = mission_japanese_temple_gate
		required_missions = { gog_ancestral_buyeo_lands_mission }
		position = 6
		provinces_to_highlight = {
			region = manchuria_region
			owned_by = ROOT
			has_owner_culture = no
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 7
				region = manchuria_region
				has_owner_culture = yes
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_frontier_colonies"
				duration = 10950
			}
		}
	}
	gog_those_of_xiongnu_blood_mission = {
		icon = mission_tumu_crisis
		required_missions = { gog_annex_the_eastern_ye_mission }
		position = 7
		provinces_to_highlight = {
			OR = {
				province_id = 736
				province_id = 2745
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 736
			owns_or_non_sovereign_subject_of = 2745
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.10
			}
		}
	}
	gog_reorganize_the_samhan_mission = {
		icon = mission_chinese_scholars_scrolls
		required_missions = { gog_those_of_xiongnu_blood_mission }
		position = 8
		provinces_to_highlight = {
			area = eastern_korea_area
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				NOT = { is_state = yes }
				unrest = 5
				nationalism = 5
			}
			has_discovered = ROOT
		}
		trigger = {
			eastern_korea_area = {
				type = all
				owned_by = ROOT
				is_core = ROOT
			}
			eastern_korea_area = {
				type = all
				is_state = yes
			}
			eastern_korea_area = {
				type = all
				NOT = {
					unrest = 5
				}
			}
			eastern_korea_area = {
				type = all
				NOT = {
					nationalism = 5
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_expanded_administration"
				duration = 10950
			}
		}
	}
	gog_commission_the_samguk_sagi_mission = {
		icon = mng_expand_yongle_dadian
		required_missions = { gog_unify_the_samguk_mission }
		position = 9
		trigger = {
			prestige = 80
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_samguk_sagi"
				duration = 10950
			}
		}
	}
	gog_loyal_merchants_in_the_south_mission = {
		icon = mission_chinese_merchant
		required_missions = { gog_commission_the_samguk_sagi_mission gog_expand_the_royal_navy_mission }
		position = 11
		trigger = {
			OR = {
				estate_loyalty = {
					estate = estate_burghers
					loyalty = 70
				}
				num_of_estate_agendas_completed = {
					estate = estate_burghers
					value = 3
				}
				trader = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_southern_merchants"
				duration = 10950
			}
		}
	}
	gog_control_dongyi_trade_mission = {
		icon = mission_chinese_market
		required_missions = { gog_loyal_merchants_in_the_south_mission gog_invasion_of_wa_mission }
		position = 13
		provinces_to_highlight = {
			province_id = 1376 	#Nippon trade node
		}
		trigger = {
			1376 = { #Nippon
				trade_share = {
					country = ROOT
					share = 50
				}
			}
		}
		effect = {
			add_mercantilism = 1
			add_country_modifier = {
				name = "me_gog_sea_trade_monopoly"
				duration = 12775
			}
		}
	}
}


goguryeo_missions_5 = {
	slot = 5
	generic = no
	ai = yes
	potential = {
		OR = {
			tag = GOG
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	gog_military_colonies_mission = {
		icon = mission_chinese_training
		required_missions = { }
		position = 1
		trigger = {
			num_of_owned_provinces_with = {
				value = 3
				NOT = { 
					is_capital = yes
				}
				base_manpower = 5
			}
		}
		effect = {
			add_yearly_manpower = 0.5
			add_country_modifier = {
				name = "me_gog_mobilization_beyond_the_capital"
				duration = 10950
			}
		}
	}
	gog_militaristic_tradition_mission = {
		icon = mission_korean_archer_defense
		required_missions = { gog_military_colonies_mission gog_moon_fortresses_mission }
		position = 2
		trigger = {
			OR = {
				army_tradition = 50
				army_professionalism = 0.70
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_gaemamusa"
				duration = -1
			}
		}
	}
	gog_martial_reforms_mission = {
		icon = mission_chu_shi_biao
		required_missions = { gog_militaristic_tradition_mission }
		position = 3
		trigger = {
			has_mil_advisor_3 = yes
			monthly_mil = 10
			stability = 2
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_military_reforms"
				duration = -1
			}
		}
	}
	gog_true_heirs_of_hae_buru_mission = {
		icon = mission_gain_mana
		required_missions = {  }
		position = 4
		trigger = {
			legitimacy = 80
			army_size_percentage = 1.0
		}
		effect = {
			country_event = {
				id = mmetr_GOG_mission_events.4
			}
			tooltip = {
				custom_tooltip = mmetr_GOG_mission_events.4.tt
			}
		}
	}
	gog_mulgil_auxiliaries_mission = {
		icon = mission_nomad_camp
		required_missions = { gog_true_heirs_of_hae_buru_mission }
		position = 5
		provinces_to_highlight = {
			OR = {
				province_id = 2106
				province_id = 4654
				province_id = 2186
				province_id = 4655
				province_id = 1850
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 2106
			owns_or_non_sovereign_subject_of = 4654
			owns_or_non_sovereign_subject_of = 2186
			owns_or_non_sovereign_subject_of = 4655
			owns_or_non_sovereign_subject_of = 1850
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_mohe_auxiliary_infantry"
				duration = 10950
			}
		}
	}
	gog_route_the_khitans_mission = {
		icon = mission_korean_vs_jurchen_battle
		required_missions = { gog_mulgil_auxiliaries_mission gog_ancestral_buyeo_lands_mission }
		position = 6
		provinces_to_highlight = {
			OR = {
				area = chahar_area
				area = eastern_mongolia
				area = xilin_gol_area 
				area = inner_mongolia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 7
				OR = {
					area = chahar_area
					area = eastern_mongolia
					area = xilin_gol_area 
					area = inner_mongolia_area
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_nomad_cavalry"
				duration = 10950
			}
		}
	}
	gog_steppe_campaign_mission = {
		icon = mission_xianbei_desert_warriors
		required_missions = { gog_route_the_khitans_mission }
		position = 8
		provinces_to_highlight = {
			region = mongolia_region
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 20
				region = mongolia_region
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_king_of_the_steppes"
				duration = -1
			}
		}
	}
	gog_eternal_rejoicing_mission = {
		icon = mng_jing_hang_grand_canal
		required_missions = { gog_commission_the_samguk_sagi_mission }
		position = 10
		provinces_to_highlight = {
			region = korea_region
			owned_by = ROOT
		}
		trigger = {
			development_in_provinces = {
				value = 200
				region = korea_region
			}
		}
		effect = {
			add_adm_power = 100
			add_country_modifier = {
				name = "me_gog_era_of_eternal_rejoicing"
				duration = 14600
			}
		}
	}
	gog_abundance_of_goguryeo_mission = {
		icon = mission_chinese_harvest
		required_missions = { gog_loyal_merchants_in_the_south_mission }
		position = 12
		trigger = {
			is_in_deficit = no
			OR = {
				treasury = 2000
				share_of_starting_income = 2.0
			}
			num_of_owned_provinces_with = {
				value = 10
				OR = {
					has_building = storehouse
					has_building = windmill
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "me_gog_abundant_supplies"
				duration = 10950
			}
		}
	}
}