namespace = WL_lv_f_breed_machine_result

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

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

planet_event = {
	id = WL_lv_f_breed_machine_result.2
	title = WL_lv_f_breed_machine_result.2.name
	desc = WL_lv_f_breed_machine_result.2.desc
	picture =  GFX_evt_WL_lv_f_breed_machine_result_2
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes
	
	option = {
		name = WL_lv_f_breed_machine_result.2.a
		owner = {
			add_resource = { influence = -20 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 1200
 			  min = 1200
 			  max = 1200
 			}
		}
		
		#TODO: this might not work anymore, I'm not sure
		hidden_effect = {
			while = {
				count = 20
				random_pop = {
					limit = {
						has_trait = trait_machine_unit
						has_trait = trait_mechanical
						is_robot_pop = yes
					}
					
					add_modifier = {
						modifier = "WL_lv_fauna_damaged_machine_pop" 
						days = 1800
					}
				}
			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_machine_result.2.b
		owner = {
			add_resource = { influence = 20 }
			add_resource = { minerals = -100 }
			add_resource = { energy = -200 }
			add_resource = { unity = -100 }
			add_monthly_resource_mult = {
 			  resource = society_research
 			  value = 800
 			  min = 800
 			  max = 800
 			}
		}
		
		hidden_effect = {
			while = {
				count = 5
				random_pop = {
					limit = {
						has_trait = trait_machine_unit
						has_trait = trait_mechanical
						is_robot_pop = yes
					}

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

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

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

	
	option = {
		name = WL_lv_f_breed_machine_result.3.a
		owner = {
			add_resource = { energy = 300 }
			add_resource = { unity = 600 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_machine_result.3.b
		owner = {
			add_resource = { energy = 300 }
			add_resource = { unity = 600 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
}
##############################
#GOOD NEWS Zoophile Uplift LIFE FINDS A WAY
##############################

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

	option = {
		name = WL_lv_f_breed_machine_result.4.a
		owner = {
			add_resource = { minerals = 250 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_f_breed_machine_result.4.b
		owner = {
			add_resource = { energy = 250 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
	
	immediate = {
		random_list = {
			40 = {
				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_extremely_adaptive
						trait = trait_cybernetic
						trait = trait_intelligent
					}
					homeworld = this
				}
				while = {
					count = 2
					create_pop_group = { species = last_created_species }
				}
			}
			40 = {
				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_extremely_adaptive
						trait = trait_cybernetic
						trait = trait_intelligent
					}
					homeworld = this
				}
				while = {
					count = 2
					create_pop_group = { species = last_created_species }
				}
			}
			19 = {
				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_cybernetic
					}
					homeworld = this
					sapient = no
				}
				while = {
					count = 2
					create_pop_group = { species = last_created_species }
				}
			}	
			1 = {
				create_species = {
					name = random
					class = MACHINE
					extra_trait_points = 6
					traits = {
						trait = trait_machine_unit
						trait = trait_WL_lv_zoophilic_uplift
						trait = trait_lv_pheromone_generators 
						trait = trait_lv_cybernetic_womb
						trait = trait_lv_breast_attachments
					}
					immortal = yes
					homeworld = this
				}
				while = {
					count = 2
					create_pop_group = { species = last_created_species }
				}
			}
		}		
	}		
}