############################
# Exotic Fauna Buildings
############################
#Xenophiles/Spiritualist - Reserve

building_WL_lv_exotic_sanctuary = {
	base_buildtime = @b1_time
	planet_limit = 1
	category = resource

	building_sets = {
		research
		society
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		NOR = {
			has_building = building_WL_lv_exotic_zoo
			has_building = building_WL_lv_wild_pleasure_reserve
		}
		owner = {
			has_resource = { type = sr_WL_lv_exotic_fauna amount > 0 } 
			is_regular_empire = yes
			OR = {
				has_civic = civic_environmentalist
				has_ethic = ethic_spiritualist
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_spiritualist
				has_ethic = ethic_fanatic_xenophile
			}
		}
	}
	
	destroy_trigger = {
		exists = owner
		owner = {
			is_regular_empire = no
		}
	}
	
	planet_modifier = {
		job_culture_worker_add = 100
		job_WL_lv_exotic_fauna_expert_add = 50
	}
	
	resources = {
		category = planet_buildings
		cost = {
			minerals = @b1_minerals
			sr_WL_lv_exotic_fauna = 10
		}
		upkeep = {
			food = 3
		}
	}
	
#	prerequisites = {
#		"tech_alien_life_studies"
#	}
	
	ai_weight_coefficient = 0
}

############################
#Xenophobes/Materialist - ZOO
############################

building_WL_lv_exotic_zoo = {
	base_buildtime = @b1_time
	planet_limit = 1
	category = resource

	building_sets = {
		research
		society
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		NOR = {
			has_building = building_WL_lv_exotic_sanctuary
			has_building = building_WL_lv_wild_pleasure_reserve
		}
		owner = {
			has_resource = { type = sr_WL_lv_exotic_fauna amount > 0 } 
			is_hive_empire = no
			is_mechanical_empire = no
			OR = {
				NOR = {
					has_civic = civic_environmentalist
				}
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_materialist
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	
	destroy_trigger = {
		exists = owner
		owner = {
			is_regular_empire = no
		}
	}
	
	planet_modifier = {
		job_culture_worker_add = 100
		job_WL_lv_exotic_fauna_expert_add = 50
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_valid_civic = civic_warrior_culture
			}					
		}
		modifier = {
			job_duelist_add = 100
			job_culture_worker_add = -100
		}
	}
	
	resources = {
		category = planet_buildings
		cost = {
			minerals = @b1_minerals
			sr_WL_lv_exotic_fauna = 10
		}
		upkeep = {
			energy = 1
			food = 2
		}
	}
	
#	prerequisites = {
#		"tech_alien_life_studies"
#	}
	
	ai_weight_coefficient = 0
}

############################
#Wild Pleasure Reserve
############################

building_WL_lv_wild_pleasure_reserve = {
	base_buildtime = @b1_time
	planet_limit = 1
	category = resource

	building_sets = {
		research
		society
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		NOR = {
			has_building = building_WL_lv_exotic_zoo
			has_building = building_WL_lv_exotic_sanctuary
		}
		owner = {
			has_resource = { type = sr_WL_lv_exotic_fauna amount > 0 } 
			NOR = {
				is_hive_empire = no
				is_mechanical_empire = no
			}
		}
	}
	
	destroy_trigger = {
		exists = owner
		owner = {
			OR = {
				is_regular_empire = no
				is_hive_empire = yes
				is_mechanical_empire = yes
			}
		}
	}
	
	planet_modifier = {
		job_WL_lv_exotic_fauna_breeder_add = 50
		job_WL_lv_exotic_fauna_entertainer_add = 200
	}
	
	resources = {
		category = planet_buildings
		cost = {
			minerals = @b1_minerals
			sr_WL_lv_exotic_fauna = 10
		}
		upkeep = {
			energy = 1
			food = 2
		}
	}
	
	ai_weight_coefficient = 0
}


############################
#MACHINE - Wild Pleasure Reserve 
############################

building_WL_lv_machine_wild_pleasure_reserve = {
	base_buildtime = @b1_time
	planet_limit = 1
	category = resource

	building_sets = {
		research
		society
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		NOT = {
			owner = { has_valid_civic = civic_machine_terminator }
		}
		owner = {
			OR = { is_mechanical_empire = yes	}
			has_resource = { type = sr_WL_lv_exotic_fauna amount > 0 } 
		}
	}
	
	
	destroy_trigger = {
		exists = owner
		OR = {
		  owner = {	is_mechanical_empire = no }
		  owner = { has_valid_civic = civic_machine_terminator } 
		 }
	}
	
	planet_modifier = {
		job_maintenance_drone_add = 50
		job_WL_lv_exotic_fauna_gestalt_entertainer_add = 200
	}
	
	resources = {
		category = planet_buildings
		cost = {
			minerals = @b1_minerals
			sr_WL_lv_exotic_fauna = 10
		}
		upkeep = {
			energy = 1
			food = 2
		}
	}
	
	ai_weight_coefficient = 0
}


############################	
#HIVE - Wild Pleasure Reserve
############################

building_WL_lv_hive_wild_pleasure_reserve = {
	base_buildtime = @b1_time
	planet_limit = 1
	category = resource

	building_sets = {
		research
		society
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		NOT = { 
			owner = { has_valid_civic = civic_hive_devouring_swarm }
		}
		owner = {
			OR = { is_hive_empire = yes	}
			has_resource = { type = sr_WL_lv_exotic_fauna amount > 0 } 
		}
	}
	
	destroy_trigger = {
		exists = owner
		owner = {
			is_hive_empire = no
			NOT = { has_authority = auth_hive_mind }
		}
	}
	
	planet_modifier = {
		job_maintenance_drone_add = 50
		job_WL_lv_exotic_fauna_gestalt_entertainer_add = 200
	}
	
	resources = {
		category = planet_buildings
		cost = {
			minerals = @b1_minerals
			sr_WL_lv_exotic_fauna = 10
		}
		upkeep = {
			energy = 1
			food = 2
		}
	}
	
	ai_weight_coefficient = 0
}
