namespace = WL_LV_lustful_spirit_pops_events

event = {
	id = WL_LV_lustful_spirit_pops_events.1
	hide_window = yes
	is_triggered_only = yes
	location = root
	
	trigger = {
		any_country = {
			NOR = {
				has_relic = r_WL_lv_zinara
			}
			any_owned_planet = {
				any_owned_pop_group = {
					species = {
						OR = {
							is_species = event_target:extradimensional_zinara_species
							is_subspecies = event_target:extradimensional_zinara_species
						}
					}
				}
			}
		}	
	}
	
	immediate = {
		every_country = {
			limit = { 
				NOT = { has_relic = r_WL_lv_zinara }
			}
			every_owned_planet = {
				limit = {
					any_owned_pop_group = { 
						OR = {
							is_species = event_target:extradimensional_zinara_species
							is_subspecies = event_target:extradimensional_zinara_species
						} 
					} 
				}
				planet_event = { id = WL_LV_lustful_spirit_pops_events.2 } #HIDDEN
			}
		}
	}
}


planet_event = {
	id = WL_LV_lustful_spirit_pops_events.2
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		random_owned_pop_group = {
			limit = {
				OR = {
					is_species = event_target:extradimensional_zinara_species
					is_subspecies = event_target:extradimensional_zinara_species
				} 
			}
			kill_pop_group = {
				pop_group = this
				amount = 2000
			}
		}
	}
}