#my_buildable_pop = {
#	TODO lots of stuff missing
#
#	species = { ... }				# species template
#	portrait = {					# change portrait to the first whose trigger matches. leave unchanged from species template if none matches
#		portrait_key = { trigger }	# scope: country, from: upgraded from species (optional)
#	}
#}


#ϣʹͽ()
buildable_xilin_robot_pop_1 = {
	cost = {
		minerals = 100
	}
	
	potential_build = {
		OR = {
			has_country_flag = f_xilin_empire
			has_authority = auth_xilin_mind
		}
	}
	
	species = {
		 class = "XILIN_BUILD"
		 portrait = "xilin_apostle"
		 name = "NAME_species_name_xilin_apostle"
		 plural = "PRESCRIPTED_species_plural_xilin_apostle"
		 adjective = "PRESCRIPTED_species_adjective_xilin_apostle"
		 traits = {
					trait = trait_xilin_building 
		 }
		new_pop_resource_requirement = {
			type = robot_food 
			value = 25.0
		}
		pops_auto_growth = 1.2
		pop_maintenance = 1
		#		pops_can_reproduce = no
		
	}

#	species = founder_species
}

#ϣɻ
buildable_robot_pop_xilin = {
		
	prerequisites = {
		"tech_xilin_workers"
	}
	
	cost = {
		minerals = 100
	}
	
	potential_build = {
		OR = {
			has_country_flag = f_xilin_empire
			has_authority = auth_xilin_mind
		}
	}
	
	allow = {
	   NOR = { 
			  has_policy_flag = robots_outlawed 
			  has_authority = auth_hive_mind
		 }
		 has_authority = auth_xilin_mind 
	}
	
	species = {
		name = "ROBOT_POP_SPECIES_XILIN"
		name_list = "AI"
		class = "ROBOT"
		portrait = "default_robot"
		traits = {
			trait = "trait_mechanical"
			trait = "trait_robotic_xilin"
		}
		
		new_pop_resource_requirement = {
			type = robot_food
			value = 30.0
		}
		pops_auto_growth = 1.0
		
		pops_can_be_colonizers = yes
		pops_can_migrate = no
		pops_can_reproduce = no
		pops_can_join_factions = no
		pop_maintenance = 1
		can_generate_leaders = no
		pops_can_be_slaves = no
		pops_have_happiness = no
		pop_ethics = no	#can also be pop_ethics = { some_ethic some_other_ethic etc }
	}
	portrait = {
		sd_hum_robot = { use_robot_portrait_sd_hum_robot = yes }
		sd_mam_robot = { use_robot_portrait_sd_mam_robot = yes }
		sd_rep_robot = { use_robot_portrait_sd_rep_robot = yes }
		sd_avi_robot = { use_robot_portrait_sd_avi_robot = yes }
		sd_art_robot = { use_robot_portrait_sd_art_robot = yes }
		sd_mol_robot = { use_robot_portrait_sd_mol_robot = yes }
		sd_fun_robot = { use_robot_portrait_sd_fun_robot = yes }
		sd_pla_robot = { use_robot_portrait_sd_pla_robot = yes }
	}
}

