select_personal_leviathan_union_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
	}
	desc = select_personal_leviathan_union_decision_desc
	selection_tooltip = select_personal_leviathan_union_decision_tooltip

	is_shown = {
		# Following a valid religion & faith.
		faith = { has_doctrine = special_doctrine_british_unity } #Do they have the Leviathan virtues/sins doctrine?

		faith = { has_doctrine_parameter = select_personal_god_active }
	}

	is_valid = {
	}

	is_valid_showing_failures_only = {
		# Have to at _least_ not be in piety debt.
		piety >= 0
	}

	cooldown = { years = 2 }

	effect = {
		# Show the possible options.
		show_as_tooltip = {
			random_list = {
				desc = select_personal_leviathan_union_decision_tt
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_nationalisators
					add_character_modifier = bhakti_leviathan_nationalisators
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_technosaurs
					add_character_modifier = bhakti_leviathan_technosaurs
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_mechasaurs
					add_character_modifier = bhakti_leviathan_mechasaurs
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_petrosaurs
					add_character_modifier = bhakti_leviathan_petrosaurs
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_metallurgicals
					add_character_modifier = bhakti_leviathan_metallurgicals
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_nautiluses
					add_character_modifier = bhakti_leviathan_nautiluses
				}
				100 = {
					show_chance = no
					desc = select_personal_leviathan_union_decision.select_aerosaurs
					add_character_modifier = bhakti_leviathan_aerosaurs
				}
			}
		}
		# And the actual effect.
		trigger_event = NEOW_religious_decision.0001
	}

	ai_check_interval = 96
	
	ai_potential = {
		piety >= minor_piety_value
		NOR = {
			has_character_modifier = bhakti_leviathan_nationalisators
			has_character_modifier = bhakti_leviathan_technosaurs
			has_character_modifier = bhakti_leviathan_mechasaurs
			has_character_modifier = bhakti_leviathan_petrosaurs
			has_character_modifier = bhakti_leviathan_metallurgicals
			has_character_modifier = bhakti_leviathan_nautiluses
			has_character_modifier = bhakti_leviathan_aerosaurs
		}
	}

	ai_will_do = {
		base = 100
	}
}