########################################
# JPC MOD Decisions
########################################

decisions = {

	jpc_reconstruct_annan = {
		only_independent = yes
		is_high_prio = yes
		ai_check_interval = 60
		potential = {
			e_annan_protectorate = {
				has_holder = no
			}
			e_newjapan = {
				has_holder = no
			}
			has_landed_title = k_nanman
			lower_tier_than = EMPEROR
			is_nomadic = no
			is_feudal = yes
			holy_order = no
			ai = no
		}
		allow = {
			independent = yes
			war = no
#			is_tributary = no
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			has_landed_title = c_samatata
			realm_size = 20
			prestige = 4000
			wealth = 500
		}
		effect = {
			wealth = -500
			hidden_tooltip = {
				primary_title = {
					e_annan_protectorate = {
						copy_title_laws = PREV
					}
				}
			}
			grant_title = e_annan_protectorate
		}
	}

	jpc_create_new_chrysanthemum_throne = {
		only_independent = yes
		is_high_prio = yes
		ai_check_interval = 60
		potential = {
			e_newjapan = {
				has_holder = no
			}
			culture = japanese
			is_nomadic = no
			is_feudal = yes
			tier = EMPEROR
			NOT = { has_character_flag = is_born_in_japan }

			holy_order = no
			ai = no
		}
		allow = {
			independent = yes
			war = no
			is_tributary = no
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			realm_size = 100
			prestige = 6000
			wealth = 500
		}
		effect = {
			wealth = -500
			if = {
				limit = {
					has_dlc = "Holy Fury"
					NOT = {
						any_owned_bloodline = { 
							has_bloodline_flag = newemperor_bloodline
						}
					}
				}
				character_event = { id = JPC.90 }
			}
			hidden_tooltip = {
				primary_title = {
					e_newjapan = {
						set_title_flag = pretender_chinese_empire
						copy_title_laws = PREV
					}
				}
			}

			grant_title = e_newjapan
			set_name="Jintoku"

			any_demesne_title = {
				limit = { 
					tier = EMPEROR
					NOT = { has_title_flag = pretender_chinese_empire }
				}
				destroy_landed_title = THIS
			}
		}
	}
}
