#########################
###     Decisions     ###
#########################

############################
##FAUNA BREED for MACHINE
############################

decision_planet_WL_lv_fauna_breeding_machine = {		# Breeding with animals
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_fauna_breeding
		
	resources = {
		category = decisions
		cost = {
			influence = 120
			energy = 200
			unity = 350
		}
	}
	
	potential = {
		exists = owner
		owner = {
			is_ai = no
			has_authority = auth_machine_intelligence
		}	
		NOR = {
			owner = { has_country_flag = SYSTEM_wl_hidden_zoo_decisions }
			owner = { has_civic = civic_fanatic_purifiers }
			owner = { has_civic = civic_machine_terminator }
			owner = { has_civic = civic_hive_devouring_swarm }
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_city
			is_planet_class = pc_habitat
		}
		habitable_structure = no
		is_ringworld = no
	}
	
	allow = {
		NOR = {
			has_modifier = WL_lv_titanic_life_breeding_planet
			has_modifier = WL_lv_fauna_breeding_planet
			has_modifier = WL_lv_fauna_breeding_planet_machine
			has_modifier = WL_lv_titanic_life_breeding_planet_machine
		}
		OR ={
			any_owned_pop_group = {
				species = { has_trait = trait_lv_sex_bots }
			}
			AND = {
				is_planet_class = pc_gaia
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_lv_pheromone_generators
							has_trait = trait_robot_emotion_emulators
						}
					}
				}
			}
			AND = {
				has_modifier = dangerous_wildlife
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_lv_pheromone_generators
							has_trait = trait_robot_emotion_emulators
						}
					}
				}
			}	
			AND = {
				owner = { has_civic = civic_machine_servitor }	
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_lv_pheromone_generators
							has_trait = trait_robot_emotion_emulators
						}
					}
				}
			}
		}
	}	
	
	effect = {
		add_modifier = { modifier = "WL_lv_fauna_breeding_planet_machine" days = 1800  }
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.1001 days = 30 }
		}
	}
	
	ai_weight = { 
		weight = 0
	}
}

############################
##TITANIC BREED FOR MACHINE
############################

decision_planet_WL_lv_titanic_breeding_machine = {		# Breeding with titanic life
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_titanic_breeding
	
	resources = {
		category = decisions
		cost = {
			influence = 150
			energy = 350
			unity = 300
		}
	}
	
	potential = {
		has_modifier = titanic_life
		exists = owner
		owner = {
			is_ai = no
			has_authority = auth_machine_intelligence
		}	
		NOR = { 
			owner = { has_country_flag = SYSTEM_wl_hidden_zoo_decisions }
			owner = { has_civic = civic_fanatic_purifiers }
			owner = { has_civic = civic_machine_terminator }
			owner = { has_civic = civic_hive_devouring_swarm }
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_city
			is_planet_class = pc_habitat
		}
		habitable_structure = no
		is_ringworld = no
	}
	
	allow = {
		NOR = {
			has_modifier = WL_lv_titanic_life_breeding_planet
			has_modifier = WL_lv_fauna_breeding_planet 
			has_modifier = WL_lv_fauna_breeding_planet_machine
			has_modifier = WL_lv_titanic_life_breeding_planet_machine
		}
		OR = {
			any_owned_pop_group = {
				species = { has_trait = trait_lv_sex_bots }
			}
			AND = {
				is_planet_class = pc_gaia
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_lv_pheromone_generators
							has_trait = trait_robot_emotion_emulators
						}
					}
				}
			}
			AND = {
				owner = { has_civic = civic_machine_servitor }
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_robot_emotion_emulators
							has_trait = trait_lv_pheromone_generators
							has_trait = trait_lv_sex_bots
						}
					}
				}
			}
		}
	}
	
	effect = {
		add_modifier = { modifier = "WL_lv_titanic_life_breeding_planet_machine" days = 1800 }
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.1011 days = 30 }
		}
	}
	
	ai_weight = {
		weight = 0
	}
}

############################
##FAUNA BREED
############################

decision_planet_WL_lv_fauna_breeding = {		# Breeding with animals
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_fauna_breeding
	
	resources = {
		category = decisions
		cost = {
			influence = 100
			food = 500
			unity = 200
		}
	}
	
	potential = {
		owner ={
			is_ai = no
		}	
		NOR = {
			owner = { has_country_flag = SYSTEM_wl_hidden_zoo_decisions }
			owner = { has_authority = auth_machine_intelligence }
			owner = { has_civic = civic_fanatic_purifiers } 
			owner = { has_civic = civic_machine_terminator }
			owner = { has_civic = civic_hive_devouring_swarm }
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_city
			is_planet_class = pc_habitat
		}
		habitable_structure = no
		is_ringworld = no
	}
	
	allow = {
		NOR = {
			has_modifier = WL_lv_titanic_life_breeding_planet
			has_modifier = WL_lv_fauna_breeding_planet 
			has_modifier = WL_lv_fauna_breeding_planet_machine
			has_modifier = WL_lv_titanic_life_breeding_planet_machine
		}
		OR ={
			AND = {
				has_modifier = dangerous_wildlife
				any_owned_pop_group = {
					species = {
						OR ={
							has_trait = trait_lv_targeted_pheromones
							has_trait = trait_lv_sexual_pheromones
							has_trait = trait_lv_submissive
							has_trait = trait_lv_masochistic
						}
					}
				}
			}
			owner = { has_civic = civic_WL_lv_bestial_hedonism }
			owner = { has_civic = civic_WL_lv_zoophilic_rituals }
			owner = { has_civic = civic_WL_lv_ecosynchronism }
			owner = { has_civic = civic_environmentalist }
			owner = { has_civic = civic_hive_ascetic }
			owner = { has_ethic = ethic_pacifist			}
			owner = { has_ethic = ethic_fanatic_xenophile	}	
			owner = { has_ethic = ethic_fanatic_pacifist	}
			owner = { has_ethic = ethic_xenophile	}	
			any_owned_pop_group = {
				species = {
					OR ={
						has_trait = trait_adaptive
						has_trait = trait_deviants
					}
				}
			}
		}
	}	
	
	effect = {
		add_modifier = { modifier = "WL_lv_fauna_breeding_planet" days = 1800  }
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.100 days = 30 }
		}
	}
	
	ai_weight = { 
		weight = 0
	}
}

############################
##TITANIC BREED
############################

decision_planet_WL_lv_titanic_breeding = {		# Breeding with titanic life
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_titanic_breeding
	
	resources = {
		category = decisions
		cost = {
			influence = 150
			food = 700
			unity = 300
		}
	}
	
	potential = {
		has_modifier = titanic_life
		exists = owner
		owner = {
			is_ai = no
		}	
		NOR = { 
			owner = { has_country_flag = SYSTEM_wl_hidden_zoo_decisions }
			owner = { has_authority = auth_machine_intelligence}  
			owner = { has_civic = civic_fanatic_purifiers }
			owner = { has_civic = civic_machine_terminator }
			owner = { has_civic = civic_hive_devouring_swarm }
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_city
			is_planet_class = pc_habitat
		}
		habitable_structure = no
		is_ringworld = no
	}
	
	allow = {
		NOR = {
			has_modifier = WL_lv_titanic_life_breeding_planet
			has_modifier = WL_lv_fauna_breeding_planet 
			has_modifier = WL_lv_fauna_breeding_planet_machine
			has_modifier = WL_lv_titanic_life_breeding_planet_machine
		}
	
		OR ={
			any_owned_pop_group = {
				species = {
					OR ={
						has_trait = trait_deviants
						has_trait = trait_adaptive
						has_trait = trait_lv_elastic_orifices
						has_trait = trait_lv_targeted_pheromones
						has_trait = trait_lv_sexual_pheromones
						has_trait = trait_lv_submissive
						has_trait = trait_lv_masochistic
					}
				}
			}
			OR ={
				owner = { has_civic = civic_WL_lv_bestial_hedonism }
				owner = { has_civic = civic_WL_lv_zoophilic_rituals }
				owner = { has_civic = civic_WL_lv_ecosynchronism }
				owner = { has_civic = civic_environmentalist }
				owner = { has_civic = civic_hive_ascetic }
				owner = { has_ethic = ethic_pacifist }
				owner = { has_ethic = ethic_fanatic_xenophile	}	
				owner = { has_ethic = ethic_fanatic_pacifist }
				owner = { has_ethic = ethic_xenophile	}	
			}
		}
	}	
	
	effect = {
		add_modifier = { modifier = "WL_lv_titanic_life_breeding_planet" days = 1800 }
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.101 days = 30 }
		}
	}
	
	ai_weight = {
		weight = 0
	}
}

############################
##UPLIFTING FAUNA
############################

decision_planet_WL_lv_uplifting_fauna = {	
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_uplifting_fauna
	
	prerequisites = {	"tech_gene_tailoring"	}
	
	resources = {
		category = decisions
		cost = {
			sr_WL_lv_exotic_fauna = 25
			food = 300
			influence = 50
		}
	}
	
	potential = {
		exists = owner
		owner = {
			is_ai = no
			has_technology = tech_gene_tailoring
		}	
		NOR = { 
			owner = { has_country_flag = SYSTEM_wl_hidden_zoo_decisions }
			owner = { has_authority = auth_machine_intelligence}  
			owner = { has_civic = civic_fanatic_purifiers }
			owner = { has_civic = civic_machine_terminator }
			has_modifier = WL_lv_uplifting_fauna_recently_used
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_hive
			is_planet_class = pc_nuked
		}
		OR ={
			owner = { has_civic = civic_environmentalist }
			owner = { has_civic = civic_hive_ascetic }
			owner = { has_civic = civic_WL_lv_bestial_hedonism }
			owner = { has_civic = civic_WL_lv_zoophilic_rituals }
			owner = { has_civic = civic_WL_lv_ecosynchronism }
			owner = { has_civic = civic_WL_lv_ecoterrorism }
			owner = { has_ethic = ethic_pacifist }
			owner = { has_ethic = ethic_fanatic_xenophile	}	
			owner = { has_ethic = ethic_fanatic_pacifist }
			owner = { has_ethic = ethic_xenophile }
			has_modifier = dangerous_wildlife
			is_planet_class = pc_gaia
			is_planet_class = pc_continental
			is_planet_class = pc_city
			is_planet_class = pc_habitat
			habitable_structure = yes
			is_ringworld = yes
		}
	}
	
	allow = {
		NOT = { has_modifier = WL_lv_uplifting_fauna_recently_used }
	}	
	
	effect = {
		add_modifier = { modifier = "WL_lv_uplifting_fauna_recently_used" days = -1 }
		hidden_effect = {
			planet_event = { id = WL_lv_fauna_uplifting.103  } #Notification event
		}
	}
	
	ai_weight = {
		weight = 0
	}
}