﻿rcrl_open_recruit_local_interaction_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_recruitment.dds"
	}
	sort_order = 10
	decision_group_type = courtier

	is_shown = {
		is_ruler = yes
		OR = {
			root = {
				is_character_interaction_valid = {
					recipient = root
					interaction = adventurer_recruit_local_interaction
				}
			}
			root = {
				is_character_interaction_valid = {
					recipient = root
					interaction = common_ruler_recruit_local_interaction
				}
			}
		}
	}

	is_valid = {
		trigger_if = {
			limit = {
				root = { is_landless_adventurer = no }
			}
			root = { save_temporary_scope_as = actor }
			custom_tooltip = {
				text = rcrl_you_dont_have_chancellor_tt
				exists = root.cp:councillor_chancellor
			}
		}
		trigger_else = {
			is_ruler = yes
		}
	}

	effect = {
		custom_tooltip = rcrl_open_recruit_local_interaction_decision_effect_tt
		if = {
			limit = {
				is_ruler = yes
				is_landless_adventurer = yes
			}
			open_interaction_window = {
				interaction = adventurer_recruit_local_interaction
				actor = root
				recipient = root
			}
		}
		else = {
			open_interaction_window = {
				interaction = common_ruler_recruit_local_interaction
				actor = root
				recipient = root
			}
		}
	}

	ai_potential = {
		always = no
	}

	ai_check_interval = 0

	ai_will_do = {
		base = 0
	}
}