dynast_elevate_child_of_concubine_interaction = {
	icon = icon_dynasty
	category = interaction_category_diplomacy
	name = dynast_elevate_child_of_concubine_interaction
	desc = dynast_elevate_child_of_concubine_interaction_desc
	is_shown = {
		scope:actor = scope:recipient.dynasty.dynast
		#scope:actor = {
			#religion = scope:recipient.religion
			#NOT = { house = scope:recipient.house }
			#faith = { has_doctrine_parameter = doctrine_concubines }
		#}
		scope:recipient = {
			has_trait = child_of_concubine
			#faith = { has_doctrine_parameter = doctrine_concubines }
		}
	}

	is_valid = {
		scope:actor.dynasty = {
			prestige >= medium_prestige_value
		}
		scope:recipient = { is_busy_in_events_localised = yes }
	}

	auto_accept = yes

	cost = {
		prestige = medium_prestige_value
	}
	
	on_accept = {
		scope:actor = {
			send_interface_message = {
			type = event_generic_neutral
			title = dynast_elevate_child_of_concubine_interaction_notification
			right_icon = scope:recipient
			}
		}	
		scope:recipient = {
			restore_inheritance_effect = yes
			remove_trait = child_of_concubine_male
			remove_trait = child_of_concubine_female
			add_trait = elevated_child_of_concubine
			#add_trait_force_tooltip = legitimized_bastard
				add_opinion = {
					target = scope:actor
					modifier = legitimized_me_opinion
				}
		}
		
		#hidden_effect = {
		#	scope:recipient = {
		#		trigger_event = bastard_interaction.0009
		#		every_parent = {
		#			limit = {
		#				is_landed = yes
		#				NOT = { this = scope:actor }
		#			}
		#			hidden_effect = { #Nudge towards friendship
		#				if = {
		#					limit = {
		#						NOR = {
		#							has_relation_friend = scope:actor
		#							has_relation_potential_friend = scope:actor
		#						}
		#					}
		#					set_relation_potential_friend = scope:actor
		#				}
		#			}
		#			trigger_event = bastard_interaction.0010
		#		}
		#		every_sibling = {
		#			limit = {
		#				is_landed = yes
		#				NOT = { this = scope:actor }
		#			}
		#			trigger_event = bastard_interaction.0010
		#		}
		#	}
		#}
	}
}
