﻿join_mercenary_court_interaction = {
	category = interaction_category_friendly
	common_interaction = yes
	desc = join_mercenary_court_interaction.desc
	interface_priority = 80
	auto_accept = yes
	ai_frequency = 0
	cost = { prestige = 50 }
	
	is_shown = {
		scope:actor = {
			is_ai = no
			is_ruler = no
			is_courtier = no
		}
		scope:recipient = {
			 has_government = mercenary_government
		}
	}
	
	
	can_send = {
		scope:actor = {
			is_ai = no
			NOT = {
			has_trait = order_member
			has_trait = mercenary
			has_character_flag = working
			has_character_modifier = house_modifier
			}
		}
	}
	
	
	on_accept = {
		scope:actor = { 
		add_trait = mercenary
		add_character_flag = { flag = mercenary_service years = 10 }
		set_variable = { name = mercenary_exp value = 0 }
		trigger_event = { on_action = initiation_timer_on_action days = 365 }
		pan_camera_to_province = scope:recipient.location
		}
		scope:recipient = {
			add_courtier = scope:actor
			add_gold = 300 ## Recruiting bonus
			pay_short_term_gold = {
					gold = 100
					target = scope:actor
				}
			hidden_effect = {	
			every_courtier = { limit = { is_ai = yes } add_ranks_to_court_effect = yes }
			add_trait = captain
			add_trait = mercenary
			}
		}
		scope:actor = { set_knight_status = force }
	}	
}	
