﻿elite_education_interaction = {
	
	category = interaction_category_friendly

	desc = elite_education_interaction_desc
	
	auto_accept = yes
	
	# FIXME
	cooldown = { years = 1 }
	
	is_shown = {
	
		NOT = {
			scope:actor = scope:recipient 
		}
		
		scope:actor = {
			basic_allowed_to_imprison_character_trigger = {
				CHARACTER = scope:recipient
			}
		}
		
		scope:recipient = {
			
			AND = {
				age >= 6
				age <= 20
			}
			
			OR = {
				is_close_family_of = scope:actor	# 직계
				is_nibling_of = scope:actor			# 조카
				is_uncle_or_aunt_of = scope:actor	# 삼촌
				is_grandchild_of = scope:actor		# 손자
				is_cousin_of = scope:actor			# 사촌
			}
			
		}
		
	}
	
	on_accept = {
		
		scope:actor = {
			
			if = {
				
				limit = {
					scope:recipient = {
						has_trait = elite_education
					}
				}
				
				remove_short_term_gold = 10000
				
				custom_tooltip = elite_education_interaction_custom_tooltip.1
			} 
			else = {
				
				remove_short_term_gold = 300
				
				custom_tooltip = elite_education_interaction_custom_tooltip.0
				
			}
			
			
		}
		
		scope:recipient = {
		
			add_opinion = {
				target = scope:actor
				modifier = elite_education_opinion
			}
			
			show_as_tooltip = {
				
				scope:recipient = {
					
					custom_tooltip = elite_education_interaction_custom_tooltip.2
					
				}
				
				
			}
			
			
		}
		
		
	}
	
	ai_will_do = {
		base = 0 # The AI should never do this!
	}
	
	cost = {
		gold = {
			value = {
				
				if = {
					limit = {
						scope:recipient = {
							has_trait = elite_education
						}
					}
				
					add = 10000
				}
				else = {
					
					add = 300
				}
			}
		}
		
	}
	
	on_send = {
		
		scope:actor  = {
			trigger_event = elite_education.0000
		}
		
	}
	
}