﻿# This is a AI decision that allows Paelex to have sexy times with each other in order to lose stress
# Not available to player
regula_stress_loss_sex_decision = {
	# Text
	desc = stress_loss_profligate_decision_desc
	selection_tooltip = stress_loss_profligate_decision_tooltip

	# Art
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
	}
	
	# Grouping
	decision_group_type = regula
	sort_order = 1

	# AI
	# This is AI only
	ai_check_interval = 6
	ai_potential = {
		is_female = yes
		is_adult = yes
		stress >= low_medium_stress
	}
	ai_will_do = {
		base = 0

		modifier = {
			add = 25
			stress > low_medium_stress
		}

		modifier = {
			add = 50
			stress > medium_stress
		}

		modifier = {
			add = 75
			stress > high_stress
		}

        modifier = {
            add = 15
			OR = {
				has_trait = lustful
				has_trait = deviant
				has_trait = rakish
			}
        }

        modifier = {
            add = 10
            has_sexuality = bisexual
        }

        modifier = {
            add = 25
            has_sexuality = homosexual
        }

		modifier = {
			add = -50
			has_trait = chaste
		}
	}

	# Triggers for showing
	is_shown = {
		is_ai = yes
		is_male = no
		is_regula_leader_devoted_trigger = yes
		stress > low_medium_stress
	}

	is_valid_showing_failures_only = {
		is_available = yes
	}

	# Cooldown
	cooldown = { years = 3 }

	# Effect
	effect = {
		trigger_event = {
			on_action = regula_stress_loss_sex
		}
	}
}
