convert_ezochi_to_shintoism = {
	
	type = country

	allow = {
		tag = JAP
		religion = shinto
		owns = 1031
		1031 = { not = { religion = shinto } }
		missionaries = 1
		not = { stability = 3 }
	}
	abort = {
		or = {
			not = { religion = shinto }
			not = { owns = 1031 }
			stability = 3
		}
	}
	success = {
		1031 = { religion = shinto }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			dip = 7
		}
	}
	effect = {
		stability = 1
	}
}

conquer_southern_korea = {

	type = country

	allow = {
		tag = JAP
		is_subject = no
		is_lesser_in_union = no
		exists = KOR
		not = { alliance_with = KOR }
		KOR = {	
			not = { num_of_cities = this }
			is_subject = no
			is_lesser_in_union = no
			owns = 736		# Geyongsang
			owns = 737		# Jeolla
		}
		KOR = {
			neighbour = this
			num_of_ports = 1
		}
	}
	abort = {
		or = {
			not = { exists = KOR }
			is_lesser_in_union = yes
			is_subject = yes
			KOR = {
				or = {
					is_lesser_in_union = yes
					is_subject = yes
					and = {
						not = { num_of_ports = 1 }
						not = { neighbour = this }
					}
				}
			}	
		}
	}
	success = {
		owns = 736
		owns = 737
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = KOR value = 0 } }
		}
	}
	immediate = {
		add_temp_claim = 736
		add_temp_claim = 737
	}
	abort_effect = {
		remove_temp_claim = 736
		remove_temp_claim = 737
	}
	effect = {
		prestige = 0.1
	}
}

colonize_the_northern_islands = {
	
	type = country

	allow = {
		tag = JAP
		1032 = { empty = yes }
		1033 = { empty = yes }
		colonists = 1
		num_of_ports = 1
	}
	abort = {
		or = {
			not = { num_of_ports = 1 }
			and = {
				not = { owns = 1032 }
				not = { owns = 1033 }
				1032 = { empty = no }
				1033 = { empty = no }
			}
		}
	}
	success = {
		owns = 1032
		owns = 1033
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
	}
	effect = {
		add_core = 1032
		add_core = 1033
	}
}

monopolize_japanese_cot = {
	
	type = country

	allow = {
		tag = JAP
		trade_tech = 15
		merchants = 4
		japanese_region = {
			cot = yes
			not = { placed_merchants = 6 }
		}
		not = { last_mission = monopolize_japanese_cot }
	}
	abort = {
		not = { japanese_region = { cot = yes } }
	}
	success = {
		japanese_region = {
			cot = yes
			placed_merchants = 6
		}		
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			idea = national_trade_policy
		}	
	}
	effect = {
		treasury = 50
		merchants = 5
	}
}

establish_footholding_in_manchuria = {

	type = country
	
	allow = {
		tag = JAP
		exists = MCH
		is_lesser_in_union = no
		is_subject = no
		MCH = {
			is_lesser_in_union = no
			is_subject = no
		}
		not = { manchuria = { owned_by = JAP } }
		MCH = {
			neighbour = this
			num_of_ports = 1
		}
	}
	abort = {
		or = {
			is_lesser_in_union = yes
			is_subject = yes
			MCH = {
				or = {
					is_lesser_in_union = yes
					is_subject = yes
					and = {
						not = { neighbour = this }
						not = { num_of_ports = 1 }
					}
				}
			}	
		}
	}
	success = {
		manchuria = { owned_by = JAP }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = MCH value = 0 } }
		}
	}
	immediate = {
		manchuria = {
			add_temp_claim = THIS
		}
	}
	abort_effect = {
		manchuria = {
			remove_temp_claim = THIS
		}
	}
	effect = {
		prestige = 0.06
		add_core = 726		# Shenyang
	}
}
