# equivalent to utopia.2658
country_event = {
	id = $EVENT_ID$
	title = utopia.2658.name
	desc = $EVENT_ID$.desc
	picture = GFX_evt_shroudwalker_enclave
	is_triggered_only = yes

	show_sound = {
		trigger = { is_robot_empire = yes }
		sound = event_psionic_robot
	}
	show_sound = {
		trigger = { is_robot_empire = no }
		sound = event_psionic
	}

	trigger = {
		NOR = {
			has_country_flag = $PATRON_TYPE$_betrayal
			has_country_flag = covenant_end_of_the_cycle
		}
	}

	option = {
		name = utopia.2658.a
		inline_script = {
			script = shroud/accept_covenant
			PATRON = $TECH_PATRON$
			MARK_TECH = $MARK_TECH$
		}
		hidden_effect = {
			accept_covenant = $PATRON_TYPE$
		}
		
		custom_tooltip = shroud.covenant_$TECH_PATRON$_accept_bonus.tt
		custom_tooltip = shroud.unlock_covenant_accords.tt
		
		if = {
			limit = { 
				has_technology = tech_psionic_aura 
				NOT = { has_technology = tech_aura_intensification }
				can_research_technology = tech_aura_intensification
			}
			add_tech_progress = {
				tech = tech_aura_intensification
				progress = 0.1
			}
		}
	}
	option = {
		name = $EVENT_ID$.b
		custom_tooltip = $CHAIN$_end
		default_hide_option = yes
		hidden_effect = {
			if = {
				limit = { is_robot_empire = yes }
				end_event_chain = robot_$CHAIN$
			}
			else = {
				end_event_chain = $CHAIN$
			}
			remove_country_flag = has_shroud_patron
			refuse_covenant = {
				patron = $PATRON_TYPE$
				reset_attunement = yes
			}
		}
	}
	option = {
		allow = {
			NOT = { is_chosen_empire = yes }
		}
		name = shroud.forge_our_own_path
		shroud_forge_your_own_path = yes
	}
}
