###############################################
#### Vanilla-like ENGINEERING technologies ####
###############################################
@tier0cost2 = 750
@tier0cost3 = 1000

########################################
################ TIER 0 ################
########################################
# ship_constructor_cost_mult
GT_ship_constructor_cost_mult = {
	cost = @tier0cost1
	area = engineering
	tier = 0
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_basic_science_lab_1" }
	weight = @tier1weight3
	
	potential = {
		is_ai = no
	}
	
	modifier = {
		shipclass_constructor_build_cost_mult = -0.75
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# shipsize_constructor_build_speed_mult
GT_shipsize_constructor_build_speed_mult = {
	cost = @tier0cost1
	area = engineering
	tier = 0
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_basic_science_lab_1" }
	weight = @tier1weight3
	
	potential = {
		is_ai = no
	}
	
	modifier = {
		shipclass_research_station_build_speed_mult = 0.20
		shipclass_mining_station_build_speed_mult = 0.20
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# ship_science_alloys_cost_add
GT_ship_science_alloys_cost_add = {
	cost = @tier0cost1
	area = engineering
	tier = 0
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_basic_science_lab_1" }
	weight = @tier1weight3
	
	potential = {
		is_ai = no
	}
	
	modifier = {
		shipclass_science_ship_build_cost_mult = -0.33
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# shipsize_science_hull_add
GT_shipsize_science_hull_add = {
	cost = @tier0cost1
	area = engineering
	tier = 0
	is_rare = yes
	category = { voidcraft }
	prerequisites = { "tech_basic_science_lab_1" }
	weight = @tier1weight3
	
	potential = {
		is_ai = no
	}
	
	modifier = {
		shipsize_science_hull_add = 500
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		factor = 0.50
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}



########################################
################ TIER 1 ################
########################################
# planet_buildings_minerals_cost_add
GT_planet_buildings_minerals_cost_add = {
	cost = @tier1cost3
	area = engineering
	tier = 1
	category = { materials }	
	prerequisites = { "tech_engineering_1" }
	weight = @tier1weight3
	
	modifier = {
		planet_buildings_minerals_cost_add = -40
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# shipsize_mining_research_station_hull_add
GT_shipsize_mining_station_hull_add = {
	cost = @tier1cost3
	area = engineering
	tier = 1
	category = { voidcraft }
	ai_update_type = all
	prerequisites = { "tech_ship_armor_2" }
	weight = @tier1weight3
	
	modifier = {
		custom_tooltip = gt_resource_stations_shield_bonus_TT
		# shipclass_mining_station_hull_mult = 0.35
		# shipclass_research_station_hull_mult = 0.35
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# country_base_minerals_produces_add
GT_country_base_minerals_produces_add = {
	cost = @tier1cost3
	area = engineering
	tier = 1
	is_rare = yes
	category = { industry }
	prerequisites = { "tech_planetary_unification" }
	weight = @tier1weight3
	
	modifier = {
		starbase_constructions_minerals_produces_mult = 0.40
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		factor = 0.50
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_minerals_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_engineering_research_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_energy_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_physics_research_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_food_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_society_research_produces_add
		}
	}
	
	ai_weight = {
	}
}
# country_base_engineering_research_produces_add
GT_country_base_engineering_research_produces_add = {
	cost = 500
	area = engineering
	tier = 1
	is_rare = yes
	category = { industry }
	prerequisites = { "tech_planetary_unification" }
	weight = @tier1weight3
	
	modifier = {
		country_base_engineering_research_produces_add = 10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
		factor = 0.50
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_minerals_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_engineering_research_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_energy_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_physics_research_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_food_produces_add
		}
		modifier = {
			factor = 0.05
			has_technology = GT_country_base_society_research_produces_add
		}
	}
	
	ai_weight = {
	}
}
# ship_emergency_ftl_min_days_add
GT_ship_emergency_ftl_min_days_add = {
	cost = @tier1cost3
	area = engineering
	tier = 1
	category = { voidcraft }
	ai_update_type = all	
	prerequisites = { "tech_automated_exploration" }
	weight = @tier1weight3
	
	modifier = {
		ship_interstellar_speed_mult = 0.25
		ship_emergency_ftl_min_days_add = -10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# science_ship_survey_speed
GT_science_ship_survey_speed = {
	cost = @tier1cost2
	area = engineering
	tier = 1
	category = { voidcraft }	
	prerequisites = { "tech_automated_exploration" }
	weight = @tier1weight3
	
	potential = {
		is_ai = no
	}
	
	modifier = {
		science_ship_survey_speed = 0.20
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# shipsize_mining_station_build_speed_mult
GT_shipsize_mining_station_build_speed_mult = {
	cost = @tier1cost2
	area = engineering
	tier = 1
	category = { voidcraft }	
	prerequisites = { "tech_space_mining_1" }
	weight = @tier1weight2
	
	modifier = {
		shipclass_mining_station_build_speed_mult = 0.40
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# shipsize_research_station_build_speed_mult
GT_shipsize_research_station_build_speed_mult = {
	cost = @tier1cost2
	area = engineering
	tier = 1
	category = { voidcraft }	
	prerequisites = { "tech_space_science_1" }
	weight = @tier1weight2
	
	modifier = {
		shipclass_research_station_build_speed_mult = 0.40
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 1 value > 30 }
		}
	}
	
	ai_weight = {
	}
}



########################################
################ TIER 2 ################
########################################
# planet_researchers_engineering_research_produces_mult
GT_planet_researchers_engineering_research_produces_mult = {
	cost = @tier2cost2
	area = engineering
	tier = 2
	category = { industry }	
	prerequisites = { "tech_engineering_1" }
	weight = @tier2weight2
	
	modifier = {
		engineering_tech_cost_mult = -0.05
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# starbase_shipyard_build_speed_mult
GT_starbase_shipyard_build_speed_mult = {
	cost = @tier2cost3
	area = engineering
	tier = 2
	category = { voidcraft }	
	prerequisites = { "tech_starbase_3" }
	weight = @tier2weight3
	
	modifier = {
		starbase_shipyard_build_speed_mult = 0.10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# army_defense_health_mult
GT_army_defense_health_mult = {
	cost = @tier2cost2
	area = engineering
	tier = 2
	category = { materials }	
	prerequisites = { "tech_ship_armor_2" }
	weight = @tier2weight2
	
	modifier = {
		army_defense_health_mult = 0.20
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
		modifier = {
			factor = 2
			is_at_war = yes
		}
	}
	
	ai_weight = {
		factor = 2
	}
}
# small_weapon_fire_rate_mult
GT_small_weapon_fire_rate_mult = {
	cost = @tier2cost3
	area = engineering
	tier = 2
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_destroyers" }
	weight = @tier2weight3
	
	modifier = {
		# small_weapon_fire_rate_mult = 0.07
		weapon_type_kinetic_weapon_fire_rate_mult = 0.10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# ship_corvette_alloys_cost_add
GT_ship_corvette_alloys_cost_add = {
	cost = @tier2cost3
	area = engineering
	tier = 2
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_destroyers" }
	weight = @tier2weight3
	
	modifier = {
		ship_corvette_alloys_cost_add = -15
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
		factor = 0.50
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# planet_building_build_speed_mult
GT_planet_building_build_speed_mult = {
	cost = @tier2cost2
	area = engineering
	tier = 2
	category = { materials }	
	prerequisites = { "tech_assembly_pattern" }
	weight = @tier2weight2
	
	modifier = {
		planet_building_capacity_add = 1
		planet_building_build_speed_mult = 0.20		
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 2 value > 30 }
		}
	}
	
	ai_weight = {
	}
}

########################################
################ TIER 3 ################
########################################
# planet_researchers_engineering_research_produces_mult
GT_planet_researchers_engineering_research_produces_mult2 = {
	cost = @tier3cost3
	area = engineering
	tier = 3
	category = { industry }	
	prerequisites = { "tech_engineering_2" "GT_planet_researchers_engineering_research_produces_mult" }
	weight = @tier4weight3
	
	modifier = {
		planet_engineers_engineering_research_produces_add = 0.5
		station_researchers_produces_mult = 0.05
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
	}
	
	ai_weight = {
		factor = 5
	}
}
# starbase_defense_platform_capacity_add2
GT_starbase_defense_platform_capacity_add2= {
	cost = @tier3cost3
	area = engineering
	tier = 3
	category = { voidcraft }	
	prerequisites = { "tech_starbase_3" "GT_starbase_defense_platform_capacity_add" }
	weight = @tier3weight3
	
	modifier = {
		ship_military_station_small_cost_mult = -0.20
		ship_military_station_small_upkeep_mult = -0.20
		starbase_defense_platform_capacity_add = 10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
		modifier = {
			factor = 2
			is_at_war = yes
		}
	}
	
	ai_weight = {
	}
}
# army_health
GT_army_health = {
	cost = @tier3cost2
	area = engineering
	tier = 3
	category = { materials }
	prerequisites = { "tech_ship_armor_3" }
	weight = @tier3weight2
	
	modifier = {
		army_health = 0.20
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# torpedo_weapon_fire_rate_mult
GT_torpedo_weapon_fire_rate_mult = {
	cost = @tier3cost2
	area = engineering
	tier = 3
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_torpedoes_1" }
	weight = @tier3weight2
	
	modifier = {
		# torpedo_weapon_fire_rate_mult = 0.10
		weapon_type_explosive_weapon_fire_rate_mult = 0.20
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# torpedo_speed_mult
GT_torpedo_speed_mult = {
	cost = @tier3cost2
	area = engineering
	tier = 3
	category = { propulsion }	
	prerequisites = { "tech_torpedoes_1" }
	weight = @tier3weight2
	
	modifier = {
		weapon_type_explosive_speed_mult = 0.50
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# medium_weapon_fire_rate_mult
GT_medium_weapon_fire_rate_mult = {
	cost = @tier3cost2
	area = engineering
	tier = 3
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_cruisers" }
	weight = @tier3weight2
	
	modifier = {
		# medium_weapon_fire_rate_mult = 0.07
		weapon_type_energy_weapon_fire_rate_mult = 0.10
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# ship_orbital_bombardment_mult
GT_ship_orbital_bombardment_mult = {
	cost = @tier3cost2
	area = engineering
	tier = 3
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_cruisers" }
	weight = @tier3weight2
	
	modifier = {
		ship_orbital_bombardment_mult = 0.15
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
		modifier = {
			factor = 0
			is_at_war = no
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# ship_destroyer_alloys_cost_add
GT_ship_destroyer_alloys_cost_add = {
	cost = @tier3cost1
	area = engineering
	tier = 3
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_cruisers" }
	weight = @tier3weight1
	
	modifier = {
		ship_destroyer_alloys_cost_add = -50
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 3 value > 30 }
		}
		factor = 0.50
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
		factor = 2
	}
}



########################################
################ TIER 4 ################
########################################
# planet_researchers_engineering_research_produces_mult
GT_planet_researchers_engineering_research_produces_mult3 = {
	cost = @tier4cost3
	area = engineering
	tier = 4
	is_rare = yes
	category = { industry }	
	prerequisites = { "tech_engineering_3" "GT_planet_researchers_engineering_research_produces_mult2" }
	weight = @tier4weight1
	
	modifier = {
		planet_engineers_engineering_research_produces_add = 0.5
		station_researchers_produces_mult = 0.10
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 4 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
		factor = 5
	}
}
# starbase_buildings_alloys_cost_add
GT_starbase_buildings_alloys_cost_add = {
	cost = @tier4cost2
	area = engineering
	tier = 4
	category = { voidcraft }	
	prerequisites = { "tech_starbase_4" }
	weight = @tier4weight2
	
	modifier = {
		starbase_buildings_alloys_cost_add = -25
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 4 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# starbase_modules_alloys_cost_add
GT_starbase_modules_alloys_cost_add = {
	cost = @tier4cost2
	area = engineering
	tier = 4
	category = { voidcraft }	
	prerequisites = { "tech_starbase_4" }
	weight = @tier4weight2
	
	modifier = {
		starbase_modules_alloys_cost_add = -25
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 4 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# large_weapon_fire_rate_mult
GT_large_weapon_fire_rate_mult = {
	cost = @tier4cost2
	area = engineering
	tier = 4
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_battleships" }
	weight = @tier4weight2
	
	modifier = {
		# large_weapon_fire_rate_mult = 0.07
		shipclass_starbase_damage_mult = 0.25
		shipclass_military_station_damage_mult = 0.25
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 4 value > 30 }
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# ship_cruiser_alloys_cost_add
GT_ship_cruiser_alloys_cost_add = {
	cost = @tier4cost1
	area = engineering
	tier = 4
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_battleships" }
	weight = @tier4weight1
	
	modifier = {
		ship_cruiser_alloys_cost_add  = -100
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 4 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# ship_interstellar_speed_mult
GT_ship_interstellar_speed_mult = {
	cost = @tier4cost2
	area = engineering
	tier = 4
	category = { voidcraft }
	ai_update_type = all
	prerequisites = { "tech_hyper_drive_3" }
	weight = @tier4weight2
	
	modifier = {
		ship_interstellar_speed_mult = 0.50
	}
	
	weight_modifier = {
	}
	
	ai_weight = {
	}
}





########################################
################ TIER 5 ################
########################################
# extra_large_weapon_fire_rate_mult
GT_extra_large_weapon_fire_rate_mult = {
	cost = @tier5cost2
	area = engineering
	tier = 5
	category = { propulsion }
	ai_update_type = military
	prerequisites = { "tech_titans" }
	weight = @tier5weight2
	
	modifier = {
		# extra_large_weapon_fire_rate_mult = 0.07
		shipclass_starbase_damage_mult = 0.25
		shipclass_military_station_damage_mult = 0.25
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
	
	ai_weight = {
		modifier = {
			factor = 1.25
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 1.5
			has_ethic = ethic_fanatic_militarist
		}
	}
}
# country_ship_upgrade_cost_mult
GT_country_ship_upgrade_cost_mult = {
	cost = @tier5cost1
	area = engineering
	tier = 5
	category = { voidcraft }	
	prerequisites = { "tech_starbase_5" }
	weight = @tier5weight1
	
	modifier = {
		country_ship_upgrade_cost_mult = -0.20
	}
	
	weight_modifier = {
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
	}
	
	ai_weight = {
	}
}
# ship_battleship_alloys_cost_add
GT_ship_battleship_alloys_cost_add = {
	cost = @tier5cost1
	area = engineering
	tier = 5
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_starbase_5" }
	weight = @tier5weight3
	
	modifier = {
		ship_battleship_alloys_cost_add = -150
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# planet_non_artificial_max_districts_add
GT_planet_non_artificial_max_districts_add = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { industry }
	prerequisites = { "tech_mega_engineering" }
	weight = @tier5weight3
	
	modifier = {
		planet_non_artificial_max_districts_add = 1
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# terraforming_cost_mult
GT_terraforming_cost_mult = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { materials }	
	prerequisites = { "tech_climate_restoration" }
	weight = @tier5weight3
	
	modifier = {
		terraforming_cost_mult = -0.20
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	
	ai_weight = {
	}
}
# megastructure_build_speed_mult
GT_megastructure_build_speed_mult = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { voidcraft }
	prerequisites = { "tech_mega_engineering" }
	weight = @tier5weight3
	
	modifier = {
		megastructure_build_speed_mult = 0.25
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0
			NOT = { has_any_megastructure_in_empire = yes }
		}
	}
	
	ai_weight = {
	}
}
# megastructures_minerals_produces_mult
GT_megastructures_minerals_produces_mult = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { voidcraft }
	prerequisites = { "tech_mega_engineering" }
	weight = @tier5weight3
	
	modifier = {
		megastructures_minerals_produces_mult = 0.25
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0
			NOR = {
				has_megastructure = matter_decompressor_4
				has_megastructure = matter_decompressor_restored
			}			
		}
	}
	
	ai_weight = {
	}
}
# GT_megastructures_engineering_research_produces_mult
GT_megastructures_engineering_research_produces_mult = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_mega_engineering" }
	weight = @tier5weight3
	
	modifier = {
		megastructures_engineering_research_produces_mult= 0.25
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0
			NOR = {
				has_megastructure = think_tank_4
				has_megastructure = think_tank_restored
			}			
		}
	}
	
	ai_weight = {
	}
}
# megastructures_alloys_cost_mult
GT_megastructures_alloys_cost_mult = {
	cost = @tier5cost3
	area = engineering
	tier = 5
	is_rare = yes
	category = { voidcraft }	
	prerequisites = { "tech_mega_engineering" }
	weight = @tier5weight3
	
	modifier = {
		megastructures_alloys_cost_mult = -0.10
	}
	
	weight_modifier = {
		factor = 0.50
		modifier = {
			factor = 0
			num_researched_techs_of_tier = { tier = 5 value > 30 }
		}
		modifier = {
			factor = 2
			has_ascension_perk = ap_technological_ascendancy
		}
		modifier = {
			factor = 0
			NOT = { has_any_megastructure_in_empire = yes }
		}
	}
	
	ai_weight = {
	}
}



























