﻿arrcxxx_deploy_interaction = {
	category = interaction_category_diplomacy
	desc = arrcxxx_deploy_interaction_desc
	icon = alliance
	interface = interfere_in_war
	special_interaction = interfere_in_war_interaction
	popup_on_receive = yes

	greeting = positive
	notification_text = join_war_interaction_notification

	is_shown = {
		scope:actor = { arrcxxx_actor_is_shown_trigger = yes }
		scope:recipient = { arrcxxx_recipient_is_shown_trigger = yes }
	}
	
	can_be_picked = { arrcxxx_can_be_picked_trigger = yes }

	on_accept = {
		scope:actor = {
			if = {
				limit = { is_close_family_of = scope:recipient }

				add_stress = massive_stress_impact_loss
			}
			else_if = {
				limit = { is_extended_family_of = scope:recipient }

				add_stress = major_stress_impact_loss
			}
			else_if = {
				limit = { dynasty = scope:recipient.dynasty }

				add_stress = medium_stress_loss
			}
			else = {
				stress_impact = {
					brave = medium_stress_impact_loss
					loyal = minor_stress_impact_loss
					compassionate = miniscule_stress_impact_loss
					craven = medium_stress_impact_gain
					shy = minor_stress_impact_gain
				}
			}
		}

		scope:recipient = {
			arrcxxx_deploy_effect = { LOCATION = scope:recipient.capital_province WAR = scope:target PROVIDER = scope:actor }

			progress_towards_friend_effect = {
				CHARACTER = scope:actor
				OPINION = 20
				REASON = arrcxxx_friend_deployed_troops
			}

			stress_impact = {
				base = minor_stress_impact_loss
				craven = massive_stress_impact_loss
				brave = medium_stress_impact_loss
			}
		}
	}

	auto_accept = yes

	ai_accept = {
		base = 100
	}
}
