namespace = japan_unify

japan_unify.1 = {
	type = country_event
	placement = IMP
	
	title = japan_unify.1.t
	desc = japan_unify.1.d
	flavor = japan_unify.1.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_signed_contract.bk2"
	}
	
	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"
	
	icon = "gfx/interface/icons/event_icons/unify.dds"
	
	duration = 3
	
	option = {
		name = japan_unify.1.a
		default_option = yes
		add_loyalists = {
			value = 0.5
		}
		c:IMP = {
		create_diplomatic_pact = {
			country = c:SAT
			type = vassal
		}
		create_diplomatic_pact = {
			country = c:TOS
			type = vassal
		}
		create_diplomatic_pact = {
			country = c:CHO
			type = vassal
		}
		create_diplomatic_pact = {
			country = c:RYU
			type = tributary
		}
		add_modifier = jap_prestige_boost
		
		}
		c:SHG = {
		add_modifier = jap_prestige_boost
		}
	}
}

japan_unify.2 = {
	type = country_event
	placement = ROOT
	
	title = japan_unify.2.t
	desc = japan_unify.2.d
	flavor = japan_unify.2.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_signed_contract.bk2"
	}
	
	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"
	
	icon = "gfx/interface/icons/event_icons/unify.dds"
	
	duration = 3
	
	trigger = {
		NOR = {
			is_at_war = yes
			is_diplomatic_play_committed_participant = yes
		}
	}
	
	
	option = {
		name = japan_unify.2.a
		default_option = yes
		add_loyalists = {
			value = 0.2
		}
		add_radicals = {
			value = -0.8
		}
		ig:ig_landowners = {
			remove_ruling_interest_group = yes
			add_modifier = {
				name = jap_unpopular_opinion
				months = normal_modifier_time
			}
		}
		add_modifier = {
				name = jap_major_reforms
				months = normal_modifier_time
			}
		c:IMP = {
		remove_modifier = jap_prestige_boost
		}
		c:SHG = {
		remove_modifier = jap_prestige_boost
		}
	}
}
