﻿#Player may manually force an animal archetype if one was never designated
gpt_determine_animal_archetype = {
	category = interaction_category_diplomacy
	use_diplomatic_range = no
	ignores_pending_interaction_block = yes
	icon = herd_interaction
	common_interaction = yes
	
	desc = gpt_determine_animal_archetype_desc

	is_shown = {
		scope:recipient = {
			NOT = { gpt_has_animal_archetype = yes }
			has_3_personality_traits = yes
			age > 15
		}
	}

 #	send_option = {
 #		flag = assign_animal
 #		localization = gpt_random_animal_archetype_assign
 #	}
	
	#send_option = {
	#	flag = do_not_assign_animal
	#	localization = no_random_animal_archetype_assign
	#}

 #	send_options_exclusive = no

	ai_frequency = 0

	on_accept = {
		scope:recipient = {
			hidden_effect = { gpt_assign_random_animal_archetype = yes }
		}
		trigger_event = gpt_olympia_animal_archetype.1000
	}

	auto_accept = yes
}

gpt_change_archetype = {
	category = interaction_category_diplomacy
	icon = herd_interaction
	
	desc = gpt_change_archetype_desc
	
	auto_accept = yes

	is_shown = {						#Can only target yourself
		scope:recipient = scope:actor
		scope:actor = {
			NOT = { has_character_flag = changed_archetype }
			gpt_has_animal_archetype = yes
		}
	 #	has_game_rule = acobac_animal_switches_on
	}
	
	is_valid_showing_failures_only = {
		scope:actor = {
			prestige >= massive_prestige_value
			gold >= scope:actor.medium_gold_value
		}
	}
	
 #	send_option = {
 #		localization = gpt_change_archetype_option
 #	}
	
 #	send_options_exclusive = no
	
	on_auto_accept = {
		scope:recipient = {
			trigger_event = gpt_olympia_animal_archetype.1002
		}
	}

	ai_will_do = {
		base = 0
	}
}