namespace = WL_lv_f_breed_result

##############################
#NOTHING
##############################
planet_event = {
	id = WL_lv_f_breed_result.1
	title = WL_lv_f_breed_result.1.name
	desc = WL_lv_f_breed_result.1.desc
	picture =  GFX_evt_WL_lv_f_breed_result_1
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_f_breed_result.1.a
		owner = {
			add_resource = { unity = -100 }
		}
	}
}
##############################
#BAD
##############################

planet_event = {
	id = WL_lv_f_breed_result.2
	title = WL_lv_f_breed_result.2.name
	desc = WL_lv_f_breed_result.2.desc
	picture =  GFX_evt_WL_lv_f_breed_result_2
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_f_breed_result.2.a
		owner = {
			add_resource = { influence = 20 }
			add_resource = { minerals = -100 }
			add_resource = { energy = -100 }
			add_resource = { unity = -100 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 800
 				min = 800
 				max = 800
 			}
		}
		
		hidden_effect = {
			while = {
				count = 20
				random_pop = {
					limit = {
						is_enslaved = no
						is_being_purged = no
						NOR = {
							has_trait = trait_machine_unit
							has_trait = trait_mechanical
							is_robot_pop = yes
						}
					}
					
					add_modifier = {
						modifier = "WL_lv_fauna_rape_pop" 
						days = 1800
					}
				}
			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_result.2.b
		owner = {
			add_resource = { unity = -100 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 400
 			  min = 400
 			  max = 400
 			}
		}
		
		hidden_effect = {
			while = {
				count = 20
				random_pop = {
					limit = {
						is_enslaved = no
						is_being_purged = no
						NOR = {
							has_trait = trait_machine_unit
							has_trait = trait_mechanical
							is_robot_pop = yes
						}
					}

					add_modifier = {
						modifier = "WL_lv_fauna_rape_pop" 
						days = 1800
					}
				}
			}
		}
	}
}

##############################
#GREAT NEWS
##############################

planet_event = {
	id = WL_lv_f_breed_result.3
	title = WL_lv_f_breed_result.3.name
	desc = WL_lv_f_breed_result.3.desc
	picture =  GFX_evt_WL_lv_f_breed_result_3
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_f_breed_result.3.a
		owner = {
			add_resource = { food = 300 }
			add_resource = { unity = 600 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_result.3.b
		owner = {
			add_resource = { food = 300 }
			add_resource = { unity = 600 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
	}
}

##############################
#GOOD NEWS Zoophile Uplift
##############################

planet_event = {
	id = WL_lv_f_breed_result.4
	title = WL_lv_f_breed_result.4.name
	desc = WL_lv_f_breed_result.4.desc
	picture =  GFX_evt_WL_lv_f_breed_result_4
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_f_breed_result.4.a
		owner = {
			add_resource = { food = 100 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_result.4.b
		owner = {
			add_resource = { food = 100 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_result.4.xenophobe
		owner = {
			add_resource = { food = 250 }
			add_resource = { influence = -15 }
			add_resource = { unity = -300 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
	}
	immediate = {
		if = {
			limit = {
				root.owner = {
					NOR = { 
						has_ethic = ethic_gestalt_consciousness
						has_authority = auth_machine_intelligence
						is_hive_empire = yes
					}
				}
			}
			every_owned_pop = {
				limit = {
					OR = {
						has_ethic = ethic_fanatic_xenophobe
						has_ethic = ethic_xenophobe
					}
					NOR = {
						has_trait = trait_machine_unit
						has_trait = trait_mechanical
						has_trait = trait_hive_mind
					}
				}
				add_modifier = {
					modifier = WL_lv_xenophobe_fauna_birth_opinion
					days = 360
				}
			}
			every_owned_pop = {
				limit = {
					OR = {
						has_ethic = ethic_fanatic_xenophile
						has_ethic = ethic_xenophile
					}
					NOR = {
						has_trait = trait_machine_unit
						has_trait = trait_mechanical
						has_trait = trait_hive_mind
					}
				}
				add_modifier = {
					modifier = WL_lv_xenophile_fauna_birth_opinion
					days = 360
				}
			}
			random_list = {
				25 = {
					create_species = {
						name = random
						class = random_non_machine
						portrait = random
						name_list = random
						extra_trait_points = 6
						traits = {
							trait = trait_WL_lv_zoophilic_uplift
							trait = trait_presapient_earthbound
						}
						homeworld = this
						sapient = no
					}
					while = {
						count = 2
						create_pop_group = { species = last_created_species }
					}
				}
				75 = {
					create_species = {
						name = random
						class = random_non_machine
						portrait = random
						name_list = random
						extra_trait_points = 6
						traits = {
							trait = trait_WL_lv_zoophilic_uplift
							trait = trait_presapient_earthbound
						}
						homeworld = this
					}
					while = {
						count = 2
						create_pop_group = { species = last_created_species }
					}
				}
			}
		}
		
		if = {
			limit = {
				root.owner = {
					has_ethic = ethic_gestalt_consciousness
					is_hive_empire = yes
					NOT = { has_authority = auth_machine_intelligence }
				}
			}
			random_list = {
				50 = {
					create_species = {
						name = random
						class = random_non_machine
						portrait = random
						name_list = random
						extra_trait_points = 6
						traits = {
							trait = trait_WL_lv_zoophilic_uplift
							trait = trait_presapient_earthbound
						}
						homeworld = this
					}
					while = {
						count = 2
						create_pop_group = { species = last_created_species }
					}
				}
				15 = {
					create_species = {
						name = random
						class = random_non_machine
						portrait = random
						name_list = random
						extra_trait_points = 6
						traits = {
							trait = trait_WL_lv_zoophilic_uplift
							trait = trait_presapient_earthbound
						}
						homeworld = this
						sapient = no
					}
					while = {
						count = 2
						create_pop_group = { species = last_created_species }
					}
				}
				10 = {
					create_species = {
						name = random
						class = random_non_machine
						portrait = random
						name_list = random
						extra_trait_points = 6
						traits = {
							trait = trait_hive_mind
							trait = trait_WL_lv_zoophilic_uplift
							trait = trait_presapient_earthbound
						}
						homeworld = this
					}
					while = {
						count = 2
						create_pop_group = { species = last_created_species }
					}
				}
			}
		}	
	}
}