namespace = WL_lv_t_breed_result

##############################
#RAP
##############################

#TODO: fix pop selection and modify ethic change.

planet_event = {
	id = WL_lv_t_breed_result.1
	title = WL_lv_t_breed_result.1.name
	desc = WL_lv_t_breed_result.1.desc
	picture =  GFX_evt_WL_lv_t_breed_result_1
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_t_breed_result.1.a
		
		owner = {
			add_resource = { unity = -500 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 800
 				min = 800
 				max = 800
 			}
		}
		hidden_effect = {
			from = {
				add_modifier = {
					modifier = WL_lv_titanic_life_rape 
					days = 720
				}
			}	
			while = {
				count = 5
				random_owned_pop_group = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophobe
						AMOUNT = 100
					}
				}
			}
		}
	}
	
	option = {
		name = WL_lv_t_breed_result.1.b
		owner = {
			add_resource = { unity = -100 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 600
 				min = 600
 				max = 600
 			}
		}
		hidden_effect = {
			from = {
				add_modifier = {
					modifier = WL_lv_titanic_life_rape 
					days = 720
				}
			}
			while = {
				count = 8
				random_owned_pop_group = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophobe
						AMOUNT = 100
					}
				}
			}
		}
	}
}

##############################
#BAD
##############################

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

	
	option = {
		name = WL_lv_t_breed_result.2.a
		hidden_effect = {
			while = {
				count = 8
				random_owned_pop_group = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
		}
		owner = {
			add_resource = { minerals = -100 }
			add_resource = { food = -20 }
			add_resource = { unity = -100 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 750
 				min = 750
 				max = 750
 			}
		}
	}
	
	option = {
		name = WL_lv_t_breed_result.2.b
		
		hidden_effect = {
			while = {
				count = 4
				random_owned_pop = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophobe
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
		}
		owner = {
			add_resource = { minerals = -200 }
			add_resource = { food = -50 }
			add_resource = { unity = -200 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 700
 				min = 700
 				max = 700
 			}
		}
	}
}

##############################
#NOTHING
##############################

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

	option = {
		name = WL_lv_t_breed_result.3.a
		owner = {
		}
	}
	
	option = {
		name = WL_lv_t_breed_result.3.b
		owner = {
		}
	}
}

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

planet_event = {
	id = WL_lv_t_breed_result.4
	title = WL_lv_t_breed_result.4.name
	desc = WL_lv_t_breed_result.4.desc
	picture =  GFX_evt_WL_lv_t_breed_result_4
	show_sound = event_primitive_civilization
	location = root
	hide_window = n
	is_triggered_only = yes

	option = {
		name = WL_lv_t_breed_result.4.a
		hidden_effect = {
			while = {
				count = 3
				random_owned_pop = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophile
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
			while = {
				count = 2
				random_owned_pop = {
					limit = {
						is_sapient = yes
							species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophile
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_sex_bots
					}
				}
			}
		}
		owner = {
			add_resource = { food = 300 }
			add_resource = { unity = 1000 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
	
	option = {
		name = WL_lv_t_breed_result.4.b
		hidden_effect = {
			while = {
				count = 8
				random_owned_pop_group = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophile
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
		}
		owner = {
			add_resource = { food = 300 }
			add_resource = { unity = 1000 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 1200
 				min = 1200
 				max = 1200
 			}
		}
	}
}

##############################
#GOOD NEWS
##############################

planet_event = {
	id = WL_lv_t_breed_result.5
	title = WL_lv_t_breed_result.5.name
	desc = WL_lv_t_breed_result.5.desc
	picture =  GFX_evt_WL_lv_t_breed_result_5
	show_sound = event_primitive_civilization
	location = root
	hide_window = no
	is_triggered_only = yes

	option = {
		name = WL_lv_t_breed_result.5.a
		hidden_effect = {
			while = {
				count = 8
				random_owned_pop_group = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophile
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
		}
		
		owner = {
			add_resource = { food = 100 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 600
 				min = 600
 				max = 600
 			}
		}
	}
	
	option = {
		name = WL_lv_t_breed_result.5.b
		hidden_effect = {
			while = {
				count = 8
				random_owned_pop = {
					limit = {
						is_sapient = yes
						species = {
							NOR = {
								has_trait = trait_mechanical
								has_trait = trait_machine_unit
								is_species_class = ROBOT
							}
						}
					}
					pop_group_transfer_ethic = {
						POP_GROUP = this
						ETHOS = ethic_xenophile
						AMOUNT = 100
					}
					modify_species = {
						species = this
						add_trait = trait_lv_elastic_orifices
					}
				}
			}
		}
		owner = {
			add_resource = { food = 100 }
			add_resource = { unity = 300 }
			add_monthly_resource_mult = {
 				resource = society_research
 				value = 600
 				min = 600
 				max = 600
 			}
		}
	}
}