namespace = WL_lv_decision_events

###############################
###     Decision Events     ###
###############################

###########################
###   Fauna - MACHINE   ###
###########################
planet_event = {
	id = WL_lv_decision_events.1001
	title = WL_lv_decision_events.1001.name
	desc = WL_lv_decision_events.1001.desc
	picture = GFX_evt_WL_lv_event_1001
	show_sound = event_alien_nature
	hide_window = no
	is_triggered_only = yes
	location = THIS
	
	immediate = {
		random_list = {
			5 = { planet_event = { id = WL_lv_f_breed_machine_result.4 days = 360 } }
			35 = { planet_event = { id = WL_lv_f_breed_machine_result.3 days = 360 } }
			15 = { planet_event = { id = WL_lv_f_breed_machine_result.2 days = 360 } }
			45 = { planet_event = { id = WL_lv_f_breed_machine_result.1 days = 360 } }
		}
	}

  option = {
		name = "WL_lv_decision_events.1001.a"
	}
}

planet_event = {
	id = WL_lv_decision_events.1011
	title = WL_lv_decision_events.1011.name
	desc = WL_lv_decision_events.1011.desc
	picture = GFX_evt_WL_lv_event_1011
	show_sound = event_alien_nature
	hide_window = no
	is_triggered_only = yes
	location = THIS
	
	immediate = {
		random_list = {
			15 = { planet_event = { id = WL_lv_t_breed_machine_result.1 days = 720 } }
			10 = { planet_event = { id = WL_lv_t_breed_machine_result.2 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_machine_result.3 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_machine_result.4 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_machine_result.5 days = 720 } }
		}
	}

  option = {
		name = "WL_lv_decision_events.1011.a"
	}
}

###########################
###     Fauna breed     ###
###########################

planet_event = {
	id = WL_lv_decision_events.100
	title = WL_lv_decision_events.100.name
	desc = WL_lv_decision_events.100.desc
	picture = GFX_evt_WL_lv_event_100
	show_sound = event_alien_nature
	hide_window = no
	
	is_triggered_only = yes
  
	immediate = {
		random_list = {
			1 = { #Fauna interbreed new species
				modifier = {
					factor = 10
					any_owned_pop_group = {
						species = {
							OR = { 
								has_trait = trait_lv_zoophilic_uplift
								has_trait = trait_lv_opt_intercompatible_womb
								has_trait = trait_lv_opt_intercompatible_sperm
							}
						}
					}
				}
				modifier = {
					factor = 3
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sex_crazed
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sexually_gifted
								has_trait = trait_lv_opt_intercompatible_womb
								has_trait = trait_lv_opt_intercompatible_sperm
							}
							NOT = { has_trait = trait_lv_zoophilic_uplift }
						}
					}
				}
				modifier = {
					factor = 3
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_opt_intercompatible_womb
								has_trait = trait_lv_opt_intercompatible_sperm
							}
							NOR = { 
								has_trait = trait_lv_sex_crazed
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sexually_gifted
								has_trait = trait_lv_zoophilic_uplift
							}
						}
					}
				}
				modifier = {
					factor = 2
					any_owned_pop_group = {
						species = {
							OR = { 
								has_trait = trait_lv_sexually_gifted
								has_trait = trait_lv_sex_crazed
								has_trait = trait_lv_lewd_mind
							}
							NOR = { 
								has_trait = trait_lv_opt_intercompatible_womb
								has_trait = trait_lv_opt_intercompatible_sperm
								has_trait = trait_lv_zoophilic_uplift
							}
						}
					}
				}
				modifier = {
					factor = 0
					NOT = {
						any_owned_pop_group = {
							species = {
								OR = { 
									has_trait = trait_lv_opt_intercompatible_womb
									has_trait = trait_lv_opt_intercompatible_sperm
									has_trait = trait_lv_sexually_gifted
									has_trait = trait_lv_zoophilic_uplift
									has_trait = trait_lv_sex_crazed
									has_trait = trait_lv_lewd_mind
								}
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_breed_result.4 days = 260 }
			}
			24 = { planet_event = { id = WL_lv_f_breed_result.2 days = 260 } }
			25 = { planet_event = { id = WL_lv_f_breed_result.1 days = 260 } }
			50 = { planet_event = { id = WL_lv_f_breed_result.3 days = 260 } }
		}
	}
	
  option = {
		name = "WL_lv_decision_events.100.a"
		trigger = {
			owner = { has_ethic = ethic_gestalt_consciousness }
		}
	}
	
  option = {
		name = "WL_lv_decision_events.100.b"
		trigger = { 			
			owner = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
	}

  option = {
		name = "WL_lv_decision_events.100.c"
		trigger = { 	
			owner = {
				OR = {
						has_ethic = ethic_materialist
						has_ethic = ethic_fanatic_materialist
				}
			}
		}
	}
	
	option = {
		name = "WL_lv_decision_events.100.d"
		trigger = {	
			owner = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
		}
	}
	
	
	option = {
		name = "WL_lv_decision_events.100.i"
		trigger = {	
			owner = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}

	option = {
		name = "WL_lv_decision_events.100.e"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	
	
	option = {
		name = "WL_lv_decision_events.100.f"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
		}
	}
	
	option = {
		name = "WL_lv_decision_events.100.g"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_authoritarian
					has_ethic = ethic_fanatic_authoritarian
				}
			}
		}
	}

	option = {
		name = "WL_lv_decision_events.100.h"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_egalitarian
					has_ethic = ethic_fanatic_egalitarian
				}
			}
		}
	}
}

###########################
###     Titan breed     ###
###########################

planet_event = {
	id = WL_lv_decision_events.101
	title = WL_lv_decision_events.101.name
	desc = WL_lv_decision_events.101.desc
	picture = GFX_evt_WL_lv_event_101
	show_sound = event_alien_nature
	hide_window = no
	is_triggered_only = yes
	location = THIS
	
	immediate = {
		random_list = {
			15 = { planet_event = { id = WL_lv_t_breed_result.1 days = 720 } }
			10 = { planet_event = { id = WL_lv_t_breed_result.2 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_result.3 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_result.4 days = 720 } }
			25 = { planet_event = { id = WL_lv_t_breed_result.5 days = 720 } }
		}
	}

  option = {
		name = "WL_lv_decision_events.101.a"
		trigger = { 
			owner = { has_ethic = ethic_gestalt_consciousness }
		}
	}

  option = {
		name = "WL_lv_decision_events.101.b"
		trigger = { 
			owner = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
		}
	}

  option = {
		name = "WL_lv_decision_events.101.c"
		trigger = { 
			owner = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
		}
	}

	option = {
		name = "WL_lv_decision_events.101.d"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
		}
	}
	option = {
		name = "WL_lv_decision_events.101.i"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}
	option = {
		name = "WL_lv_decision_events.101.e"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	option = {
		name = "WL_lv_decision_events.101.f"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
		}
	}
	option = {
		name = "WL_lv_decision_events.101.g"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_authoritarian
					has_ethic = ethic_fanatic_authoritarian
				}
			}
		}
	}
	option = {
		name = "WL_lv_decision_events.101.h"
		trigger = {
			owner = {
				OR = {
					has_ethic = ethic_egalitarian
					has_ethic = ethic_fanatic_egalitarian
				}
			}
		}
	}
	
}

###########################
### uplifting fauna choose (done)
###########################

	
###########################
### EXOTIC FAUNA SEARCH ###
###########################

planet_event = {
	id = WL_lv_decision_events.105
	title = WL_lv_decision_events.105.name
	desc = WL_lv_decision_events.105.desc
	picture =  GFX_evt_WL_lv_event_105
	show_sound = event_primitive_civilization
	hide_window = no
	location = THIS
	is_triggered_only = yes
  
	option = { name = WL_lv_decision_events.105.a }
	
	immediate = {
		random_list = {
			1 = {
				modifier = {
					factor = 0
					has_modifier = WL_lv_exotic_fauna_paradise
					has_modifier = titanic_life
				}
				modifier = {
					factor = 0
					has_modifier = WL_lv_exotic_fauna_paradise
					NOT = { has_modifier = titanic_life }
				}
				modifier = {
					factor = 0
					has_modifier = titanic_life
					NOT = { has_modifier = WL_lv_exotic_fauna_paradise }
				}
				planet_event = { id = WL_lv_f_search_result.101 days = 180 }
			}
			2 = { planet_event = { id = WL_lv_f_search_result.100 days = 180 } }
			1 = {
				modifier = {
					factor = 0
					has_modifier = WL_lv_exotic_fauna_paradise
				}
				modifier = {
					factor = 5
					has_modifier = wild_life
				}
				planet_event = { id = WL_lv_f_search_result.1 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 8
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.2 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.3 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
			planet_event = { id = WL_lv_f_search_result.4 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.5 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.6 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
			planet_event = { id = WL_lv_f_search_result.7 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.8 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.9 days = 180 }
			}
			3 = {
				modifier = {
					factor = 4
					any_owned_pop_group = {
						species = {
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				modifier = {
					factor = 6
					any_owned_pop_group = {
						species = {
							OR = {
								has_trait = trait_lv_sexual_pheromones
								has_trait = trait_lv_targeted_pheromones
								has_trait = trait_lv_lewd_mind
								has_trait = trait_lv_sex_crazed
							}
							NOR = {
								has_trait = trait_lv_sexually_inept
								has_trait = trait_lv_sexually_repressed
								has_trait = trait_repugnant
							}
						}
					}
				}
				planet_event = { id = WL_lv_f_search_result.10 days = 180 }
			}
			9 = { planet_event = { id = WL_lv_f_search_result.11 days = 180 } }
			4 = { planet_event = { id = WL_lv_f_search_result.12 days = 180 } }
			30 = { planet_event = { id = WL_lv_f_search_result.13 days = 180 } }
			40 = { planet_event = { id = WL_lv_f_search_result.14 days = 180 } }
			20 = { planet_event = { id = WL_lv_f_search_result.1000 days = 180 } }
		}
	}
}

###########################
### Fauna SR uses
###########################

planet_event = {
	id = WL_lv_decision_events.200
	title = WL_lv_decision_events.200.name
	desc = WL_lv_decision_events.200.desc
	picture = GFX_evt_alien_wildlife
	show_sound = event_alien_nature
	hide_window = no
	location = THIS
	is_triggered_only = yes

	option = {
		name = WL_lv_decision_events.200.a
		hidden_effect =  {
			remove_modifier  = hostile_animal_life
			remove_modifier  = dangerous_wildlife
		}
	}
}

planet_event = {
	id = WL_lv_decision_events.201
	title = WL_lv_decision_events.201.name
	desc = WL_lv_decision_events.201.desc
	picture = GFX_evt_alien_city
	show_sound = event_default
	hide_window = no
	location = THIS
	is_triggered_only = yes

	option = {
		name = WL_lv_decision_events.201.a
	}
}

planet_event = {
	id = WL_lv_decision_events.202
	title = WL_lv_decision_events.202.name
	desc = WL_lv_decision_events.202.desc
	picture = GFX_evt_WL_lv_event_202
	show_sound = event_celebration
	hide_window = no
	location = THIS
	is_triggered_only = yes

	option = {
		name = WL_lv_decision_events.202.a
	}
}

###########################
### Spiritualist Civic - ZR
###########################

#Z RITUAL
planet_event = {
	id = WL_lv_decision_events.300
	title = WL_lv_decision_events.300.name
	desc = WL_lv_decision_events.300.desc
	picture = GFX_evt_WL_lv_event_300
	show_sound = event_celebration
	hide_window = no
	location = THIS
	is_triggered_only = yes

	option = {
		name = WL_lv_decision_events.300.a
	}
}


# TO DO
# Ruler Zoo Sacrament
# Ruler Zoo Sacrament - HUMAN
# Holy Cm Jar - Sample Relic? Why not?
# Enforce Z Rituals on Vassals?
# Enforce Zoo Ruler to Rival?
# Zoo Ruler?
###########################
### Ruler Sacrament

planet_event = {
	id = WL_lv_decision_events.301
	title = WL_lv_decision_events.301.name
	
	desc = {
		trigger = {
			NOT = { 
				has_planet_flag = planet_earth 
				OR = {
					is_planet_class = pc_continental 
					is_planet_class = pc_gaia
					is_planet_class = pc_tundra
					is_planet_class = pc_savannah
					is_planet_class = pc_arid
					is_planet_class = pc_hive
					is_planet_class = pc_city
					is_planet_class = pc_relic
				}
			}
		}
		text = WL_lv_decision_events.301.desc
	}
	desc = {
		trigger = {
			has_planet_flag = planet_earth
			OR = {
				is_planet_class = pc_continental 
				is_planet_class = pc_gaia
				is_planet_class = pc_tundra
				is_planet_class = pc_savannah
				is_planet_class = pc_arid
				is_planet_class = pc_hive
				is_planet_class = pc_city
				is_planet_class = pc_relic
			}
		}
		text =  WL_lv_decision_events.301.desc.earth
	}
	
	picture = GFX_evt_WL_lv_event_301
	show_sound = event_celebration
	hide_window = no
	location = THIS
	
	is_triggered_only = yes
	
	immediate = {
		owner = {
			ruler = {
				add_trait = leader_trait_ruler_WL_lv_zoophile
			}
		}
	}

	option = {
		name = WL_lv_decision_events.300.a
	}
}
