namespace = WL_lv_fauna_uplifting

###########################
### Uplifting Fauna
###########################

planet_event = {
	id = WL_lv_fauna_uplifting.102
	title = WL_lv_fauna_uplifting.102.name
	desc = WL_lv_fauna_uplifting.102.desc
	picture = GFX_evt_WL_lv_event_102
	show_sound = event_conversation
	hide_window = no
	is_triggered_only = yes

	option = { name = WL_lv_fauna_uplifting.102.a }
}

###########################
###uplifting fauna choose  
###########################

planet_event = {
	id = WL_lv_fauna_uplifting.103
	title = WL_lv_fauna_uplifting.103.name
	
	desc = {
		trigger = {
			owner = {
				NOT = { 
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.103.desc
	}

	desc = {
		trigger = {
			owner = { 
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.103.desc.spiritualist
	}

	picture = GFX_evt_WL_lv_event_103
	show_sound = event_laboratory_sound
	hide_window = no
	location = THIS
	is_triggered_only = yes
	
	immediate = {
#		planet_event = { id = WL_lv_fauna_uplifting.104 days = 180 }	
	}

	option = {
		name = WL_lv_fauna_uplifting.103.a	#Natural Selection
		enable_special_project = { 
			name ="WL_LV_FAUNA_UPLIFTING_PROJECT_1"
			location = this
			owner = from
		}
	}
	option = {
		name = WL_lv_fauna_uplifting.103.b	#Prioritize a Random Species
		enable_special_project = { 
			name ="WL_LV_FAUNA_UPLIFTING_PROJECT_4"
			location = this
			owner = from
		}
	}
	option = {
		name = WL_lv_fauna_uplifting.103.d	#Prioritize a Pre-Sentient Species
		enable_special_project = { 
			name ="WL_LV_FAUNA_UPLIFTING_PROJECT_5"
			location = this
			owner = from
		}
	}
	option = {
		name = WL_lv_fauna_uplifting.103.c	#Nothing
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		owner = {
			add_resource = { sr_WL_lv_exotic_fauna = 25 }
			add_resource = { food = 300 }
			add_resource = { influence = 50 }
		}
	}
}

#104 Natural Selection
#105 Force the Evolution
#106 Ancestral Companions
#107 Prioritize a Random Species
###########################
###	NATURAL SELECTION
###########################

planet_event = {
	id = WL_lv_fauna_uplifting.104
	title = "WL_lv_fauna_uplifting.104.name"

	desc = {
		trigger = {
			owner = {
				NOT = { 
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.104.desc
	}

	desc = {
		trigger = {
			owner = { 
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.104.desc.spiritualist
	}
	
	picture = GFX_evt_WL_lv_event_104
	location = THIS
	show_sound = event_laboratory_sound
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { 
				FROM = { 
					OR = {
						is_planet_class =	pc_alpine
						is_planet_class =	pc_arctic
						is_planet_class =	pc_tundra
					} 
				}
			}
			random_list = {
				10 = {
					modifier = {
						factor = 0
						has_lithoids = no
					}
					FROM = {
						create_species = {
							name = random
							class = LITHOID
							portrait = random
							name_list = random
							extra_trait_points = 2
							traits = {
								trait = trait_uplifted
								trait = trait_presapient_earthbound
								trait = random_traits
							}
							homeworld = from
						}
						while = {
							count = 2
							create_pop_group = { species = last_created_species }
						}
					}
				}
				25 = { 
					FROM = {
						create_species = {
							name = random
							class = AVI
							portrait = random
							name_list = random
							extra_trait_points = 2
							traits = {
								trait = trait_uplifted
								trait = trait_presapient_earthbound
								trait = random_traits
							}
							homeworld = from
						}
						while = {
							count = 2
							create_pop_group = { species = last_created_species }
						}
					}
				}
				25 = { 
					FROM = {
						create_species = {
							name = random
							class = HUM
							portrait = random
							name_list = random
							extra_trait_points = 2
							traits = {
								trait = trait_uplifted
								trait = trait_presapient_earthbound
								trait = random_traits
							}
							homeworld = from
						}
						while = {
							count = 2
							create_pop_group = { species = last_created_species }
						}
					}
				}
				20 = { 
					FROM = {
						create_species = {
							name = random
							class = random_non_machine
							portrait = random
							name_list = random
							extra_trait_points = 2
							traits = {
								trait = trait_presapient_earthbound
								trait = random_traits
							}
							homeworld = from
							sapient = no
						}
						while = {
							count = 2
							create_pop_group = { species = last_created_species }
						}
					}
				}
				20 = { 
					FROM = {
						create_species = {
							name = random
							class = random_non_machine
							portrait = random
							name_list = random
							extra_trait_points = 2
							traits = {
								trait = trait_uplifted
								trait = trait_presapient_earthbound
								trait = random_traits
							}
							homeworld = from
						}
						while = {
							count = 2
							create_pop_group = { species = last_created_species }
						}
					}
				}
			}
		}
			if = {
				limit = { 
					FROM = { 
						OR = {
							is_planet_class =	pc_continental
							is_planet_class =	pc_ocean
							is_planet_class =	pc_tropical
						} 
					}
				}
				random_list = {
					20 = {
						FROM = {
							create_species = {
								name = random
								class = FUN
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					20 = { 
						FROM = {
							create_species = {
								name = random
								class = MOL
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					20 = { 
						FROM = {
							create_species = {
								name = random
								class = PLANT
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					20 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
								sapient = no
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					20 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
				}
			}
			if = {
				limit = { 
					FROM = { 
						OR = {
							is_planet_class = 	pc_desert
							is_planet_class = 	pc_savannah
							is_planet_class = 	pc_arid
						} 
					}
				}
				random_list = {
					20 = { 
						FROM = {
							create_species = {
								name = random
								class = AVI
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					25 = { 
						FROM = {
							create_species = {
								name = random
								class = REP
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					30 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
								sapient = no
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					25 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
				}
			}
			if = {
				limit = { 
					FROM = {
						is_planet_class = pc_nuked
					}
				}
				random_list = {
					15 = { 
						FROM = {
							create_species = {
								name = random
								class = ART
								portrait = art11
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					15 = { 
						FROM = {
							create_species = {
								name = random
								class = ART
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					35 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					35 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
								sapient = no
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
				}
			}
			if = {
				limit = { 
					FROM = { 
						NOR = {
							is_planet_class = pc_nuked
							is_planet_class = pc_desert
							is_planet_class = pc_savannah
							is_planet_class = pc_arid
							is_planet_class = pc_continental
							is_planet_class = pc_ocean
							is_planet_class = pc_tropical
							is_planet_class = pc_alpine
							is_planet_class = pc_arctic
							is_planet_class = pc_tundra
						} 
					}
				}
				random_list = {
					10 = { 
						FROM = {
							create_species = {
								name = random
								class = HUM
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					30 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
								sapient = no
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
					60 = { 
						FROM = {
							create_species = {
								name = random
								class = random_non_machine
								portrait = random
								name_list = random
								extra_trait_points = 2
								traits = {
									trait = trait_uplifted
									trait = trait_presapient_earthbound
									trait = random_traits
								}
								homeworld = from
							}
							while = {
								count = 2
								create_pop_group = { species = last_created_species }
							}
						}
					}
				}
			}
	}

  option = {
		name = "WL_lv_fauna_uplifting.104.a"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner = {
				has_ethic = ethic_gestalt_consciousness
			}
		}
	}
	
  option = {
		name =  "WL_lv_fauna_uplifting.104.b"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
	}

  option = {
		name =  "WL_lv_fauna_uplifting.104.c"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.104.d"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.104.i"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}

	option = {
		name =  "WL_lv_fauna_uplifting.104.e"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	
	
	option = {
		name =  "WL_lv_fauna_uplifting.104.f"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.104.g"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_authoritarian
					has_ethic = ethic_fanatic_authoritarian
				}
			}
		}
	}

	option = {
		name =  "WL_lv_fauna_uplifting.104.h"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_egalitarian
					has_ethic = ethic_fanatic_egalitarian
				}
			}
		}
	}
}

###########################
###########################
###	Prioritize a Random Species
###########################

planet_event = {
	id = WL_lv_fauna_uplifting.107
	title = "WL_lv_fauna_uplifting.107.name"
	desc = {
		trigger = {
			owner = {
				NOR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
		text =  WL_lv_fauna_uplifting.104.desc
	}
	desc = {
		trigger = {
			owner = { 
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.107.desc.spiritualist
	}
	
	picture = GFX_evt_WL_lv_event_104
	location = THIS
	show_sound = event_laboratory_sound
	is_triggered_only = yes

	immediate = {
		FROM = {
			create_species = {
				name = random
				class = random_non_machine
				portrait = random
				name_list = random
				traits = {
					trait = trait_uplifted
					trait = random_traits
				}
				homeworld = from
			}
			while = {
				count = 2
				create_pop_group = { species = last_created_species }
			}
		}
	}

  option = {
		name = "WL_lv_fauna_uplifting.107.a"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner = { has_ethic = ethic_gestalt_consciousness }
		}
	}
	
  option = {
		name =  "WL_lv_fauna_uplifting.107.b"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
	}
  option = {
		name =  "WL_lv_fauna_uplifting.107.c"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.107.d"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
		}
	}
	
	
	option = {
		name =  "WL_lv_fauna_uplifting.107.i"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}

	option = {
		name =  "WL_lv_fauna_uplifting.107.e"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	
	
	option = {
		name =  "WL_lv_fauna_uplifting.107.f"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.107.g"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_authoritarian
					has_ethic = ethic_fanatic_authoritarian
				}
			}
		}
	}
	option = {
		name =  "WL_lv_fauna_uplifting.107.h"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_egalitarian
					has_ethic = ethic_fanatic_egalitarian
				}
			}
		}
	}
}

planet_event = {
	id = WL_lv_fauna_uplifting.108
	title = "WL_lv_fauna_uplifting.108.name"
	desc = {
		trigger = {
			owner = { 
				NOR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
		text =  WL_lv_fauna_uplifting.108.desc
	}
	desc = {
		trigger = {
			owner = { 
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				} 
			}
		}
		text =  WL_lv_fauna_uplifting.108.desc.spiritualist
	}
	
	
	picture = GFX_evt_WL_lv_event_104
	location = THIS
	show_sound = event_laboratory_sound
	is_triggered_only = yes

	immediate = {
		FROM = {
			create_species = {
				name = random
				class = random_non_machine
				portrait = random
				name_list = random
				traits = { trait = random_traits }
				homeworld = from
				sapient = no
			}
			while = {
				count = 2
				create_pop_group = { species = last_created_species }
			}
		}
	}

  option = {
		name = "WL_lv_fauna_uplifting.108.a"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner = { has_ethic = ethic_gestalt_consciousness }
		}
	}
	
  option = {
		name =  "WL_lv_fauna_uplifting.108.b"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
	}
  option = {
		name =  "WL_lv_fauna_uplifting.108.c"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = { 
			owner ={
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.108.d"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
		}
	}
	
	
	option = {
		name =  "WL_lv_fauna_uplifting.108.i"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}

	option = {
		name =  "WL_lv_fauna_uplifting.108.e"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	
	
	option = {
		name =  "WL_lv_fauna_uplifting.108.f"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
		}
	}
	
	option = {
		name =  "WL_lv_fauna_uplifting.108.g"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_authoritarian
					has_ethic = ethic_fanatic_authoritarian
				}
			}
		}
	}
	option = {
		name =  "WL_lv_fauna_uplifting.108.h"
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		trigger = {
			owner ={
				OR = {
					has_ethic = ethic_egalitarian
					has_ethic = ethic_fanatic_egalitarian
				}
			}
		}
	}
}

###########################
###########################
###########################
###CANCEL / FAIL
###########################

planet_event = {
	id = WL_lv_fauna_uplifting.1044
	title = "WL_lv_fauna_uplifting.1044.name"
	desc = "WL_lv_fauna_uplifting.1044.desc"
	picture = GFX_evt_clones
	location = FROM
	show_sound = event_laboratory_sound
	is_triggered_only = yes

	immediate = {
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		owner = {
			add_resource = { sr_WL_lv_exotic_fauna = 25 }
			add_resource = { food = 300 }
			add_resource = { influence = 50 }
		}
	}

  option = {
		name = "WL_lv_fauna_uplifting.1044.a"
	}
}

planet_event = {
	id = WL_lv_fauna_uplifting.1045
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		remove_modifier = "WL_lv_uplifting_fauna_recently_used"
		owner = {
			add_resource = { sr_WL_lv_exotic_fauna = 25 }
			add_resource = { food = 300 }
			add_resource = { influence = 50 }
		}
	}
}