﻿#### victime female ####
start_defile_interaction1 = {

	icon = lay_with_prisoner_interaction
 #	common_interaction = yes
	interface_priority = 90
	category = interaction_category_prison
	
	desc = legacy_defile_desc	
	
	is_shown = {
		has_game_rule = GPT_interactions_enabled
		scope:actor = { is_female = no }
	 #	OR = {
	 #		scope:actor = { has_sexuality =  heterosexual  }
	 #		scope:actor = { has_sexuality =  bisexual  }
	 #		scope:actor = { has_perk = unshackled_lust_perk }
	 #	}	
		scope:recipient = { is_imprisoned_by = scope:actor }
		scope:recipient = { is_female = yes }
	 #	scope:recipient = { fertility > 0 }
		scope:recipient = { is_adult = yes }
		scope:actor = { is_adult = yes }		
	}

	is_valid_showing_failures_only = {
	 #	scope:actor = {
	 #		custom_tooltip = {
	 #			text = cof_ti_break_prisoner_high_compassion
	 #			scope:actor = { ai_compassion <= 0 }
	 #		}
	 #	}
		scope:recipient = {
			is_adult = yes
		}
	}
	
	auto_accept = yes

	on_accept = {
	 #	scope:actor = { save_scope_as = gpt_defiler }
	 #	scope:recipient = { save_scope_as = gpt_defiled }
		scope:actor = {
			trigger_event = legacy_defile.0001
		    add_character_flag = {
			    flag = is_naked
			    days = 9650
		    }
			stress_impact = {
				lustful = -40
				vengeful = -20
				paranoid = -10
				arbitrary = -10
				callous = -10
				eccentric = -20
				wrathful = -10
				arrogant = -10
				impatient = -10
				sadistic = -30
			}
			stress_impact = {
				compassionate = 100
				chaste = 100
				forgiving = 40
				content = 40
				shy = 20
				just = 40
				patient = 10
				temperate = 10
			}

			add_secret = {
				type = secret_deviant
			}
		}
	
		scope:recipient = {
		    add_character_flag = {	flag = is_naked days = 9650	}
			if = {
				limit = {
					age < 40
					fertility > 0
					NOT = { has_trait = pregnant }
				}
				make_pregnant = { father = scope:actor number_of_children = 1 }
			}
			add_opinion = {
				target = scope:actor
				modifier = legacy_defiled_opinion 
			}
			add_character_modifier = { modifier = legacy_defiled_modifier years = 5 }
			add_stress = 40

			stress_impact = {
				compassionate = 40
				chaste = 40
				craven = 40
				forgiving = 10
				lazy = 10
				shy = 20
				just = 20
				arrogant = 20
			}

			stress_impact = {
				lustful = -40
				brave = -20
			}
		}
	}

	cooldown = { years = 2 }

	ai_frequency = 36

	ai_targets = {
		ai_recipients = prisoners
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
		modifier = {
			add = 20
			scope:actor = {	has_trait = lustful }
			scope:actor = {	stress_level >= 1 }
		}
		modifier = {
			add = 20
			scope:actor = {	has_trait = lustful }
			scope:actor = {	stress_level >= 2 }
		}
		modifier = {
			add = 10
			scope:actor = {	has_trait = sadistic }
			scope:actor = {	stress_level >= 1 }
		}
		modifier = {
			add = 20
			scope:actor = {	has_trait = sadistic }
			scope:actor = {	stress_level >= 2 }
		}
	}
}

#### victime male ####
start_defile_interaction3 = {

	icon = lay_with_prisoner_interaction
 #	common_interaction = yes
	interface_priority = 90
	category = interaction_category_prison
	
	desc = legacy_defile_desc	
	
	is_shown = {
		has_game_rule = GPT_interactions_enabled
		scope:actor = { is_female = yes }
	 #	OR = {
	 #		scope:actor = { has_sexuality =  heterosexual  }
	 #		scope:actor = { has_sexuality =  bisexual  }
	 #		scope:actor = { has_perk = unshackled_lust_perk }
	 #	}	
		scope:recipient = { is_imprisoned_by = scope:actor }
		scope:recipient = { is_adult = yes }
		scope:recipient = { is_female = no }
		scope:recipient = { is_adult = yes }
		scope:actor = { is_adult = yes }		
	}
	
	auto_accept = yes	
	
	on_accept = {
	 #	scope:actor = { save_scope_as = gpt_defiler }
	 #	scope:recipient = { save_scope_as = gpt_defiled }
		scope:actor = {
			trigger_event = legacy_defile.0001
		    add_character_flag = {
			    flag = is_naked
			    days = 9650
		    }
			stress_impact = {
				lustful = -40
				vengeful = -20
				paranoid = -10
				arbitrary = -10
				callous = -10
				eccentric = -20
				wrathful = -10
				arrogant = -10
				impatient = -10
				sadistic = -30
			}
			stress_impact = {
				compassionate = 100
				chaste = 100
				forgiving = 40
				content = 40
				shy = 20
				just = 40
				patient = 10
				temperate = 10
			}

			add_secret = {
				type = secret_deviant
			}
		}

		scope:actor = {
			if = {
				limit = {
					age < 40
					fertility > 0
					NOT = { has_trait = pregnant }
				}
				make_pregnant = { father = scope:recipient number_of_children = 1 }
			}
		}
	
		scope:recipient = {
		    add_character_flag = {	flag = is_naked days = 9650	}
			add_opinion = {
				target = scope:actor
				modifier = legacy_defiled_opinion 
			}
			add_character_modifier = { modifier = legacy_defiled_modifier years = 5 }
			add_stress = 40

			stress_impact = {
				compassionate = 40
				chaste = 40
				craven = 40
				forgiving = 10
				lazy = 10
				shy = 20
				just = 20
				arrogant = 20
			}

			stress_impact = {
				lustful = -40
				brave = -20
			}
		}
	}

	cooldown = { years = 2 }

	ai_frequency = 36

	ai_targets = {
		ai_recipients = prisoners
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
		modifier = {
			add = 20
			scope:actor = {	has_trait = lustful }
			scope:actor = {	stress_level >= 1 }
		}
		modifier = {
			add = 20
			scope:actor = {	has_trait = lustful }
			scope:actor = {	stress_level >= 2 }
		}
		modifier = {
			add = 10
			scope:actor = {	has_trait = sadistic }
			scope:actor = {	stress_level >= 1 }
		}
		modifier = {
			add = 20
			scope:actor = {	has_trait = sadistic }
			scope:actor = {	stress_level >= 2 }
		}
	}
}