﻿become_dragonrider_house_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dragons.dds"
	}

	decision_group_type = major

	desc = become_dragonrider_house_decision_desc
	selection_tooltip = become_dragonrider_house_decision_tooltip

	ai_check_interval = 120

	is_shown = {
		is_house_head = yes
		house ?= {
			NOT = { has_house_modifier = dragonrider_house_modifier }
			any_house_member = {
				has_trait = dragonrider
			}
		}
	}

	is_valid = {
		has_trait = dragonrider
		house ?= {
			custom_tooltip = {
				text = become_dragonrider_house_decision_living_house_member_count_tt
				any_house_member = {
					has_trait = dragonrider
					count >= 5
				}
			}
		}
	}

	effect = {
		house ?= { add_house_modifier = dragonrider_house_modifier }
		dynasty = { set_variable = agot_doctrine_of_exceptionalism_incest_exemption }
		dynasty = { add_dynasty_modifier = valyrian_heritage_dynasty_modifier }
		if = {
			limit = { NOT = { faith = { has_doctrine = agot_exceptionalism_doctrine } } }
			faith = { add_doctrine = agot_exceptionalism_doctrine }
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

incest_for_dead_dragonlords_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dragons.dds"
	}

	decision_group_type = major

	desc = incest_for_dead_dragonlords_decision_desc
	selection_tooltip = incest_for_dead_dragonlords_decision_tooltip

	ai_check_interval = 120

	is_shown = {
		house ?= { has_house_modifier = dragonrider_house_modifier }
		OR = {
			NOT = { dynasty = { has_variable = agot_doctrine_of_exceptionalism_incest_exemption } }
			NOT = { faith = { add_doctrine = agot_exceptionalism_doctrine } }
		}
	}

	effect = {
		custom_tooltip = incest_for_dead_dragonlords_decision_effect
		dynasty = { set_variable = agot_doctrine_of_exceptionalism_incest_exemption }
		if = {
			limit = { dynasty = { has_dynasty_modifier = valyrian_heritage_dynasty_modifier } }
			dynasty = { add_dynasty_modifier = valyrian_heritage_dynasty_modifier }
		}
		if = {
			limit = { NOT = { faith = { has_doctrine = agot_exceptionalism_doctrine } } }
			faith = { add_doctrine = agot_exceptionalism_doctrine }
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}