﻿join_court_interaction = {
	category = interaction_category_friendly
	common_interaction = yes
	desc = join_court_interaction.desc
	interface_priority = 80
	auto_accept = no
	ai_accept = {
		base = -15 # Try to make it 0 for most interactions
		
		modifier = {
			scope:hook = yes
			add = 5000
			desc = SCHEME_WEAK_HOOK_USED
		}
		opinion_modifier = { # Opinion Factor
			who = scope:recipient
			opinion_target = scope:actor
			multiplier = 1
			desc = AI_SIMPLE_OPINION_REASON
		}
	
	
	}
	ai_frequency = 0
	
	
	is_shown = {
		scope:actor = {
			is_ai = no
			is_ruler = no
			is_foreign_court_or_pool_guest_of = scope:recipient
			NOT = { has_trait = slave }
		}
		scope:recipient = {
			is_ruler = yes
		}
	}
	
	#Use hook
	send_option = {
		is_valid = {
			scope:actor = {
				has_usable_hook = scope:recipient
			}
		}
		flag = hook	
		localization = GENERIC_SPEND_A_HOOK
	}
	should_use_extra_icon = {
		scope:actor = { has_usable_hook = scope:recipient }
	}
	extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds"
	send_options_exclusive = no
	
	can_send = {
		scope:actor = {
			is_ai = no
			NOT = {
			has_trait = order_member
			has_trait = mercenary
			}
		}
	}
	
	
	on_accept = {
		scope:recipient = { 
		add_courtier = scope:actor 
		} 
	}
}		
