tech_xit_xenomorph_biosecurity = {
	cost = @tier2cost2
	area = society
	tier = 2
	category = { biology }
	icon = tech_xit_xenomorph_biosecurity
	weight = @tier2weight2
	is_rare = yes

	potential = {
		is_country_type = default
	}

	weight_modifier = {
		modifier = {
			factor = 4
			any_owned_planet = {
				OR = {
					has_deposit = d_xit_dormant_ovomorph_cluster
					has_modifier = xit_xenomorph_infestation
					has_modifier = xit_xenomorph_outbreak
					any_owned_pop_group = {
						species = { has_trait = trait_xenomorph }
					}
				}
			}
		}
		modifier = {
			factor = 0.1
			owner_species = { has_trait = trait_xenomorph }
		}
	}

	ai_weight = {
		factor = @ai_society_tech_speed_factor
	}
}

tech_xit_ovomorph_dormancy_studies = {
	cost = @tier1cost2
	area = society
	tier = 1
	category = { biology }
	icon = tech_xit_ovomorph_dormancy_studies
	weight = @tier1weight2
	is_rare = yes

	potential = {
		is_country_type = default
	}

	modifier = {
		category_biology_research_speed_mult = 0.05
		planet_crime_add = -3
	}

	weight_modifier = {
		modifier = {
			factor = 4
			any_owned_planet = {
				OR = {
					has_deposit = d_xit_dormant_ovomorph_cluster
					has_modifier = xit_xenomorph_infestation
					has_modifier = xit_xenomorph_outbreak
					any_owned_pop_group = {
						species = { has_trait = trait_xenomorph }
					}
				}
			}
		}
	}

	ai_weight = {
		factor = @ai_society_tech_speed_factor
	}
}

tech_xit_brood_host_selection = {
	cost = @tier3cost1
	area = society
	tier = 3
	category = { biology }
	icon = tech_xit_brood_host_selection
	weight = @tier3weight1
	is_rare = yes

	prerequisites = { "tech_xit_xenomorph_biosecurity" }

	potential = {
		is_country_type = default
		owner_species = { has_trait = trait_xenomorph }
	}

	modifier = {
		army_damage_mult = 0.10
		planet_pops_upkeep_mult = -0.05
	}

	weight_modifier = {
		modifier = {
			factor = 3
			is_xenomorph_empire = yes
		}
		modifier = {
			factor = 3
			is_xenomorph_empire = yes
		}
	}

	ai_weight = {
		factor = @ai_society_tech_speed_factor
		modifier = {
			factor = 3
			owner_species = { has_trait = trait_xenomorph }
		}
	}
}

tech_xit_xenomorph_biocontainment_subversion = {
	cost = @tier4cost1
	area = society
	tier = 4
	category = { biology }
	icon = tech_xit_xenomorph_biocontainment_subversion
	weight = @tier4weight1
	is_rare = yes

	prerequisites = { "tech_xit_brood_host_selection" }

	potential = {
		is_country_type = default
		owner_species = { has_trait = trait_xenomorph }
	}

	modifier = {
		country_society_research_produces_mult = 0.05
		army_morale = 0.10
	}

	weight_modifier = {
		modifier = {
			factor = 3
			is_xenomorph_empire = yes
		}
	}

	ai_weight = {
		factor = @ai_society_tech_speed_factor
		modifier = {
			factor = 3
			owner_species = { has_trait = trait_xenomorph }
		}
	}
}

tech_xit_macro_ovomorph_seeding = {
	cost = @tier5cost1
	area = society
	tier = 5
	category = { biology }
	icon = tech_xit_macro_ovomorph_seeding
	weight = @tier5weight1
	is_rare = yes

	prerequisites = { "tech_xit_xenomorph_biocontainment_subversion" }

	potential = {
		is_country_type = default
		owner_species = { has_trait = trait_xenomorph }
	}

	modifier = {
		army_damage_mult = 0.10
		ship_hull_regen_add_perc = 0.05
		ship_armor_regen_add_perc = 0.05
	}

	weight_modifier = {
		modifier = {
			factor = 4
			is_xenomorph_empire = yes
		}
	}

	ai_weight = {
		factor = @ai_society_tech_speed_factor
		modifier = {
			factor = 4
			owner_species = { has_trait = trait_xenomorph }
		}
	}
}
