#####Biological

tech_genome_remaping = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" }
	weight = @tier5weight3
	modifier = {
		BIOLOGICAL_species_trait_points_add = 1
	}

	weight_modifier = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_new_genes = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_genome_remaping" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		BIOLOGICAL_species_trait_points_add = 3
	}
	
	potential = {
		NOT = { has_authority = auth_hive_mind }
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_bio_army = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_new_genes" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}

###########Syntetic

tech_maintance_nanites = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" }
	weight = @tier5weight3
	modifier = {
		ROBOT_species_trait_points_add = 1
		MACHINE_species_trait_points_add = 1
	}

	weight_modifier = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_nanites_serum = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "tech_maintance_nanites" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		ROBOT_species_trait_points_add = 3
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_synthetic_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_synthetic_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_syn_army = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "tech_nanites_serum" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}

####################Machine

tech_machine_redevelopment = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "tech_maintance_nanites" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		MACHINE_species_trait_points_add = 3
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_synthetic_age } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_synthetic_age } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_mach_army = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "tech_machine_redevelopment" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}

#######Psionic

tech_psiotech_firewall = {
	cost = 100000
	area = society
	tier = 6
	category = { psionics }
	prerequisites = { "tech_tech_ultima" }
	weight = @tier5weight3
	modifier = {
		intel_encryption_add = 2
		intel_decryption_add = 2
	}

	weight_modifier = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_strong_together = {
	cost = 100000
	area = society
	tier = 6
	category = { psionics }
	prerequisites = { "tech_tech_ultima" "tech_psiotech_firewall" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		empire_size_penalty_mult = -0.20
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_zro_refinery = {
	cost = 100000
	area = society
	tier = 6
	category = { psionics }
	prerequisites = { "tech_tech_ultima" "tech_psiotech_firewall" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_psychic_optimalization = {
	cost = 100000
	area = society
	tier = 6
	category = { psionics }
	prerequisites = { "tech_psiotech_firewall" "tech_strong_together" "tech_zro_refinery" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_mind_over_matter } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_psy_army = {
	cost = 100000
	area = society
	tier = 6
	category = { psionics }
	prerequisites = { "tech_tech_ultima" "tech_psychic_optimalization" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}

#####################HIVE
tech_hive_redesign = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_genome_remaping" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		BIOLOGICAL_species_trait_points_add = 1
		empire_size_pops_mult = -0.10
	}
	
	potential = {
		has_ethic = ethic_gestalt_consciousness
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_void_conquest = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_genome_remaping" }
	weight = @tier5weight3
	is_rare = yes
	
	potential = {
		has_ethic = ethic_gestalt_consciousness
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_hyperorganism_one = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_genome_remaping" }
	weight = @tier5weight3
	is_rare = yes
	
	potential = {
		has_ethic = ethic_gestalt_consciousness
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_hyperorganism_two = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_hive_redesign" "tech_void_conquest" "tech_hyperorganism_one" }
	weight = @tier5weight3
	is_rare = yes
	
	potential = {
		has_ethic = ethic_gestalt_consciousness
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_hive_army = {
	cost = 100000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_tech_ultima" "tech_hyperorganism_two" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}

###HIVE TIER2
tech_void_conquest2 = {
	cost = 300000
	area = society
	tier = 6
	category = { biology }
	prerequisites = { "tech_ult_second_tier" "tech_asc_hive_army" }
	weight = @tier5weight3
	is_rare = yes
	
	potential = {
		has_ethic = ethic_gestalt_consciousness
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_engineered_evolution } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

#Cyborg

#####Biological

lea_tech_pop_cybernetics = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" }
	weight = @tier5weight3
	modifier = {
		planet_jobs_productive_produces_mult = 0.1
	}

	weight_modifier = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

lea_tech_cyber_bio_forms = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "lea_tech_pop_cybernetics" }
	weight = @tier5weight3
	is_rare = yes
	modifier = {
		BIOLOGICAL_species_trait_points_add = 1
		BIOLOGICAL_species_trait_picks_add = 1
		
	}
	
	potential = {
		NOT = { has_authority = auth_hive_mind }
	}

	weight_modifier = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_the_flesh_is_weak } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}

	ai_weight = {
		modifier = { factor = 0 NOT = { has_ascension_perk = ap_the_flesh_is_weak } }
		modifier = {
			factor = 1.5
			has_ascension_perk = ap_technological_ascendancy
		}
	}
}

tech_asc_cyber_army = {
	cost = 100000
	area = engineering
	tier = 6
	category = { materials }
	prerequisites = { "tech_tech_ultima" "lea_tech_cyber_bio_forms" }
	weight = @tier5weight3
	is_rare = yes

	weight_modifier = {
		modifier = {
			factor = 0
		}
	}

	ai_weight = {
		modifier = {
			factor = 0
		}
	}
}
