﻿
#begin exploring your darker impulses
deviants_maskgo_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_perversion.dds"
	}
	decision_group_type = deviants_go_decisions
	desc = deviants_maskgo_decision_desc
	selection_tooltip = deviants_maskgo_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		NOT = { has_trait = deviants_mask }
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_ai = no
		is_incapable = no
		is_imprisoned = no
		NOT = { has_trait = blind }
		NOT = { has_trait = celibate }
		NOT = { has_trait = deviants_mask }
	}
	cooldown = { years = 1 }
	effect = {
        custom_tooltip = deviants_maskgo_decision_tooltip
		trigger_event = deviants_maskgo.0020
	}	
}
#if you lose the lust/sadistic trait, get trait again
deviants_gettraitback_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_perversion.dds"
	}
	desc = deviants_maskgo_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_maskgo_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		NOT = { has_trait = lustful }
		NOT = { has_trait = sadistic }
		has_trait = deviants_mask
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		NOT = { has_trait = blind }
		NOT = { has_trait = celibate }
	}
	cooldown = { years = 2 }
	effect = {
        custom_tooltip = deviants_maskgo_decision_tooltip
		trigger_event = deviants_maskgo.0020
	}	
}
#stop the thrills
deviants_burnmask_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_perversion.dds"
	}
	desc = deviants_burnmask_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_burnmask_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		has_trait = deviants_mask
	}
	is_valid_showing_failures_only = {
		age >= 45
		NOT = { has_trait = deviants_demonanalslut }
	}
	effect = {
        custom_tooltip = deviants_burnmask_decision_tooltip
		remove_trait = deviants_mask
	}	
}

deviants_getdog_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_dog_kennel.dds"
	}
	desc = deviants_getdog_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_getdog_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		#is_landed = yes
		NOT = { has_character_modifier = dog_story_modifier }
		NOT = { has_trait = deviants_canine_lover_one }
		NOT = { has_trait = deviants_canine_lover_two }
		NOT = { has_trait = deviants_canine_lover_three }
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		#is_landed = yes
		is_in_army = no
		is_female = yes
		NOT = { has_character_modifier = dog_story_modifier }
		NOT = { has_trait = deviants_canine_lover_one }
		NOT = { has_trait = deviants_canine_lover_two }
		NOT = { has_trait = deviants_canine_lover_three }
	}
	cooldown = { months = 2 }
	effect = {
        custom_tooltip = deviants_getdog_decision_tooltip
		trigger_event = {
				id = deviantsgo_beast.0100
				days = 2 
		}
	}	
}

deviants_getdogagain_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_dog_kennel.dds"
	}
	desc = deviants_getdogagain_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_getdogagain_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		NOT = { has_character_modifier = dog_story_modifier }
		OR = { 	
			has_trait = deviants_canine_lover_one 
			has_trait = deviants_canine_lover_two 
			has_trait = deviants_canine_lover_three 
		}
	}
	is_valid = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		#is_landed = yes
		is_female = yes
		NOT = { has_character_modifier = dog_story_modifier }
		OR = { 	
			has_trait = deviants_canine_lover_one 
			has_trait = deviants_canine_lover_two 
			has_trait = deviants_canine_lover_three 
		}
	}
	cooldown = { months = 2 }
	effect = {
        custom_tooltip = deviants_getdogagain_decision_tooltip
		trigger_event = {
				id = deviantsgo_beast.0101
				days = 2 
		}
	}	
}

deviants_playdog_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_dog_kennel.dds"
	}
	desc = deviants_playdog_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_playdog_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		NOT = { has_trait = deviants_canine_lover_two }
		NOT = { has_trait = deviants_canine_lover_three }
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		#is_landed = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		NOT = { has_trait = deviants_canine_lover_two }
		NOT = { has_trait = deviants_canine_lover_three }
	}
	cooldown = { days = 30 }
	effect = {
        custom_tooltip = deviants_playdog_decision_tooltip
		if = {
			limit = { NOT = { has_trait = deviants_canine_lover_one } }
			add_trait = deviants_canine_lover_one
		}
		hidden_effect = {
			random_list = {
				40 = {
					trigger_event = deviantsgo_beast.0210
				}
				20 = {
					trigger_event = deviantsgo_beast.0220
				}
                40 = {
					trigger_event = deviantsgo_beast.0230
				}
				10 = {
					trigger_event = deviantsgo_beast.0240
				}
				20 = {
					trigger_event = deviantsgo_beast.0250
				}
				40 = {
					trigger_event = deviantsgo_beast.0260
				}
				10 = {
					trigger_event = deviantsgo_beast.0270
				}
				10 = {
					trigger_event = deviantsgo_beast.0280
				}
				10 = {
					trigger_event = deviantsgo_beast.0290
				}
				40 = {
					trigger_event = deviantsgo_beast.0300
				}
			}	
		}
		hidden_effect = {
			trigger_event = {
				id = deviantsgo_beast.0500
				days = 2 
			}
		}
	}	
}


deviants_fonddog_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_dog_kennel.dds"
	}
	desc = deviants_fonddog_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_fonddog_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		has_trait = deviants_canine_lover_two
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		#is_landed = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		has_trait = deviants_canine_lover_two
	}
	cooldown = { days = 30 }
	effect = {
        custom_tooltip = deviants_fonddog_decision_tooltip
		hidden_effect = {
			random_list = {
				40 = {
					trigger = { 
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 20
						}
					 }
					trigger_event = deviantsgo_beast.1000
				}
				40 = {
					trigger = { 
						has_character_flag = deviant_dog_exercise_field_one
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 20
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 40
						}
					 }
					trigger_event = deviantsgo_beast.1010
				}
                40 = {
					trigger = { 
						has_character_flag = deviant_dog_exercise_field_two
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 40
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 70
						}
					 }
					trigger_event = deviantsgo_beast.1020
				}
				40 = {
					trigger = { 
						has_character_flag = deviant_dog_exercise_field_three
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 70
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 100
						}
					 }
					trigger_event = deviantsgo_beast.1030
				}
				40 = {
					trigger = { 
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 20
						}
					 }
					trigger_event = deviantsgo_beast.1100
				}
				40 = {
					trigger = { 
						has_character_flag = deviant_dog_study_business_one
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 20
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 40
						}
					 }
					trigger_event = deviantsgo_beast.1110
				}
                40 = {
					trigger = { 
						has_character_flag = deviant_dog_study_business_two
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 40
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 70
						}
					 }
					trigger_event = deviantsgo_beast.1120
				}
				40 = {
					trigger = { 
						has_character_flag = deviant_dog_study_business_three
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 70
						}
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value < 100
						}
					 }
					trigger_event = deviantsgo_beast.1130
				}
				40 = {
					trigger = { 
						has_trait_xp = {
							trait = deviants_canine_lover_two
							track = deviant_canine_lover_fame_two
							value >= 100
						}
					 }
					trigger_event = deviantsgo_beast.1900
				}
			}	
		}
	}	
}

deviants_lovedog_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_dog_kennel.dds"
	}
	desc = deviants_lovedog_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_lovedog_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		has_trait = deviants_canine_lover_three
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		#is_landed = yes
		is_female = yes
		has_character_modifier = dog_story_modifier
		has_trait = deviants_canine_lover_three
	}
	cooldown = { days = 30 }
	effect = {
        custom_tooltip = deviants_lovedog_decision_tooltip
		trigger_event = deviantsgo_beast.3000
		if = {
			limit = { has_trait = deviants_canine_lover_one }
			remove_trait = deviants_canine_lover_one
		}
		if = {
			limit = { has_trait = deviants_canine_lover_two }
			remove_trait = deviants_canine_lover_two
		}
	}	
}

deviants_startstreetslut_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviants_street_slut.dds"
	}
	desc = deviants_startstreetslut_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_startstreetslut_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		has_trait = lustful
		has_trait = deviants_mask
		NOT = { has_trait = deviants_campslut }
		has_character_modifier = deviants_strangebook_modifier
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		is_female = yes
		#is_landed = yes
		has_trait = lustful
		has_trait = deviants_mask
		NOT = { has_trait = deviants_campslut }
		has_character_modifier = deviants_strangebook_modifier
	}
	cooldown = { days = 120 }
	effect = {
        custom_tooltip = deviants_startstreetslut_decision_tooltip
		trigger_event = deviants_campslut.6000
	}	
}

deviants_startmerchant_decision = {
	picture = {
		reference = "gfx/interface/illustrations/event_scenes/deviant_black_market.dds"
	}
	desc = deviants_startmerchant_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_startmerchant_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		OR = {
			has_trait = deviants_mask
			has_trait = deviants_strange_dildo
			has_trait = deviant_courtesan_slut
		}
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_ai = no
		is_incapable = no
		is_imprisoned = no
	}
	cooldown = { days = 10 }
	effect = {
        custom_tooltip = deviants_startmerchant_decision_tooltip
		trigger_event = deviants_maskgo.0099
	}	
}

deviants_innslut_decision = {
	picture = {
		reference = "gfx/interface/illustrations/event_scenes/deviantorgyroombackground.dds"
	}
	desc = deviants_innslut_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_innslut_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		has_trait = lustful_inn_slut
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_incapable = no
		is_imprisoned = no
		has_trait = lustful_inn_slut
	}
	cooldown = { days = 30 }
	effect = {
        custom_tooltip = deviants_innslut_decision_tooltip
		trigger_event = deviants_campslut.8999
	}	
}

deviants_godealwithstress_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_perversion.dds"
	}
	desc = deviants_godealwithstress_decision_desc
	decision_group_type = deviants_go_decisions
	selection_tooltip = deviants_godealwithstress_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		has_trait = deviants_mask
	}
	is_valid_showing_failures_only = {
		custom_description = {
			stress_level >= 1
			text = not_enough_stress
		}
		age >= 18
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		#is_landed = yes
		is_in_army = no
		has_trait = deviants_mask
	}
	cooldown = { days = 90 }
	effect = {
        custom_tooltip = deviants_godealwithstress_decision_tooltip
		trigger_event = deviants_gorandom.1307
	}	
}

deviantgo_homage_decision = {
	ai_check_interval = 0
	picture = {
		reference = "gfx/interface/illustrations/decisions/deviant_homage_decision_picture.dds"
	}
	cost = {
		prestige = standard_activity_cost
	}
	decision_group_type = deviants_go_decisions

	is_shown = {
		exists = liege
		is_independent_ruler = no
		OR = {
			has_trait = deviant_courtesan_slut
			has_trait = deviants_mask
		}	
	}

	is_valid = {
		#is_landed = yes
		primary_title.tier >= tier_county
		liege = { has_royal_court = yes }
		OR = {
			government_has_flag = government_is_feudal
			government_has_flag = government_is_clan
			government_has_flag = government_is_administrative
		}
		is_available_adult = yes
		#is_landed = yes
		is_female = yes
		NOT = { has_trait = pregnant }
		liege = { is_available_adult = yes }
		liege = { is_male = yes }
		liege = { age >= 18 }
		liege = { 
			NOT = { has_character_modifier = deviant_boredofwhores_modifier }
			OR = {
				NOT = { has_sexuality = homosexual }
				has_trait = sadistic
			}
			NOT = { has_relation_lover = root }
			NOT = { is_concubine_of = root }
			NOT = { is_spouse_of = root }
			NOT = { is_child_of = root }
			NOT = { is_sibling_of = root }
			NOT = { is_parent_of = root }
			NOT = { is_grandparent_of = root }
			NOT = { is_grandchild_of = root }
			NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
			NOT = { has_trait = eunuch_1 }
			NOT = { has_trait = beardless_eunuch }
			NOT = { has_trait = blind }
			NOT = { has_trait = loyal }
		}
		is_at_war_with_liege = no
		is_ai = no
		has_trait = deviant_courtesan_slut
	}
	effect = {
		custom_tooltip = deviantgo_homage_decision_effects
		start_travel_plan = {
			destination = liege.capital_province
			on_start_on_action = petition_liege_start
			on_travel_planner_cancel_on_action = petition_liege_travel_planner_exit 
			on_arrival_event = deviant_pay_homage.0100
			on_arrival_destinations = all_but_last
		}
	}
	
	ai_potential = {
		is_ai = no
	}

	ai_will_do = {
		base = 0
	}
}
#courtesan start
those_deviant_courtesans_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/those_deviant_courtesans.dds"
	}
	desc = those_deviant_courtesans_decision_desc
	selection_tooltip = those_deviant_courtesans_decision_tooltip
	decision_group_type = deviants_go_decisions
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
		is_female = yes
		#is_landed = yes
		NOT = { has_trait = deviant_courtesan_slut }
	}
	is_valid_showing_failures_only = {
		age >= 18
		has_trait = lustful
		is_female = yes
		is_incapable = no
		is_imprisoned = no
		is_travelling = no
		is_in_army = no
		#is_landed = yes
		exists = capital_province
		NOT = { has_trait = blind }
		NOT = { has_trait = chaste }
		NOT = { has_trait = shy }
		NOT = { has_trait = celibate }
		NOT = { has_trait = deviant_courtesan_slut }

	}
	cooldown = { years = 1 }
	effect = {
        custom_tooltip = those_deviant_courtesans_decision_tooltip
		trigger_event = deviants_maskgo.0030
	}	
}

#courtesan start if landless
landless_deviant_courtesan_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/those_deviant_courtesans.dds"
	}
	desc = landless_deviant_courtesan_decision_desc
	selection_tooltip = landless_deviant_courtesan_decision_tooltip
	decision_group_type = deviants_go_decisions
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_female = yes
		NOT = { has_trait = deviant_courtesan_slut }
		government_has_flag = government_is_landless_adventurer
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_female = yes
		government_has_flag = government_is_landless_adventurer
		NOT = { has_trait = blind }
		NOT = { has_trait = chaste }
		NOT = { has_trait = shy }
		NOT = { has_trait = celibate }
		NOT = { has_trait = deviant_courtesan_slut }

	}
	cooldown = { years = 1 }
	effect = {
        custom_tooltip = landless_deviant_courtesan_decision_tooltip
		add_trait = deviant_courtesan_slut
	}	
}

#stop being courtesan
quit_being_courtesan_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/those_deviant_courtesans.dds"
	}
	desc = quit_being_courtesan_decision_desc
	selection_tooltip = quit_being_courtesan_decision_tooltip
	decision_group_type = deviants_go_decisions
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		has_trait = deviant_courtesan_slut
	}
	is_valid_showing_failures_only = {
		has_trait = deviant_courtesan_slut

	}
	cooldown = { years = 1 }
	effect = {
        custom_tooltip = quit_being_courtesan_decision_tooltip
		remove_trait = deviant_courtesan_slut
		remove_short_term_gold = major_gold_value
	}	
}

#adopt perverted nickname
deviants_nickname_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
	}
	decision_group_type = deviants_go_decisions
	desc = deviants_nickname_decision_desc
	selection_tooltip = deviants_nickname_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		is_ruler = yes
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_ai = no
	}
	effect = {
        custom_tooltip = deviants_nickname_decision_tooltip
		trigger_event = deviants_gorandom_log.0100
	}	
}

deviants_becomepimp_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
	}
	decision_group_type = deviants_go_decisions
	desc = deviants_becomepimp_decision_desc
	selection_tooltip = deviants_becomepimp_decision_tooltip
	ai_check_interval = 0
		ai_will_do = {
		        base = 0
		}
	is_shown = {
		NOT = { has_trait = deviants_hiredcampslut }
	}
	is_valid_showing_failures_only = {
		age >= 18
		is_ai = no
	}
	effect = {
        custom_tooltip = deviants_becomepimp_decision_tooltip
		add_trait = deviants_hiredcampslut
	}	
}