tech_pk_nanobots = {
	area = engineering
	cost = @tier5cost3
	tier = 5
	is_rare = yes
	is_reverse_engineerable = no
	category = { voidcraft }
	prerequisites = { "tech_colossus" }
	ai_update_type = military
	weight = @tier5weight3

	potential = {
		host_has_dlc = "Apocalypse"
		has_country_flag = colossus_project
		OR = { 
            has_valid_civic = civic_machine_assimilator
            has_ascension_perk = ap_organo_machine_interfacing_assimilator
        }
	}

	weight_modifier = {
		factor = 0.50
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_pk_nanobots
		}
		modifier = {
			factor = 0.20
			NOR = {
				has_trait_in_council = { TRAIT = leader_trait_maniacal }
				has_trait_in_council = { TRAIT = leader_trait_maniacal_2 }
				has_trait_in_council = { TRAIT = leader_trait_maniacal_3 }
				has_trait_in_council = { TRAIT = leader_trait_curator }
				has_trait_in_council = { TRAIT = leader_trait_expertise_voidcraft }
			}
		}
	}

	ai_weight = {
		factor = 0.5
		modifier = {
			factor = 5
			has_ethic = ethic_gestalt_consciousness
			has_valid_civic = civic_machine_assimilator
		}
	}
}

#Integrated Cybernetics
tech_integrated_cybernetics = {
	cost = @tier2cost3
	area = engineering
	tier = 2
	category = { industry }
	prerequisites = { "tech_powered_exoskeletons" "tech_colonial_centralization" }
	weight = @tier2weight3

	modifier = {
		pop_environment_tolerance = 0.05
	}

	potential = {
		OR = {
			AND = {
				is_machine_empire = no
				is_individual_machine = no
			}
			OR = { 
                has_valid_civic = civic_machine_assimilator
                has_ascension_perk = ap_organo_machine_interfacing_assimilator
            }
		}
	}

	weight_modifier = {
		factor = 1.5

	}

	ai_weight = {
		factor = 2
		modifier = {
			factor = 1000
			has_origin = origin_cybernetic_creed
		}
	}
}

tech_neuro_quantum_links = {
	area = physics
	tier = 3
	cost = @tier3cost1
	category = { computing }
	prerequisites = { "tech_basic_science_lab_2" "tech_integrated_cybernetics" }
	weight = @tier3weight1

	modifier = {
		planet_jobs_specialist_produces_mult = 0.05
	}

	potential = {
		OR = {
			is_machine_empire = no
			OR = { 
                has_valid_civic = civic_machine_assimilator
                has_ascension_perk = ap_organo_machine_interfacing_assimilator
            }
		}
	}

	weight_modifier = {
		factor = 1.5
		modifier = {
			factor = 0
			OR = {
				has_utopia = yes
				has_machine_age_dlc = yes
			}
			NOR = {
				has_ascension_perk = ap_the_flesh_is_weak
				has_ascension_perk = ap_organo_machine_interfacing
				has_ascension_perk = ap_organo_machine_interfacing_assimilator
			}
		}
		modifier = {
			factor = 0.25
			NOR = {
				has_trait_in_council = { TRAIT = leader_trait_expertise_computing }
				has_trait_in_council = { TRAIT = leader_trait_curator }
			}
		}
	}

	ai_weight = {

	}
}
