law_groups = {
	court_brothel_laws = {
		law_type = realm
	}
}
laws = {
	brothel_law_0 = {
		group = court_brothel_laws
		
		potential = {
			has_dlc = "Zeus"
			holder_scope = { is_feudal = yes }
		}
		allow = {
			always = yes
		}
		default_selection = {
			factor = 0.5
			additive_modifier = { 
				value = 10
				holder_scope = {
				OR = {
					has_antibrothel_culture_trigger = yes
					has_antibrothel_religion_trigger = yes
					}
				}
			}		
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0.25
			modifier = {
				factor = 1
				holder_scope = { 
					OR = {
					NOT = { has_antibrothel_culture_trigger = yes }
					NOT = { has_antibrothel_religion_trigger = yes }
					NOT = { trait = chaste }
					trait = lustful
					}
				}
			}
		}
		ai_will_revoke = {
			factor = 0
		}
		effect = {
			hidden_tooltip = {
				revoke_law = brothel_law_1
			}
		}
		global_tax_modifier = 0.15
	}




	
	brothel_law_1 = {
		group = court_brothel_laws
		potential = {
			has_dlc = "Zeus"
			OR = {
				NOT = { tier = baron }
				holder_scope = { is_patrician = yes }
			}
			holder_scope = { is_feudal = yes }
		}
		allow = {
			has_law = brothel_law_0
		}
		revoke_allowed = {
			always = no
		}
		default_selection = {
			factor = 1
			additive_modifier = { 
				value = 10
				holder_scope = {
				NOT = {
					has_antibrothel_culture_trigger = yes
					has_antibrothel_religion_trigger = yes
					}
				}
			}		
		}
		ai_will_do = {
			factor = 0.25
			modifier = {
				factor = 10
				holder_scope = { 
					OR = {
					has_antibrothel_culture_trigger = yes
					has_antibrothel_religion_trigger = yes
					trait = chaste
					}
				}
			}
			modifier = {
				factor = 2
				holder_scope = { 
					AND = {
					trait = arbitrary
					trait = zealous
					}
				}
			}
		}
		ai_will_revoke = {
			factor = 0
		}
		effect = {
			hidden_tooltip = {
				revoke_law = brothel_law_0
			}
		}
		#global_tax_modifier = -0.15
		#global_revolt_risk = 0.02
	}
}
