﻿regula_stress_loss_sex_decision = {
	picture = "gfx/interface/illustrations/decisions/decision_misc.dds"
	desc = stress_loss_profligate_decision_desc
	selection_tooltip = stress_loss_profligate_decision_tooltip

	ai_check_interval = 6

	cooldown = { days = 100 }

	is_shown = {
		is_male = no
		OR = {
            has_trait = paelex
            has_trait = domina
            AND = {
                has_trait = mulsa
                has_trait = lustful
            }
        }
		stress > 200
	}

	is_valid_showing_failures_only = {
		is_available = yes
	}

	effect = {
		trigger_event = {
			on_action = regula_stress_loss_sex
		}
	}
	
	ai_potential = {
		is_adult = yes
		stress > 200
	}

	ai_will_do = {
		base = 100
		### UPDATE - If Paradox ever fixes the stress spiral, re-enable this and change the base to 0.
		# modifier = { 
		# 	add = 25
		# 	stress > low_medium_stress
		# }

		# modifier = {
		# 	add = 50
		# 	stress > medium_stress
		# }

		# modifier = {
		# 	add = 75
		# 	stress > high_stress
		# }

        # modifier = {
        #     add = 15
        #     has_trait = lustful
        # }
        # modifier = {
        #     add = 10
        #     has_sexuality = bisexual
        # }
        # modifier = {
        #     add = 25
        #     has_sexuality = homosexual
        # }
	}
}