namespace = WL_LV_on_game_start_events

#Add Special Resources for Megacorps
event = {
	id = WL_LV_on_game_start_events.1
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		any_country = {
			OR = {	
				has_civic = civic_WL_lv_animal_keeping 
				has_civic = civic_WL_lv_animal_traffickers
			}
		}
	}
	
	immediate = {
		every_country = {
			limit = { 
				OR = {	
					has_civic = civic_WL_lv_animal_keeping 
					has_civic = civic_WL_lv_animal_traffickers
				}
			}
			add_resource = { sr_WL_lv_exotic_fauna = 12 }
		}
	}
}

#Add Secondary Species
planet_event = {
	id = WL_LV_on_game_start_events.2
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { 
				OR = { 
					owner = { has_origin = origin_WL_lv_oedipus_complex } 
					owner = { has_origin = origin_WL_lv_subdued_progenitor } 
				}
			}
			WL_lv_create_start_pops = yes
		}
	}
}

#Add Bonus Resources for Motherly Hive AI
event = {
	id = WL_LV_on_game_start_events.3
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		any_country = {
			is_ai = yes
			OR = {	
				has_civic = civic_WL_lv_motherly_hive	
				has_origin = origin_WL_lv_motherly_hive
			}
		}
	}
	
	immediate = {
		every_country = {
			limit = { 
				is_ai = yes
				OR = {	
					has_civic = civic_WL_lv_motherly_hive	
					has_origin = origin_WL_lv_motherly_hive
				}
			}
			add_resource = { energy = 4200 }
			add_resource = { minerals = 4200 }
			add_resource = { food = 1200 }
			add_resource = { alloys = 2500 }
			add_resource = { consumer_goods = 500 }
			add_resource = { influence = 200 }
			add_resource = { unity = 2000 }
			add_resource = { sr_WL_lv_exotic_fauna = 20 }
		}
	}
}

#Add Secondary Species for Advanced Empires
planet_event = {
	id = WL_LV_on_game_start_events.4
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { is_capital = yes }

			if = {
				limit = { owner = { has_origin = origin_WL_lv_oedipus_complex } }
				random_galaxy_species = {
					limit = {
						has_species_flag = origin_WL_lv_oedipus_complex_species@root.owner
					}
					save_event_target_as = origin_WL_lv_oedipus_complex_species
				}
				create_pop_group = {
					size = 800
					species = event_target:origin_WL_lv_oedipus_complex_species
				}
				create_pop_group = {
					size = 1000
					species = owner_main_species
				}
			}
			else = {
				create_pop_group = {
					size = 1800
					species = owner_main_species
				}
			}
		}
		else = {
			if = {
				limit = { owner = { has_origin = origin_WL_lv_oedipus_complex } }
				random_galaxy_species = {
					limit = {
						has_species_flag = origin_WL_lv_oedipus_complex_species@root.owner
					}
					save_event_target_as = origin_WL_lv_oedipus_complex_species
				}
				create_pop_group = {
					size = 400
					species = event_target:origin_WL_lv_oedipus_complex_species
				}
				create_pop_group = {
					size = 600
					species = owner_main_species
				}
			}
			else = {
				create_pop_group = {
					size = 1000
					species = owner_main_species
				}
			}
		}
	}
}

#############################################
#Modify Starting Species

country_event = {
	id = WL_LV_on_game_start_events.30
	hide_window = yes
	is_triggered_only = yes

	trigger = {
		always = no
	}
}