mythos_reveal_cult = {
	title = mythos_startup_decision_title
	desc = mythos_startup_decision_desc
	picture = "gfx/interface/illustrations/decisions/decision_major_religion.dds"

	major = yes
	ai_goal = no
	ai_check_interval = 0

	confirm_text = mythos_startup_decision_button

	#selection_tooltip = <key> | { ... } # override tooltip when selecting the decision from the decision list, default: "<key>_tooltip"; supports dynamic descriptions like in events (first_valid, ...); scope: character

	is_shown = {
		NOT = {
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:mythos_reveal_cult
			}
		}
	}
	is_valid = {
		always = yes
	}

	cost = {}
	effect = {
		custom_description = {
			custom_tooltip = mythos_startup_decision_effect_message
			subject = capital_county
			object = religion:mythos_religion
		}
		#Can only be done once
		add_to_global_variable_list = {
			name = unavailable_unique_decisions
			target = flag:mythos_reveal_cult
		}
		trigger_event = mythos_event.0001
	}

	ai_potential = { always = no }
	ai_will_do = { base = 0 }
}

mythos_fulfill_covenant = {
	title = mythos_fulfill_covenant_title
	desc = mythos_fulfill_covenant_desc
	picture = "gfx/interface/illustrations/decisions/decision_personal_religious_sea.dds"

	major = no
	ai_goal = no
	ai_check_interval = 2

	confirm_text = mythos_ia_dagon

	is_shown = {
		is_male = yes
		faith = {
			has_doctrine = doctrine_mythos_deep_covenant
		}
	}
	is_valid_showing_failures_only = {
		is_married = yes
		any_child = {
			desc = mythos_fulfill_covenant_existing_children
			count < 2
			has_trait = mythos_deep_hybrid
		}
	}
	is_valid = {
		is_married = yes
		faith = {
			has_doctrine = doctrine_mythos_deep_covenant
		}
		NOR = {
			has_trait = mythos_deep_hybrid_3
			has_trait = mythos_deep_hybrid_4
			has_trait = mythos_deep_hybrid_5
		}
	}

	cooldown = { years = 1 }

	cost = {}
	effect = {
		custom_tooltip = mythos_fulfill_covenant_effect_message
		trigger_event = {
			id = mythos_event.0310
			days = { 42 69 }
		}
	}

	ai_potential = {
		OR = {
			NOT = {
				has_trait = mythos_deep_hybrid
			}
			has_trait = lustful
		}
	}

	ai_will_do = {
		base = 100
		modifier = {
			add = -10
			has_trait = cynical
		}
	}
}

mythos_return_to_the_deep = {
	title = mythos_return_to_the_deep_title
	desc = mythos_return_to_the_deep_desc
	picture = "gfx/interface/illustrations/decisions/decision_personal_religious_sea.dds"

	major = no
	ai_goal = no
	ai_check_interval = 12

	confirm_text = mythos_return_to_the_deep_button

	is_shown = {
		OR = {
			has_trait = mythos_deep_hybrid_3
			has_trait = mythos_deep_hybrid_4
			has_trait = mythos_deep_hybrid_5
		}
		age >= 16
	}

	is_valid_showing_failures_only = {
		is_in_an_activity = no
		is_imprisoned = no
	}

	is_valid = {
		any_child = {
			desc = mythos_return_to_the_deep_existing_children
			count = 0
			age < 16
			has_trait = mythos_deep_hybrid
		}
	}

	effect = {
		custom_tooltip = mythos_return_to_the_deep_effect_message
		death = {
			death_reason = mythos_death_returned_to_the_deep
		}
	}

	ai_potential = {
		OR = {
			has_trait = zealous
			stress >= 100
			has_trait = mythos_deep_hybrid_5
		}
	}

	ai_will_do = {
		base = 100
	}
}
