﻿namespace = deviants_go_spouse

#0100
deviants_go_spouse.0100 = { 
	type = character_event
	title = deviants_go_spouse.0100.t
	desc = { 
		desc = deviants_go_spouse.0100.desc
		random_valid = {
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.q.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.w.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.e.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.r.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.t.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.y.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.u.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.i.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.o.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviants_go_spouse.0100.p.desc
			}
		}
	}
	theme = deviantsmaskgo 
	override_background = { reference =	bedchamber }
	left_portrait = {
		character = scope:deviant_go_random_1
		animation = flirtation 
	}
	right_portrait = {
		character = root
		animation = disapproval
	}
	trigger = {
		has_trait = deviants_mask
		is_female = yes
		NOT = { has_trait = lovers_pox }
		NOT = { has_trait = compassionate }
		NOT = { has_trait = content }
		NOT = { has_trait = temperate }
		NOT = { has_trait = humble }
		NOT = { has_trait = generous }
		primary_spouse = {
			OR = {	is_female = no	has_trait = futanari_genetic }
			age >= 18
			is_ai = yes
			is_available_ai_adult = yes
			NOT = { has_relation_soulmate = ROOT }
			NOT = { has_relation_lover = ROOT }
			OR = {
				has_trait = beauty_bad_1
				has_trait = beauty_bad_2
				has_trait = beauty_bad_3
			}
			NOT = { has_trait = lovers_pox }
			NOT = { has_trait = celibate }
			NOT = { 
					has_trait = eunuch_1
					has_trait = beardless_eunuch
				}
			NOT = { has_trait = blind }
			NOT = { has_trait = strong }
			NOT = { has_trait = athletic }
			NOT = { has_trait = physique_good_1 }
			NOT = { has_trait = physique_good_2 }
			NOT = { has_trait = physique_good_3 }
		}
	}
	immediate = {
		primary_spouse = {
			save_scope_as = deviant_go_random_1
		}
	}
	#
	option = {
		name = deviants_go_spouse.0100.a
		custom_tooltip = deviants_go_spouse.0100.a.tt
		hidden_effect = {
			random_list = {
				40 = {
					trigger_event = deviants_go_spouse.0110
				}
				20 = {
					trigger_event = deviants_go_spouse.0120
				}
			}	
		}	

	}	
	#
	option = {
		name = deviants_go_spouse.0100.b
		custom_tooltip = deviants_go_spouse.0100.b.tt
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = frustrated_opinion
			opinion = { -20 -10 }
		}
		scope:deviant_go_random_1 = {
			stress_impact = {
				base = minor_stress_impact_gain
				lustful = minor_stress_impact_gain
			}
		}	
		random_list = {
			25 = {
				custom_tooltip = deviants_go_spouse.0100.refused.tt
				add_prestige = minor_prestige_loss
				add_piety = minor_piety_loss
			}
			25 = {
				
			}
		}	
	}	
}

#0110
deviants_go_spouse.0110 = { 
	type = character_event
	title = deviants_go_spouse.0110.t
	desc = deviants_go_spouse.0110.desc
	theme = deviantsmaskgo 
	override_background = { reference =	deviant_uglybastard_vaginal_two }
	#
	option = {
		name = deviants_go_spouse.0110.a
		custom_tooltip = deviants_go_spouse.0110.a.tt
		had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = pregnancy_chance
		}
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = pleased_opinion
			opinion = { 2 10 }
		}

	}	
	#
	option = {
		name = deviants_go_spouse.0110.b
		custom_tooltip = deviants_go_spouse.0110.b.tt
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = frustrated_opinion
			opinion = { -20 -10 }
		}
		scope:deviant_go_random_1 = {
			stress_impact = {
				base = minor_stress_impact_gain
				lustful = minor_stress_impact_gain
			}
		}		
	}	
}

#120
deviants_go_spouse.0120 = { 
	type = character_event
	title = deviants_go_spouse.0120.t
	desc = deviants_go_spouse.0120.desc
	theme = deviantsmaskgo 
	override_background = { reference =	deviant_uglybastard_foreplay_one }
	#
	option = {
		name = deviants_go_spouse.0120.a
		custom_tooltip = deviants_go_spouse.0120.a.tt
		trigger_event = deviants_go_spouse.0121

	}	
	#
	option = {
		name = deviants_go_spouse.0120.b
		custom_tooltip = deviants_go_spouse.0120.b.tt
		stress_impact = {
			base = medium_stress_impact_loss
		}
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = frustrated_opinion
			opinion = { -30 -20 }
		}
		scope:deviant_go_random_1 = {
			stress_impact = {
				base = medium_stress_impact_gain
				lustful = medium_stress_impact_gain
			}
		}	
		random_list = {
			25 = {
				custom_tooltip = deviants_go_spouse.0100.refused.tt
				add_prestige = minor_prestige_loss
				add_piety = minor_piety_loss
			}
			25 = {
				
			}
		}			
	}	
}

#121
deviants_go_spouse.0121 = { 
	type = character_event
	title = deviants_go_spouse.0121.t
	desc = deviants_go_spouse.0121.desc
	theme = deviantsmaskgo 
	override_background = { reference =	deviant_uglybastard_vaginal_one }
	#
	option = {
		name = deviants_go_spouse.0121.a
		custom_tooltip = deviants_go_spouse.0121.a.tt
		trigger_event = deviants_go_spouse.0122

	}	
	#
	option = {
		name = deviants_go_spouse.0121.b
		custom_tooltip = deviants_go_spouse.0121.b.tt
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = frustrated_opinion
			opinion = { -20 -10 }
		}
		scope:deviant_go_random_1 = {
			stress_impact = {
				base = minor_stress_impact_gain
				lustful = minor_stress_impact_gain
			}
		}				
	}	
}

#122
deviants_go_spouse.0122 = { 
	type = character_event
	title = deviants_go_spouse.0122.t
	desc = deviants_go_spouse.0122.desc
	theme = deviantsmaskgo 
	override_background = { reference =	deviant_uglybastard_vaginalcum_one }
	immediate = {
		had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = pregnancy_chance
		}
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = pleased_opinion
			opinion = { 2 10 }
		}
	}
	#
	option = {
		name = deviants_go_spouse.0122.a
		custom_tooltip = deviants_go_spouse.0122.a.tt
	}		
	#lick his cock clean like he wants
	option = {
		name = deviants_go_spouse.0122.b
		custom_tooltip = deviants_go_spouse.0122.b.tt
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = pleased_opinion
			opinion = { 2 10 }
		}
		stress_impact = {
			base = minor_stress_impact_gain
		}
	}	
}


#0200 basic lover knight fuck
deviants_go_spouse.0200 = { 
	type = character_event
	title = deviants_go_spouse.0200.t
	desc = deviants_go_spouse.0200.desc
	theme = deviantsmaskgo 
	 override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviantcourtesanvaginalmissionaryfuck
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviant_fullnelson_fuck_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_fullnelson_fuck_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_fullnelson_fuck_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_matingpress_fuck_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_matingpress_fuck_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_vaginal_fuck_1
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_vaginal_fuck_6
	}
    override_background = {
		trigger = { 
            exists = scope:background_nine
        }
		reference = deviant_pronebone_anal_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_ten
        }
		reference = deviant_pronebone_anal_one
	}
	trigger = {
		faith = { has_doctrine_parameter = adultery_female_crime }
		has_trait = deviants_mask
		is_female = yes
		has_trait = lustful
		any_knight = {
			prowess >= high_skill_rating
			OR = {
				has_relation_lover = root
				has_relation_soulmate = root
			}	
			is_male = yes
			NOT = { is_concubine_of = root }
			NOT = { is_spouse_of = root }
			NOT = { has_trait = chaste }
			NOT = { has_trait = celibate }
			NOT = { has_trait = eunuch_1 }
			NOT = { has_trait = beardless_eunuch }
			age >= 18
			is_available_adult = yes
		}
	}
	immediate = {
		random_knight = {
			limit = {
				prowess >= high_skill_rating
				OR = {
					has_relation_lover = root
					has_relation_soulmate = root
				}	
				NOT = { is_concubine_of = root }
				NOT = { is_spouse_of = root }
				is_male = yes
				NOT = { has_trait = chaste }
				NOT = { has_trait = celibate }
				NOT = { has_trait = eunuch_1 }
				NOT = { has_trait = beardless_eunuch }
				age >= 18
				is_available_adult = yes
			}
			save_scope_as = deviant_go_random_1
		}
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = background_one
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_two
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_three
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_four
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_five
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_six
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
		}
	}
	#harder
	option = {
		name = deviants_go_spouse.0200.a
		custom_tooltip = deviants_go_spouse.0200.a.tt
		had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = 70
		}
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = pleased_opinion
			opinion = { 2 10 }
		}
		random_list = {
			100 = {
				add_piety = minor_piety_loss
				add_prestige = minor_prestige_loss
			}
			25 = {
				trigger = {
					is_married = yes
					NOT = { has_trait = fornicator }
				}
				add_trait = fornicator
				
			}
			25 = {
				trigger = {
					is_married = yes
					NOT = { has_trait = adulterer }
				}
				add_trait = adulterer
				
			}
			25 = {
				trigger = {
					NOT = { has_trait = deviant }
				}
				add_trait = deviant
			}
			100 = {
			}
		}
	}		
	#we should stop before anyone sees
	option = {
		name = deviants_go_spouse.0200.b
		custom_tooltip = deviants_go_spouse.0200.b.tt
		reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = disappointed_opinion
			opinion = { -2 -10 }
		}
		stress_impact = {
			lustful = major_stress_impact_gain
		}
	}	
}
