tradition_xit_biosecurity_doctrine = {
	desc = {
		trigger = { always = yes }
		text = tradition_xit_biosecurity_doctrine_desc
	}
	tree_template = "tree_11_12_21"
	adoption_bonus = "tr_xit_biosecurity_adopt"
	finish_bonus = "tr_xit_biosecurity_finish"

	potential = {
		owner_species = {
			NOT = { is_species_class = XENO }
		}
	}

	traditions = {
		"tr_xit_biosecurity_planetary_screening"
		"tr_xit_biosecurity_containment_labs"
		"tr_xit_biosecurity_quarantine_protocols"
		"tr_xit_biosecurity_sterile_logistics"
		"tr_xit_biosecurity_rapid_purge_teams"
	}

	ai_weight = {
		factor = 8
		modifier = {
			factor = 8
			any_owned_planet = {
				OR = {
					has_deposit = d_xit_dormant_ovomorph_cluster
					has_modifier = xit_xenomorph_infestation
					has_modifier = xit_xenomorph_outbreak
					has_modifier = xit_xenomorph_overrun
					any_owned_pop_group = {
						species = { has_trait = trait_xenomorph }
					}
				}
			}
		}
		modifier = {
			factor = 3
			has_technology = tech_xit_xenomorph_biosecurity
		}
		modifier = {
			factor = 2
			is_machine_empire = yes
		}
	}
}

tradition_xit_containment_command = {
	desc = {
		trigger = { always = yes }
		text = tradition_xit_containment_command_desc
	}
	tree_template = "tree_12_11_11"
	adoption_bonus = "tr_xit_containment_command_adopt"
	finish_bonus = "tr_xit_containment_command_finish"

	potential = {
		owner_species = {
			NOT = { is_species_class = XENO }
		}
	}

	traditions = {
		"tr_xit_containment_planetary_screening"
		"tr_xit_containment_quarantine_protocols"
		"tr_xit_containment_research_labs"
		"tr_xit_containment_rapid_purge_teams"
		"tr_xit_containment_orbital_cordon"
	}

	ai_weight = {
		factor = 6
		modifier = {
			factor = 10
			any_owned_planet = {
				OR = {
					has_deposit = d_xit_dormant_ovomorph_cluster
					has_modifier = xit_xenomorph_infestation
					has_modifier = xit_xenomorph_outbreak
					has_modifier = xit_xenomorph_overrun
					any_owned_pop_group = {
						species = { has_trait = trait_xenomorph }
					}
				}
			}
		}
		modifier = {
			factor = 3
			has_technology = tech_xit_xenomorph_biosecurity
		}
		modifier = {
			factor = 2
			is_machine_empire = yes
		}
	}
}
