decisions = {
	nada_work_whore = {
		potential = {
			is_female = yes
            NOT = { practical_age >= 50 }
			OR = {
				any_realm_province = {
					has_building = nada_brothel
				}
				AND = {
					is_theocracy = yes
					priestess_whore_religion = yes
				}
			}
		}
		allow = {
			NOR = { 
				trait = chaste
				trait = celibate
			}
			custom_tooltip = {
				text = nada_not_working
				NOT = { has_character_flag = nada_whored }
			}
		}
		effect = {
			if = {
				limit = {
					prisoner = no
					in_command = no
				}
				hidden_tooltip = { set_variable = { which = wealth_temp value = 3 } }
				if = {
					limit = {
						trait = bombshell
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
						trait = fair
						
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
                        NOT = { practical_age >= 30 }
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
                        NOT = { practical_age >= 40 }
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
						trait = lustful
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
						check_variable = { which = breast_size value = 4 }
						NOT = { check_variable = { which = breast_size value = 6 } }
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 2 } }
				}
				if = {
					limit = {
						check_variable = { which = breast_size value = 6 }
					}
					hidden_tooltip = { change_variable = { which = wealth_temp value = 3 } }
				}
				hidden_tooltip = {
				if = { #leveling up
					limit = {
						trait = experienced_whore
						}
					random = {
						chance = 5
						add_trait = exclusive_whore
						# A character becoming an exclusive whore gives a lust
						# increase for non-lustful religions.
						character_event = { id = christ.15 }
					}
				}
				if = {
					limit = {
						trait = cheap_whore
						}
					random = {
						chance = 10
						add_trait = experienced_whore
					}
				}
				if = {
					limit = {
						NOT = {
							trait = cheap_whore
							trait = experienced_whore
							trait = exclusive_whore
						}
					}
					add_trait = cheap_whore
				}
				
				set_character_flag = nada_whored
				character_event = { id = nada.052 days = 1 } #clear flag
				random_list = {
					75 = {character_event = { id = nada.050 }} # work in brothel
					25 = {character_event = { id = nada.060 }} # gangbang lol
				}
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				# women with priestess-whore educations are much more likely
				is_priest = yes
				priestess_whore_religion = yes
			}
			modifier = {
				factor = 2.5
				# otherwise, women with lustful theology educations are only somewhat more likely
				is_priest = yes
				priestess_whore_religion = no
			}
			modifier = {
				factor = 20
				dynasty = none  # for lowborns who revere whoring, it raises status
				priestess_whore_religion = yes
			}
			modifier = {
				factor = 10
				trait = hedonist
			}
			
			# Any of these will prevent being a whore if true
			modifier = {
				factor = 0
				OR = { 
					has_character_flag = nada_whored
					had_character_flag = { flag = nada_whored days = 300 }
					OR = {
						AND = {
						    practical_age >= 40
							priestess_whore_religion = no
						}
						AND = {
						    practical_age >= 50
							priestess_whore_religion = yes  # women who revere whores will whore longer
						}
					}
					AND = {
						is_married = yes
					}
					AND = {
						can_marry = no
						NOT = {
							trait = nun
						}
					}
					AND = {
						OR = {
							wealth = 50
							piety = 50
						}
					}
					AND = {
						wealth = 50
						priestess_whore_religion = no  # women who revere whores will whore simply to gain piety
					}
					NOT = { 
						has_character_flag = ai_whore
					}
				}
			}
		}
	}

	nada_visit_shop = {
		potential = {
			any_realm_province = {
				has_building = nada_silk_workshop
			}
		}
		allow = {
			is_adult = yes
			location = {
				has_building = nada_silk_workshop
			}
		}
		effect = {
			character_event = { id = nada.070 }
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { wealth = 75 }
			}
		}
	}
	
	nada_visit_brothel = { 
		potential = {
			location = {
				has_building = nada_brothel
			}
			is_adult = yes
			is_female = no
		}
		allow = {
			location = {
				any_province_character = {
					OR = { 
						trait = cheap_whore
						trait = experienced_whore
						trait = exclusive_whore
					}
				}
			}
			NOT = { is_inaccessible_trigger = yes } 
			wealth = 10
		}
		effect = { 
			location = { 
				random_province_character = { 
					limit = { 
						OR = { 
							trait = cheap_whore 
							trait = experienced_whore 
							trait = exclusive_whore 
						} 
					}
					save_event_target_as = nada_whore
				}
			} 
			if = { 
				limit = { OR = { is_married = event_target:nada_whore  is_consort = event_target:nada_whore }  } 
				event_target:nada_whore = { character_event = { id = pingg.001 } }  
				break = yes 
			} 
			if = { 
				limit = { is_ancestor_of = event_target:nada_whore } 
				event_target:nada_whore = { character_event = { id = pingg.002 } }   
				break = yes 
			} 
			if = { 
				limit = { is_descendant_of = event_target:nada_whore } 
				event_target:nada_whore = { character_event = { id = pingg.003 } }  
				break = yes 
			} 
			character_event = { id = nada.053 }  
		} 
		revoke_allowed = { always = no } 
		ai_will_do = { 
			factor = 1 
			modifier = { 
				factor = 0 
				OR = { trait = celibate  trait = eunuch } 
			} 
		} 
	} 